+3 votes
in Databases by (6.4k 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 (26.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

 

Related questions

+3 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer
...