Some times, we will get the following error when we try to drop the database from PHP my admin.

========
Error
SQL query:
DROP DATABASE `databasename`
MySQL said:
#6 – Error on delete of ‘./databasename’ (Errcode: 13)
========

The problem is with wrong permission of /var/lib/mysql. You can fix the issue by changing the permission of mysql data directory to mysql .

#chown mysql.mysql /var/lib/mysql.

Now, you are able to drop the database from PHP my admin.

Leave a Reply

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny