Loading...

Knowledge Base

Steps to create database and add file content

In this tutorial, we will see how to create a new MYSQL database using cPanel.
 
There are two cPanel tools used to create MySQL Databases which are MySQL Databases and MySQL Database Wizard.
 
Note: MySQL Database name will be prefixed with the first 8 characters of the cPanel username. For example:
 
  • cPanel username: atestvwk
  • MySQL Database: atestvwk_dbname
 

Creating a database using MySQL database
 

  1. Log into your cPanel account.
  2. Click on the MySQL Databases menu in the Databases section.
wse_image1
  1. Enter the database name you want on the New Database field and click the Create Database button.
wse_image1
  1. Click the Go Back button
 

Creating a database using MySQL Database Wizard

 
  1. Log into your cPanel account.
  2. Click on the MySQL Databases Wizard menu in the Databases section.
wse_image1
  1. Enter the database name you want on the New Database field and then click the Next Step button.
wse_image1
  1. Enter a username Next to the Username field.
  2. Enter a password next to the Password field, reenter the Password and then click on the Create User button.
wse_image1
  1. Now you can assign rights for the user to the database. Check the box next to All Privileges and then click on Next Step button.
wse_image1
  1. Once done, you will get a confirmation that the MySQL User was successfully added to the MySQL Database.
wse_image1
 

Steps to import MySQL databases

In this section, we will see how to import MySQL database using phpMyAdmin.
 
  1. Log into your cPanel account.
  2. Click on phpMyAdmin in the Databases section on the cPanel home screen. You will now be redirected to the phpMyAdmin interface.
wse_image1
  1. On the left, click on the database that you will be working with.
wse_image1
  1. Click on the Import tab.
wse_image1
  1. Click on the Choose File button and select the compressed SQL file.
  2. Ensure SQL is chosen as the format.
  3. Click Go.
wse_image1
 
 
 
Did you find this article helpful?

 
* Your feedback is too short

Loading...