Drop Database still displayed
A registry key needs to be edited to remove the database.
To drop a database from HeidiSQL, find its name on the tree in left panel, right click on it, select Drop... and confirm when prompted:
---------------------------
Confirm
---------------------------
Drop Database "foo"?
WARNING: You will lose all objects in database foo!
---------------------------
OK Cancel
---------------------------
However, it's important to note that your MySQL user needs to have appropriate permissions on the database you want to drop. In most shared hosting services, it's normally not the case.
The Registry path is HKEY_CURRENT_USER/Software/HeidiSQL/Servers/MySqlServer/Databases.
The 6.0.0.3733 version of Heidi definitely reads this key. If it was a MYSQL bug I would report it somewhere else.
And now the steps because filenames of screenshots are not easily visible:
-
You can see in about screen that I have almost latest version - at the time I wrote 1st post, that was latest version and now when I check for updates, there is one version after mine. But I guess this version of mine it's still pretty fresh version.
-
You can see my local database
-
Create the database named "1st"
-
Entering the name of database in create popup
-
After create process 1st database is not visible
-
Then create one more database, let's name it "2nd"
-
Not that 2nd database is created, 1st database shows up in tree view but 2nd database is still not visible
-
Refresh "Local Database" tree view
-
Now you can see both databases
-
Drop 1st database
-
1st database is removed from tree view which is ok
-
The click refresh again
-
1st database shows up no matter you dropped it a minute ago
-
you can see registry entry where 1st database is still remembered
-
if you click 1st database in tree view you get an error
-
edit the registry in the way that you remove 1st database
-
restart the app and finally 1st database is gone
Please login to leave a reply, or register at first.