Solve mysql ERROR 1017: Can t find file to solve the ERROR

Source: Internet
Author: User
Tags mysql tutorial

I checked the permissions of most people on the Internet. The following describes two solutions to the mysql 1017 error. For more information, see.

I checked the permissions of most people on the Internet. Below we will talk about two solutions to the 1017 error in the mysql tutorial. For more information, see.

ERROR 1017 (HY000): Can't find file: (errno: 13)

The reason is that you do not have the read and write permissions on the mysql database tutorial file.

Take the debian system as an example. Generally, data files are stored under/var/lib/mysql.

The database directory permission is 700 (rwx --), and the owner is mysql.

The file permission under the database directory is 660 (rw-), and the owner is also mysql


Method 2

If mysql is not disabled before the server is restarted, The MyiSAM table of MySql may encounter an ERROR #1017: Can't find file: '/xxx. frm,

The reason for this problem is not that the '/xxx. frm' file is missing, but that the permission of these files (which should be mysql) does not know why it becomes root.

Solution: cd to the directory where the xxx. frm file is located. Run the command chown mysql. mysql * to change the permissions of all files!

 

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.