How to import database by command with docker
How to import database by command with docker
You can run command:
docker cp {file.sql} {id image}:/{file.sql}
open mysql cli and run this command:
mysql -u{your_username} -p{your_password} {your_database_name} < {file.sql}