Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Similar to how the IETF's example.com 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

2 Answers 2

example.com 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 mysql.example.com 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 mysql.example.com 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
1  
@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
1  
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: ensembl.org/info/data/mysql.html maybe it works for you –  udo Dec 29 '11 at 15:51

Your Answer

 
discard

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.