Mysql database problems

Source: Internet
Author: User
How can I enable the newly created mysql table to be used when published to the server without prompting that the table does not exist. ------ Solution ------------------ if all tables of the MYISAM type are copied in the past, it is also possible ------ solution ------------------ it is recommended that you do not directly copy the packaging method to prevent exceptions, I have encountered several table drop issues in the mysql database.
How to make the newly created mysql table still available when published to the server without prompting that the table does not exist.

------ Solution --------------------
If all the tables are MYISAM tables, you can copy them.
------ Solution --------------------
Discussion

To prevent accidents, it is recommended that you do not copy and package the table directly. I have lost the table several times, even if all your tables are myisam, this is not recommended, there is too much data in the site table. Sometimes we forget to ignore tables in special formats, which will lead to irreparable losses. generally, enterprise data copying uses shell command lines. Of course there are other methods.

Copy: mysqldump-u username-p password database name> backup name. SQL
Restore: mysql-u username-p password ......

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.