MySQL Import Via Command

Hi,

How to import a SQL file via command line ? ( i have a huge file ā€¦)

Thank you

ok got it :

docker exec -i [mysql_container_name] mysql -u[username] -p[password] [DB name] < [path/to/sql/file]

2 Likes

Iā€™m glad that worked for you! Let us know if you need anything else.