Skip to content

Instantly share code, notes, and snippets.

@MichalSkoula
Last active May 6, 2022 13:05
Show Gist options
  • Save MichalSkoula/a385e1443a8b284527e93a95dab62faf to your computer and use it in GitHub Desktop.
Save MichalSkoula/a385e1443a8b284527e93a95dab62faf to your computer and use it in GitHub Desktop.
docker mysql import db
mysql -uroot -p --default-character-set=utf8
(enter password)
use "database-name";
source /var/www/html/db.sql;
@MichalSkoula
Copy link
Author

Run this in docker db cli

@MichalSkoula
Copy link
Author

Source dir represents docker root (app files root)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment