Reproduced MySQL5.5 configuration file My.ini 1067 error

Source: Internet
Author: User

Original link: http://blog.csdn.net/xiaochunyong/article/details/7438200

After extracting Mysql-5.5.22-win32.zip, there are 5 My-xxxx.ini configuration files in the directory,

By looking at the description in the configuration file, the recommended configuration for different memory sizes is stated.

This example copies the My-medium.ini and renames it to My.ini and adds the following lines:

[Client]

Default-character-set=utf8 Client-side encoding

[Mysqld]

Basedir=d:/sdk/mysql MySQL installation directory
Datadir=d:/servers/mysql/data MySQL Database storage directory
Default-character-set=utf8 Server-side encoding
Default-collation=utf8_general_ci server-side character set

2. Install Windows Service (Windows7 user must start cmd with Administrator):

3. Start the Windows service

The results reported 1067 errors ....

To the boot log file view (the boot log is in the MySQL data directory, because this example specifies datadir in the My.ini file, my log file is D:\Servers\mysql\data\Siuon-PC.err):

Say the unknown variable ' Default-character-set=utf8 ' ... Remember the company's MySQL configuration inside is like this ah ... So Google's ... Originally because I downloaded the MySQL version is 5.5 ...

Several variables that have just been configured in this release have been replaced by new ones.

Default-character-set---character_set_server P.s:[mysqld] part of the Default-character-set

Default-collation-Collation-server

After you have finished modifying:

Restart, or 1067 error is reported. The logs are:

It means that the Mysql.host table does not exist. This is because I changed the datadir to custom, but the system databases in the DataDir directory (that is, mysql/data) were not copied together to the new DataDir directory. Caused by.

Copy the following folders into the new My.ini configuration file datadir The specified directory (in this case, the D:\Servers\mysql\data directory):

To start the MySQL service ok~~~:

Another: MySQL5.6 's My.ini configuration: http://www.cnblogs.com/Candies/p/4014523.html

Reproduced MySQL5.5 configuration file My.ini 1067 error

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.