When encountering the error 1236: Cannot access partition in MySQL, follow these steps:
systemctl status mysql
tail -100 /var/log/mysql/error.log
SHOW GRANTS FOR 'your
mysql
user'@'your_host';
SHOW BINARY LOGS;
and check the last successfully executed binary log file and position:SHOW SLAVE STATUS\G
STOP SLAVE;
CHANGE MASTER TO MASTERLOG
FILE='log
file', MASTER
LOG
POS=log
pos;
START SLAVE;
df -h
ls -ld /var/lib/mysql
chown mysql:mysql /var/lib/mysql -R
chmod 755 /var/lib/mysql
systemctl restart mysql
systemctl status mysql
Only proceed with actions you are comfortable executing and understand the implications of, especially when adjusting file permissions or manipulating binary logs.
Let Dr. Droid create custom investigation plans for your infrastructure.
Book Demo