MySQL 1018 error, mysql1018

Source: Internet
Author: User

MySQL 1018 error, mysql1018

I. Error Reproduction

You Can access the MySQL database but cannot read the database table. The following ERROR is returned: 1018 ERROR: ERROR 1018 (HY000): Can't read dir '. /cnapscips/'(errno: 13 ).


Ii. Solutions

View the MySQL data directory. Generally, tables cannot be read from the copied database. Even the root user cannot read the table, the directory permission needs to be modified.


Modify directory permissions by running the command: chown-R mysql: mysql/var/lib/mysql/cnapscips (executed by the root user)

Note: The cnapscips here is the name of my database. When you modify the permission, you must replace it with the name of the database that you cannot read.

Use show cnapscips again;


The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.