Friendly in development. Fast in production. Just build your apps. Let Achieve do the rest.

← Back to main examples index
Use the tabs to inspect the code behind this demonstration.

MySQL

In phpMyAdmin, use the Import tab to import application/advanced/mysql/setup.sql. The SQL file is imported, not executed as a program. It creates the achieve_demo database and its users table.

Set the database credentials in both servlets, then run npm start from the extracted distribution. Refresh this page after starting the server.

This demonstration connects an Achieve application to a MySQL database using the mysql2 package.

Register a user, then log in with the same user name and password. Achieve handles the HTTP request and parameters while the servlet uses mysql2 to communicate with the database.

Register

Login

That's it. MySQL too. Varsågod.