mysql -u [username] -p [DatabaseName] < [SQLFileName]
for example, is the [username] is root and [DatabaseName] is mixertruck, and the [SQLFilename] is mixertruck.sql, then the command line is
mysql -u root -p mixertruck < mixertruck.sql
if the mysql is on a remote server, then use the following command line:
mysql -u [username] -h [HostName] -p [DatabaseName] < [SQLFileName]
if the mysql is on a remote server, then use the following command line:
mysql -u [username] -h [HostName] -p [DatabaseName] < [SQLFileName]
No comments:
Post a Comment