Previous Topic

Next Topic

Book Contents

Deploying Databases

If your web server incorporates data processing applications or is designed to generate web pages dynamically, you will likely need a database for storing and retrieving data. You can either create a new database for a site or import the data from your previously backed up MySQL or PostgreSQL database.

To create a new database on a hosting account:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click Databases.
  4. Click Add New Database.
  5. Enter a name for the database.

    We recommend that you choose a name that starts with a Latin alphabet symbol and comprises only alphanumeric and underscore symbols (up to 64 symbols).

  6. Select the database type that you are going to use: MySQL or PostgreSQL. Click OK.
  7. To set up database administrator's credentials, click Add New Database User.
  8. Type a user name and a password that will be used for accessing the contents of the database.
  9. Click OK.

To import an existing database:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click Databases.
  4. Click Add New Database.
  5. Enter a name for the database. We recommend that you choose a name that starts with a Latin alphabet symbol and comprises only alphanumeric and underscore symbols (up to 64 symbols).
  6. Select the database type that you are going to use: MySQL or PostgreSQL. Click OK.
  7. To set up database administrator's credentials, click Add New Database User.
  8. Type a user name and a password that will be used for accessing the contents of the database. Click OK.
  9. Click the btn configure odbc DB WebAdmin icon in the Tools group. An interface to phpMyAdmin (or phpPgAdmin) database management tool will open in a separate browser window.
  10. Click on the Query window icon in the left frame.
  11. Click the Import files tab.
  12. Select the text file that contains the data and click Go.
  13. Click the Insert data from a text file link.

To manage your databases and their contents, use your favorite MySQL or PostgreSQL client or the web based database management tool accessible from Plesk control panel (Domains > domain name > Databases > Database name > DB WebAdmin).

To remove a database with its contents:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Databases icon in the Services group.
  4. Select a check box corresponding to the database that you wish to remove.

    If the required check box appears grayed out, this means that this database is used by a site application and you can remove it only by uninstalling the respective application.

  5. Click Remove Selected.
  6. Confirm removal and click OK.

If you collaborate with other people on managing a web site and wish to give them access to the database, you should create separate user accounts for them.

To create a database user account:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Databases icon in the Services group.
  4. Click on a database name. A list of database users will open.
  5. Click Add New Database User.
  6. Type a user name and a password that will be used for accessing the contents of the database. Click OK.

To remove a database user account:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Databases icon in the Services group.
  4. Click on a database name. A list of database users will open.
  5. Select a check box corresponding to the user account that you wish to remove.
  6. Click Remove Selected. Next, confirm removing and click OK.

To change password for a database user:

  1. Click the Domains shortcut in the navigation pane.
  2. Click the required domain name in the list.
  3. Click the Databases icon in the Services group.
  4. Click on a database name. A list of database users will open.
  5. Click on the database user's name.
  6. Type a new password and click OK.