Skip to content

Instantly share code, notes, and snippets.

@syedanam
Last active December 2, 2017 09:06
Show Gist options
  • Save syedanam/5b81582a46e0ee53b845d9040fc6c8c1 to your computer and use it in GitHub Desktop.
Save syedanam/5b81582a46e0ee53b845d9040fc6c8c1 to your computer and use it in GitHub Desktop.
mysql error in ubuntu
/* mysql Said 1018 - Can't read dir of '.' (errno: 13 - Permission denied) */
chown -R mysql:mysql /var/lib/mysql/ #your mysql user may have different name
chmod -R 755 /var/lib/mysql/
/* 1006 - Can't create database 'test_DB' (errno: 15240960) in mysql */
sudo chown -R mysql:mysql /var/lib/mysql/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment