Basically, I was taught on how to create a root password using the \"mysqladmin -u root -p password\" command, this was done all through the windows command editor. Now, the
In my case I didn't see any tables under my database on phpMyAdmin
I am using Wamp server
but when I checked the directory under C:\wamp\bin\mysql\mysql5.6.12\data
I found this employed.ibd
when I deleted this file manually I was able to drop
the database from phpMyAdmin
smoothly without any problems.
I just ran into this problem with WAMP and the phpMyAdmin that comes with it. To remove the database and make the error go away. I went into C:\wamp\bin\mysql\mysql5.5.24\data\
and deleted the folder for the database in question.
Then I refreshed the page at phpMyAdmin, and the database was gone.
You can delete the data in the sql directory.
For me i was using AMPPS on windows 10. I went to the AMPPs installtion directory. for me it was :
D:\Program Files (x86)\Ampps\mysql\data
because i have it installed on my secondary drive.
Then refresh your SQL client and you will see it's gone.
For phpmyadmin, go to xampp\mysql\data and simply delete the database folder. Worked for me !!
You may need to check two things.
1- Database Foleder's permission The database you wants to delete must have the same owner as mysql process has.
2- Directory Must be empty Goto the mysql data directory and verify that directory is empty
After that connect your mysql cli and run drop database command again.
It happens because you may have copied /var/lib/mysql folder's database folder from another server to your server. But you haven't copied these files: /var/lib/mysql/ib_buffer_pool /var/lib/mysql/ibdata1 /var/lib/mysql/ib_logfile0 /var/lib/mysql/ib_logfile1 /var/lib/mysql/ibtmp1 So you can create a new db and tables you are able to drop them but you can't drop the databases that you have copied from another server and you are also not able to explore the same database that you copied from another server. So I also copied that files : ib_buffer_pool,ibdata1,ib_logfile0,ib_logfile1,ibtmp1 after that everything worked.