MySQL 4.0 to MySQL 4.1

Source: Internet
Author: User
Tags mysql commands

Even in Win2000, MySQL 4 databases are always worried about upgrading to 4. 1. If there is a problem, phpMyAdmin 2 is used. 7. Export and import the data
MySQL 4. 1, Chinese characters are garbled, so I had to put MySQL 4.1. Change the INI encoding to gb2312, and change
All database files are copied directly to 4. The result is not garbled in the data directory of 1.

Of course, a better method is to use mysqldump, such
Mysqldump-u xxx-p xxx -- default-character-set = utf8 test_db> C: \ test. SQL. UTF-8 is used for export,
For MySQL 4. 1 export to MySQL 4, then
Mysqldump-u xxx-p xxx -- compatible = mysql40 -- default-character-set = utf8 test_db> C: \ test. SQL

The import process is simple. use MySQL commands, such
Mysql-u root-P 123456 test_db <c: \ test. SQL

Related Article

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.