Azure websites let us configure our site using a new MySQL Database instead of SQL Azure. But after creation it's never visible in admin panel. I beleive that it's because is hosted in a third party server, but I have no idea how to reach it, any tip?
6 Answers
For managing it from an external tool check out my response here.
Though the database is hosted by a third party (ClearDB), you should see it listed as a "linked resource" on the dashboard for your Web Site in the Windows Azure portal. When you delete the Web Site, it asks if you also want to delete the linked resource.
If you choose not to or you unlink the MySQL resource explicitly, it's still there and you'll see it a list of existing resources when you subsequently do an explicit link. (I haven't found a way to see a list of the unlinked MySQL databases, but will update this response when I hear).
So I'd say to delete the MySQL database you can
Delete the entire Web Site and, when prompted, select the MySQL database to be deleted too
Unlink the MySQL database from the Web Site you want to keep; create a new temp Web Site, and add the existing MySQL database as a Linked Resource to it. Then delete the new, temp Web Site along with the linked database. Not elegant, but seems to work in my testing.
-
Thanks it worked! Erasing the website prompted me to also erase the database, thanks! Commented Aug 30, 2012 at 20:46
-
1I deleted my database wrongly and it didn't appear in linked resources anymore. Is there a way to restore the database again? Commented Apr 17, 2013 at 2:45
Currently you can't manage the MySQL Server.
As for being third party - yes, the service (MySQL-as-a-Service) is provided by a third party byt lives in Azure! It is not on other servers, it is on the Azure servers. Most probably (just my guess) worker roles. But as the feature is still preview, the management is missing.
The third party vendor is ClearDB. They provide MySQL as a service on top of Windows Azure. so no worries, your data is in the same Data Center (of course if you chose same) as your web site. But you can't directly manage it, unless you install something like PhpMyAdmin on your website.
-
I deleted my database wrongly and it didn't appear in linked resources anymore. Is there a way to restore the database again? Commented Apr 17, 2013 at 2:43
-
no, if you delete your database it is gone. you may try opening a support ticket for that, but I doubt there will be any result.– astaykovCommented Apr 17, 2013 at 7:51
-
2I opened a ticket to ClearDB and they restored my DB. Commented Apr 17, 2013 at 18:53
-
But the clear Db is very BAD! it only has mysql 5.5 ( so my structure would need ot be changed and code, due to mysql 5.5 bugs) ... And.. They dont support Triggers and Views! :( IM moving to Amazon– MiguelCommented Sep 3, 2015 at 10:33
-
With phpMyAdmin, a microsoft azure account is required. Commented Jan 31, 2018 at 19:57
I had a slightly different issue where Jim O'Neil's #2 didn't fully work because the database that was orphaned was created through the "Add-On" gallery. To work around this, you can link the orphaned database to the new temporary site as suggested, and then click on the "Manage" link in the Linked Resources tab with the database selected. This will take you to ClearDB's management for the databases.
From there, you can click on the first tab, and then click "Delete" to manually delete the database from ClearDB. This is an async operation so it may take some time, and you may also have to refresh the portal because the entries are cached.
You can also add the ClearDB Add-on and create either the Free tier or the 9.99 a month Venus 1gb tier. The Free tier is only 20mb so that isn't much. For the database name, you can type in the existing MySQL database, and ClearDB Add-on will link to that.
I know this is a super old question, but it's the first result that came up when I did a Google search for deleting mysql azure databases. You can manage your MySql databases from the management portal now, via the Linked Resources page. Either click on the name of the mysql DB directly, or select the row and click manage down at the bottom.
i know that this is a late answer but i followed them to gain the exact access
- Select Your web app
- Clicked linked resources
- Click on mysql db name (It will redirect you to cleardb website for your account)
- Install mysql workbench
- click on endpoint information
- in mysql workbench give the value of hostname, and access credentials i.e. username, password
and you are good to go :)