Last active
May 6, 2022 13:05
-
-
Save MichalSkoula/a385e1443a8b284527e93a95dab62faf to your computer and use it in GitHub Desktop.
docker mysql import db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -uroot -p --default-character-set=utf8 | |
(enter password) | |
use "database-name"; | |
source /var/www/html/db.sql; |
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
Run this in docker db cli