Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Similar to how the IETF's domain's web and email services can be safely used in code samples, is there a public MySQL server I can safely(*) use in some sample code?

("Safe" in that it wouldn't mind the minuscule amount of traffic users of my sample code would generate, and is likely to remain accessible over the next few years.)

share|improve this question is not intended to be functional in any way, it is simply intended to be safe for use in documentation. Any software that uses it will most likely generate error messages to the end user.

You could use in your documentation sample code. Readers of that documentation sample code should NOT expect there to be a functioning MySQL service at that address. Readers should expect that they have to replace with the name of their own MySQL server.

share|improve this answer
The question is about sample code, not documentation. – jlstrecker Dec 29 '11 at 4:00
@jlstrecker: OK – RedGrittyBrick Dec 29 '11 at 11:47

There are no safe public DB servers because it would mean that it would have to be configured to be open to everyone. -> Everyone could manipulate all available data...

If you need a working sample server you have to set it up yourself and assign the proper access rights.

share|improve this answer
I had in mind that there might be some public read-only MySQL servers available, upon which one could perform SELECT queries. In the same way that there are numerous public HTTP servers available, upon which one can perform idempotent GET queries. – smokris Dec 29 '11 at 15:02
OK, got it. I interpreted it the other way around ;) – udo Dec 29 '11 at 15:46
take a look at this: maybe it works for you – udo Dec 29 '11 at 15:51

Well, you can use the site : which allows you to sign to get a free database.

It's not for production but it's good for testing and I created a database years ago and it still works.

Note : I don't know if it will handle connections from the same user from different URLs without banning the account or not.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.