How do I restore a MySQL database from an sql dump?
Want to support HowtoForge? Become a subscriber!
|
If your MySQL user has a password: mysql -h localhost -u [MySQL user, e.g. root] -p[database password] [name of the database] < [name of your sql dump, e.g. sqldump.sql] Please note: there's no space between -p and the password! If there's no password: mysql -h localhost -u [MySQL user, e.g. root] [name of the database] < [name of your sql dump, e.g. sqldump.sql]
|



Recent comments
3 hours 16 min ago
7 hours 28 min ago
11 hours 44 min ago
20 hours 28 min ago
22 hours 19 min ago
23 hours 31 min ago
1 day 11 hours ago
1 day 18 hours ago
1 day 20 hours ago
1 day 22 hours ago