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!