Last Updated: February 25, 2016
·
474
· silvercorp

Import MySQL databases with command line

Open your command line and type:

mysql -p -u dbUserName dbName < fileName.sql

Example

mysql -p -u root users < usersFile.sql

You need to type your database password and that's it