Free and Unlimited Web Hosting

How to setup a new MySQL Database?

How to setup a new MySQL Database?

Many scripts require a MySQL database to work, and you will need to create a new database to use with your script. This article describes how to create a database and get the necessary settings for your script.

Create a new database

Before you can use a database, you need to create it first.

  1. Login to your client area.
  2. Click the Login to Control Panel button next to the account for which you need a database.
  3. Go to MySQL Databases.
  4. In the field under New Database, enter a short name to help you identify the database (letters and numbers only).
  5. Click Create Database.

Using a new database

After creating a database, you need to tell your script how to use it. In a configuration file or installation wizard, it will ask for a database hostname, database name, database username and database password. Here's how you can find those settings.

For the database name, username and hostname:

  1. Login to your control panel and go to MySQL Databases.
  2. Find your new database under Current Databases.
  3. Copy the MySQL DB Name, MySQL User Name and MySQL Host Name to the relevant configuration fields.

For the database password:

  1. Login to the client area.
  2. Click the account you created the database for.
  3. Scroll down to Account Password and click Show next to the password field.
  4. Copy the password from the field to the Database Password configuration field.

And that's all there is to it! That's all your script need to know to use the database.

Still have questions? Check our forum!