/Usr/bin/mysqld: Unknown variable 'default-character-set = utf8' Solution

Source: Internet
Author: User

MySQL-server-5.5.11 is installed through RPM package, directly input service MySQL start on the command line, MySQL started successfully,

Then modify/etc/My. CNF, add default-character-set = utf8 to [mysqld], and restart the MySQL service. An error is returned:

Starting MySQL...
Server quit without updating PID file (/var/lib/MySQL/node1.pid ).
[Faild]

View the log/var/log/MySQL. log, and the following prompt is displayed:

/Usr/bin/mysqld: Unknown variable 'default-character-set = utf8'

It seems that

Default-character-set = utf8 this setting item is in trouble ....

I searched the internet and found someone suggested using character_set_server = utf8 to replace

Default-character-set = utf8
 
Can solve this problem,

Try again, change

Character_set_server = utf8,

It's okay to start again...

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.