MySQL Check list failed

Source: Internet
Author: User

Our database migration, I entered the database directory all need to copy what to the new database can be used, I directly copy the library error
"" Beijing-2016/1/26 16:07:33

mysql> use payment;
Database changed
Mysql> Show tables;
ERROR 1018 (HY000): Can ' t read dir of './payment/' (errno:13)
"" Beijing-2016/1/26 16:08:08

This is the old database mysql> show tables;
ERROR 1018 (HY000): Can ' t read dir of './crowd/' (errno:13)
Mysql>
Analysis:
The human modification of the Data directory permission resulted in:
[Email protected] mysql]# ls-ld/datadisk/mysqldata/mysql/jiradb
DRWX------2 Jira mysql 4096 08-28 08:07/datadisk/mysqldata/mysql/jiradb
Data directory permissions are modified to non-MySQL account owner, resulting in MySQL without permission to read the file, naturally not get table information.

Solution:
Modify the Data directory owner is MySQL.

"Empty Hades" Hebei-Liu Jianzo 2016/1/26 16:24:19

MySQL Check list failed

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.