#6 – Error on delete of ‘./database’ (Errcode: 13)

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.

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Comment

Scroll to Top