EN VI

How to import database by docker

2022-12-03 00:46:54

How to import database by command with docker

Solution:

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}
Answer

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login