Ubuntu mysql cannot be started for simple troubleshooting. tumysql

Source: Internet
Author: User

Ubuntu mysql cannot be started for simple troubleshooting. tumysql

My website has not been on for a long time. I want to open it and find that it cannot be opened, so I found a series of reasons.

After a simple investigation, my vps service was commercially available as a bricklayer (bandwagonhost). After I restarted the service, I still couldn't access it. Later I checked my domain name hosting (dnspod ), it seems that there is no problem. Finally, I checked the domain name provision (freenom). The domain name has expired for one year, and it should be okay.

Later, after reading it for a while, I realized whether the apache server was not started.
Restart: sudo apache2ctl-k restart
You can access it.

However, mysql is still unavailable.
So I tried to restart: service mysql start
The error indicates that the instance cannot be started, and there is no reason to write it (the ubuntu system on the server is relatively small, and the error message is incomplete). After searching for the system for a long time, I don't know what the problem is.

Later, I found the information on the Internet and found the ERROR log (in/var/log/mysql). The ERROR cause is [ERROR]/usr/sbin/mysqld: unknown variable 'default-character-set = utf8'

After checking the information on the Internet, I found that I had to change the default-character-set = utf8 In the mysql configuration file my. cnf to character_set_server = utf8. After I tried it, I could =
(My. cnf is in/etc/mysql)
Really weak =

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.