mysql (Errcode: 13-Permission denied) File not found without permission

At five o'clock in the afternoon, I suddenly reported that a page had an error, and then wanted me to work overtime, and quickly ordered a takeaway for
me ,,, I plan to go to the gym tonight,,,,

1. First check from the crime scene, the page returns 500~
2. After looking at the background, I found a data table not found permission denied~
3. Finally, log in to the mysql select table in the background, and the result shows Errcode: 13-Permission denied, here I am I used the root account~
This is very strange, and then Baidu took a look and said that the copied mysql database would have this permission problem. To sum up, this permission problem will be varied. Some people don't have permission for a certain table, and some people don't have permission for the entire tablespace. Anyway, the permissions are wrong.

Solution: empower the tablespace to
log in as root in the chown background, without logging in to mysql to
execute: chown -R mysql:mysql /usr/local/mysql/data/tablespace/table name
Netizens provide information~: the
first mysql is mysql User The
second mysql is the mysql user group

Then everything returned to calm~

Guess you like

Origin blog.csdn.net/qq845484236/article/details/108191827