Restore a mysql database
It is very easy to restore a MySQL database if you followed the instructions in how to backup a mysql database.
mysql -u [username] -p[password] [database_name] < [database_name].sql
Change [username] and [password] with a user (and his password) that has enough rights to create the database. Change [database_name] with the database you want to restore.
Was this article helpful? Then please donate to keep The IT Community alive...
If you found this article helpful please share it, comment and help others by writing your own article.
Translate this page:
Articles found in the same category: