geerlingguy / ansible-role-mysql

Ansible Role - MySQL
https://galaxy.ansible.com/geerlingguy/mysql/
MIT License
1.05k stars 866 forks source link

Mysql can not started after reboot #490

Closed legolasleee closed 1 year ago

legolasleee commented 2 years ago

My OS is centOS 7.9, and the pid file is placed in directory "/var/run/mariadb" and after I reboot my machine, the directory is deleted, result in the failure of mysql startup. The error message is: [ERROR] mysqld: Can't create/write to file '/var/run/mariadb/mariadb.pid' Could I change the pid file location, for example, change it to "/var/lib/mysql"? or is there any other solution that doesn't involve solving this problem manually

mmekut commented 2 years ago

Hello @legolasleee, i figured out a solution though manually..............follow my issue #496 on the way forward

stale[bot] commented 1 year ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] commented 1 year ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.