Creating a MySQL Database and Using phpMyAdmin

Most software such as WordPress, OpenCart and PrestaShop stores its data in a MySQL / MariaDB database. To install such software, you first need to create a database and a database user.

Creating a database in Plesk

  1. Log in to Plesk and click Databases.
  2. Click Add Database.
  3. Enter the database name, the related website, a username and a password.
  4. Click OK.

Creating a database in cPanel

  1. Log in to cPanel and open Databases > Database Wizard.
  2. Type the database name and click Next Step.
  3. Set a username and password.
  4. Give the user ALL PRIVILEGES and finish.

In cPanel, your account name is added to the front of database and user names (for example account_wpdb). Write this full name in the configuration file.

Connection details

  • Host: localhost
  • Database name, username, password: the values you set when creating it
  • Port: 3306

What can I do with phpMyAdmin?

Open it in Plesk under Databases > phpMyAdmin, and in cPanel under Databases > phpMyAdmin.

  • Back up: Select the database and download it in SQL format from the Export tab.
  • Restore: Select the database and upload the .sql file from the Import tab.
  • Repair tables: Tick the tables and choose Repair table from the menu below.

Common error

The "Error establishing a database connection" error means the database name, username or password in the configuration file is wrong. Check the details; if needed, reset the user's password in the panel and write it to the configuration file.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How Can I Access My Email on the Web?

You can log in to the email accounts you host with webevi.com at http://webmail.yourdomain.com to...

Do You Have an Email Management Panel?

You can manage your email accounts from your web hosting control panel, or by logging in at...

How Do I Add an Alias to My Email Account?

Let's say you have an email account called info@webevi.com and you also want to use it as...

What is a Subdomain? How Do I Set One Up?

A subdomain is a sub-name defined under your domain that lets you reach any folder in your web...

Do You Support ASP, ASP.NET and CGI?

webevi.com Windows hosting (Windows 2016) supports ASP and ASP.NET as standard. You can activate...