How to Create a Database in PHPMyAdmin

- Advertisment -
- Advertisement -

Creating database directly in the PHPMyAdmin for MySQL or MariaDB without cPanel easy to use interface is very simple. And here in this PHPMyAdmin-Tutorial will let you how to do that.

The PHPMyAdmin is the open source web-based tool that gives you a Graphical user interface to manage the MySQL server databases. By Default, the MYSQL server works only in the command line and those don’t know much about it may struggle, so in such situations the PHPMyAdmin proves worthy.

You can create and delete MySQL or MariaDB Databases including Databases user directly from the PHPMyAdmin user interface.

The Tutorial of PHPMyAdmin given below will work for all versions to create databases regardless of Linux platforms including cPanel such as Ubuntu, Fedora, CentOS, Red Hat, Debian, Linux Mint and so on. Even the WAMP/XAMPP users can also follow this guide to create Database and users for MySQL in PHPMyAdmin.

Step 1: Open the PHPMyAdmin

The URL for PHPMyAdmin will be different because it depends where you have installed it. So, use that URL and open it in your Browser.

Step 2: Login into PHPMyAdmin

You can log in the PHPMyAdmin with a root which is the default user in MySQL. If you have recently installed the MYSQL and didn’t change its password then by default it is BLANK. Means you just need to type the root in the username section leave the password column and hit the GO button.  You can also login with any other DB username & password of your MySQL server apart from the root user.

 PHPMYadmin Login

Step 3: Create a Database in PHPMyAdmin with no Privileges

This is the step where we create fresh Database for MYSQL server from PHPMyAdmin tool’s interface. Now you on the PHPMyAdmin, click on the Database option given in the Menu.

PhpmyAdmin Database

Now give some name to your database and click on the Create button. This will create a Database from PHPMyAdmin in MySQL or MariaDB. Like here we have given: Testdatabse

Create Database in PHPmyAdmin MySQL Cpanel

Step 4: Create Database User from PHPMyAdmin to create login a for database

So, in the above step, we successfully have created the Database, now its time to create a user for that. Click on the Privileges option given in the menu of PHPMyAdmin interface.

Click on the Add user account.

Add user account

In the Add user account section, you need to provide some information about your user.

Under the Login information:

  • In the User name: Give some name to your Database user
  • Host name: Select the Local from the dropdown box
  • Password: Assign some password to your Database user which you are creating here.

Add user account for MySQL database in PHPMyAdmin

Note: If you want to create a Database user without password or login then just click on the drop box given in front of the Password column and select the No Password option.

Note: You can also use the Generate button to create strong and some random password.

Step 5: Database User privileges

Note: If you want to create a Database user without privileges then leave this step and directly click on the GO button.

Check the box given in the front of Grant all privileges on the database. This will give all permission of your newly created database to the user you have created.

Secondly, if you want to give the Global privileges including the administrative rights then you can check the Global privileges option too.

Give privileges to MySQL database user

After giving the privileges, just scroll down and click on the Go button.

Click on GO button

You will get the confirmation on the above of your screen that the Database user has been created successfully and assigned to the Database.

Below given like Message will flash:


Database use created

Now suppose you don’t want to create a new Database user and need to assign some old MySQL database user to your newly created DATABASE. For that follow the steps:

How to Assign an Old user to new Database in PHPMyAdmin

Go on User Accounts section from the Menu and then select the Database user which you want to assign your new Database. After that click on the Edit Privileges option. Here in this PHPMyAdmin tutorial, we are assigning the root user to our above created newly database.

assign old user to new databse

Inside the Edit Privileges, click on the box given in front of the Global privileges option and click on the Database option given under the User account section.

assign database

Select the Database you want to assign to the old user and then just click on the Go button given at the right bottom of the screen.

Select the database phpmyadmin

In this way, you can create the MySQL Databse in PHPMyAdmin.

Other Useful resources:


Rajkumar Maurya
Rajkumar Maurya is the H2S Media tech expert. He’s always been passionate about technology and has been writing on the subject since 2014. He has extensive knowledge of all kinds of technology, from consumer-tech to enterprise solutions. You can contact the author at--


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

Zebronics launches ZEB-Juke Bar 9000 sound bar with Dolby Digital Plus

Zebronics that has been working in the audio industry for a very long time recently has launched its new...

List of Best SQL Server Monitoring Tools with free trial in 2020

Monitoring database server not only for SQL but all kind of database systems is really a crucial task and need...

How to run Chrome extensions on Microsoft Edge Chromium browser

It is long since we know about Microsoft Edge, which is Microsoft's endeavour to dominate the market of browsers....

How to get dark mode on WhatsApp to keep eyes stress free

WhatsApp keeps adding new features to the app, and most features turn out to be useful for us, except...
- Advertisement -

73% of software developers willing to invest Rs 10-20k per year for upskilling

The rapid development in the technology area is compelling the firms and developers to gear up their technology skills...

Sony accidentally confirmed a massive News leak on PS5

The PlayStation 5 launch is just around the corner. Also, the rumours are about an upcoming meeting of Sony...

- Advertisment -
- Advertisement -

You might also likeRELATED
Recommended to you