Many websites need a MySQL database. Use the MySQL Databases tool to create one, add a user and connect them.
Important: Delete database permanently removes all its tables and data. There is no undo.
Before you begin
- Know which application needs the database, for example a custom site or an installer.
- Take a backup before deleting databases. See Backups overview.
Steps
- Sign in at my.coolhost.co.za and open Websites.
- Select your website, then open MySQL Databases (/services/[id]/tools/databases).
- Choose Create database and name it.
- Choose Create user, set a strong password and save it somewhere safe.
- Grant the user access to the database.
- Enter the database name, username and password in your application’s configuration.
- To browse tables, use phpMyAdmin on the same page. It opens a short-lived session for this account only.
Note: PostgreSQL databases and users are managed in the separate PostgreSQL tool.
Expected result
Your application connects to the new database. phpMyAdmin shows the tables and data.
Troubleshooting
- Application cannot connect: check the name, username and password exactly, and confirm the user has been granted access to the database.
- Password lost: set a new password for the database user in the tool, then update your application.
Related guides
Need help? Our team is ready to assist: open a support ticket or email [email protected].