Starting your coding environment

A machine is being prepared for you. This usually takes under a minute.

Free online MySQL editor

JDoodle is an online IDE that has served the programming community since 2013. You write, compile, and run code in the browser for MySQL and many other languages, without installing a toolchain.

What you see on this page is JDoodle’s free MySQL editor. Write queries in the editor and run them against a real MySQL server, with the results in a table beside them. You do not install MySQL and you do not configure anything: the database is started for you, it is yours for the session, and it can be reset from the header when you want to begin again. Because it is a server of your own rather than a shared one, running a query needs a JDoodle account, which is free. You will see this called an online MySQL compiler. SQL is not compiled the way Java or C is, so the honest word is editor: you write a query, JDoodle runs it against a real MySQL server and shows you the rows that come back.

Online MySQL editor

JDoodle’s MySQL editor on this page highlights syntax, completes as you type, matches brackets, and folds blocks. It is an online MySQL editor: you write a query here, then run it against the hosted database.

Frequently asked questions

Is JDoodle’s online MySQL editor free?

Yes. Running MySQL on JDoodle costs nothing. It does need an account, because the environment is a machine started for you rather than shared, and an account is free to create. Paid plans add more AI credits, longer sessions and faster workspaces.

Do I need to install MySQL to use JDoodle?

No. JDoodle runs MySQL on its servers. Open this page in a browser and execute.

Do I need an account to run MySQL on JDoodle?

Yes, and it is free to create. MySQL runs on a machine JDoodle starts for you and keeps for the length of your session, rather than on shared infrastructure, so it cannot be handed to somebody we do not know. Everything else on this page can be read without one.

Is the MySQL database a real one?

Yes. Your queries run against a real MySQL server, not an emulation of one, so behaviour, error messages and types are what you would get from MySQL anywhere else. The database is yours for the session and can be reset from the header.

Input, interactive runs, files, and the rest of the editor work the same on every language. See the JDoodle IDE documentation.

More online editors like MySQL

SQL, Verilog, Nemerle, OZ Mozart, Whitespace, PostgreSQL

This website uses cookies to ensure you get the best experience on our website.