Resolve./mysql-bin.index ' not Found (errcode:13)

Source: Internet
Author: User

The problem occurs after upgrading the PHP version, the site cannot connect to the database, phpMyAdmin cannot log in:

Then try to turn on mysql,/etc/init.d/mysqld start, prompting:

Starting MySQL. error! The server quit without updating PID file (/usr/local/mysql/data/ay12122808152158ea209.pid).

Found MySQL error file under/usr/local/mysql/data ****.err, browse to the last side, found that there is a sentence:

./mysql-bin.index ' not Found (errcode:13)

Hint./mysql-bin.index could not be found (because MySQL turned on the bin log feature), to the database root to see if the file is present, may be a problem with file permissions, and then use the following command to the database directory/usr/local/mysql/data given MySQL Permissions:

1
Chgrp-r mysql/usr/local/mysql/data && chown-r mysql/usr/local/mysql/data

Start again mysql:/etc/init.d/mysqld start, everything is OK.

Resolve./mysql-bin.index ' not Found (errcode:13)

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.