MySQL is an open source relational database management system (RDBMS) that uses the most commonly used database management language-Structured Query Language (SQL) for database management.
2. Back up to the current directory The backup
MySQL database is in the format with deleted tables, which can make the backup overwrite the existing database without manually deleting the original database
8. The command to restore the MySQL database. Restore the current backup database named backupfile.sql
mysql-h127.0.0.1-uroot-ppass myweb
9. Restore the compressed MySQL database
gunzip
10. Transfer the database to the new server. This example is to copy the local database myweb to the remote database named serweb, and the remote database must have a database named serweb
mysqldump-h127.0.0.1-uroot-ppass myweb|mysql--host=***.***.***.*** -u database user name -p database password -C serweb
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.