+3 votes
in Databases by (4.6k points)
I want to import data from a large SQL file to the MySQL database using the command line. What command should I use?

1 Answer

0 votes
by (21.2k points)

You can run the following command on the terminal to import the data to the MySQL database.

mysql -u user_name -p database_name < filename.sql

 

...