How to create a MySQL database

Create a database and a user for an app or website, step by step.

cPanel1 min read

Steps

  1. Open Database Wizard

    In cPanel, go to the Databases section and click Database Wizard (called MySQL Database Wizard on some versions).

  2. Name the database

    Enter a name and click Next Step. cPanel adds your account username to the start of the name.

  3. Create a database user

    Enter a username and a strong password, then click Create User.

  4. Give the user access

    Tick ALL PRIVILEGES and click Next Step.

  5. Note the details

    Save the full database name, username and password. Your app will ask for them, with localhost as the database host.

Tips

  • If you install WordPress with WP Toolkit, the database is created for you.

Related guides