Skip to content

Instantly share code, notes, and snippets.

@mkmms
Last active July 28, 2023 06:03
Show Gist options
  • Save mkmms/6057531eee707afafbdbf60e2b217f85 to your computer and use it in GitHub Desktop.
Save mkmms/6057531eee707afafbdbf60e2b217f85 to your computer and use it in GitHub Desktop.
ERROR: Database files are locked. Daemon already running? Warning: Unable to start the server. Please restart MySQL and run mysql_upgrade to ensure the database is ready for use. site:www.digitalocean.com
An easy solution is to ```sudo killall mysqld``` while the apt-get operation is running.
# ps aux | grep mysql
# sudo kill #{process}
https://linuxconfig.org/disable-automatic-updates-on-ubuntu-18-04-bionic-beaver-linux
https://deivydas.com/how-to-reset-the-mysql-5-7-root-password-in-ubuntu-16-04-lts/
Where is the socket, run the comment in mysql
# show variables like 'socket';
https://stackoverflow.com/questions/39281594/error-1698-28000-access-denied-for-user-rootlocalhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment