mysql-5.6.25-linux-glibc2.5-i686.tar.gz Error

Source: Internet
Author: User
Tags chmod

Start mysqld Service display:

[[Email protected] data]# service mysqld start

Error reason analysis:

    online view of many netizens ' documents, combined with error log analysis: The original is already exists MySQL process

WORKAROUND: Use the command "Ps-a | grep mysqld "To see if there is a mysqld process, kill with the kill-9 process number, and then restart mysqld!


Here are some solutions that might cause such errors:

1. may be/usr/local/mysql/data/rekfan.pid file does not have permission to write

workaround: Give permission, execute   "Chown -r Mysql:mysql /var/data "  Chmod-r 755/usr/local/mysql/data" and then restart mysqld!

    2. The MySQL process already exists in the process
Workaround: Use the command" Ps-ef|grep mysqld " Check to see if there is a mysqld process, kill with the kill-9  process number, and then restart the mysqld! < Span style= "line-height:0px;" >

    3. May be the second time to install MySQL on the machine, there is residual data affecting the start of the service .
Workaround: Go to MySQL data directory/data See, if there is mysql-bin.index, quickly delete it, it is the culprit.

    4.mysql The/ETC/MY.CNF profile is used when the configuration file is not specified at startup, open this file to view the [mysqld] section There is no specified data directory (DATADIR).
Workaround: Please set this line under [mysqld]: DataDir = /usr/local/mysql/data

    5.skip-federated field problem
workaround: Check/etc/ There are no skip-federated fields in the my.cnf file that are not commented out, and if so, comment them out immediately. < Span style= "line-height:0px;" >

    6. Error log directory does not exist
Workaround: Use" Chown "" chmod " Command gives MySQL owner and permissions

7.selinux, if it is a CentOS system, the default is to turn on SELinux
Workaround: Close it, open the/etc/selinux/config, change theselinux=enf orcing to selinux=disabled and then save the restart machine . .  

This article is from "Luo Chen's blog" blog, please be sure to keep this source http://luochen2015.blog.51cto.com/9772274/1695763

mysql-5.6.25-linux-glibc2.5-i686.tar.gz Error

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.