Skip to content

Instantly share code, notes, and snippets.

@tatumroaquin
Created June 11, 2022 00:18
Show Gist options
  • Save tatumroaquin/fbed38e2059ce7771ddeca8aca2ead0c to your computer and use it in GitHub Desktop.
Save tatumroaquin/fbed38e2059ce7771ddeca8aca2ead0c to your computer and use it in GitHub Desktop.
common mysql errors and fixes

MySQL Errors and Fixes

su: warning: cannot change directory to /nonexistent: No such file or directory

sudo systemctl stop mysql.service
sudo usermod -d /var/lib/mysql/ mysql
sudo systemctl start mysql.service
  • common problem in WSL2 installation of MySQL DBMS, mysql user not granted permissions to its home folder

sources:

https://stackoverflow.com/a/63040661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment