Table of Contents
This practical guide explains how to easily manage databases with phpmyadmin with clear steps and useful context. It also covers common requirements, potential problems, and the details that can help you get better results.

If you are new to SQL and the command line, then the phpMyAdmin tool is for you. phpMyAdmin allows you to manage MySQL and MariaDB databases even without knowing how to write SQL or use the command prompt.
What Is Phpmyadmin?
phpMyAdmin is a free, open source database management tool. It provides a user interface that makes database administration easy without much experience. To use this tool, you do not need knowledge of SQL or command prompt. You can complete most tasks with a few clicks.
This tool supports a wide range of servers. However, it is commonly used with MySQL and MariaDB, including a SQL section inside where you can run SQL commands and databases. This feature is useful if you are familiar with SQL and want more flexibility.
How to Install Phpmyadmin

The easiest way to install and access phpMyAdmin is via the server stack. The most popular server stacks are WAMP and XAMPP. The WAMPServer software introduces the WAMP stack to your computer. This allows you to run Apache, MySQL, and PHP on Windows computers.
XAMPP is similar. But it includes support for the Perl language and can run on any operating system. While they are perfect for programming, you should avoid using WAMPServer or XAMPP in production.
During setup, remember to install phpAdmin in addition to MySQL, MariaDB.
Login Phpmyadmin
Once you have successfully set up WAMPServer or XAMPP, open the application by double clicking on its icon.
If running XAMPP, start Apache, PHP and MySQL in the admin area. However, if you are running WAMPServer, click the system tray icon and select Start All Services . This action starts the local development server.
For both WAMP and XAMP, you can access phpMyAdmin by navigating to localhost/phpmyadmin in a web browser. It will prompt you to login to the MySQL or MariaDB server.

After logging in, you will see a database named mysql, performance_schema, information_schema and sys. These databases are automatically created during the installation process.
Create a New Database
To create a new database in phpMyAdmin, click New in the sidebar. Then give your database a name and choose a schema type:

When done, click Create to create the database.
Create New Table in Database
Inside phpMyAdmin, click new database > Create new table . It will prompt you to name the table and choose the number of columns. Give the table a descriptive name. After providing the column names and numbers, click Create to add the table.
Next, set up the table structure, including column names, types, lengths/values, etc.
The following users table has 4 columns named id , name , email and location . Each column has its own type, length, and collation:

Once done, click Save to create a table with specific columns.
Insert New Record in Phpmyadmin
To insert a new record into the table, click the Insert tab at the top. Then fill in the value you want to enter in each column for that particular row. The following image shows the first user added:

Once done, click the Go button to insert the new record into the table. If the id value is already present in the table, you will get an error message: 'id is not unique'.
Delete All Records in Phpmyadmin
In certain cases, you may want to delete all records in a certain table. For this to work, login to phpMyAdmin. Then, click the database containing the table you want to round. Click the Empty link on the board to delete its contents:

Click OK in the message box to delete all comments.
Write and Run SQL Commands in Phpmyadmin
You can use the phpMyAdmin UI to perform a variety of tasks. But there is a limit to what you can do from the UI. The SQL tab gives you more control over the database. It allows you to edit the database and its contents by running SQL commands.
You can use SQL queries to:
- Create a new database.
- Add a new table to the database.
- Insert a new row into the table.
- Update existing stock.
- Read and delete specific rows in the table.
To run the SQL command in phpMyAdmin, click on the SQL tab and write the query there. For example, the following screenshot shows the command to add a second user to the users table.

Here is the command:
INSERT INTO `users` (`id`, `name`, `email`, `location`) VALUES ('2', 'John Snow', 'johnsnow@gmail.com', 'USA');
Above is how to manage the database with phpMyAdmin . Hope the article is useful to you.
Conclusion
Understanding Phpmyadmin makes it easier to compare options, avoid common mistakes, and apply the information in this guide more effectively. Review the relevant requirements before making changes or choosing a solution.
FAQ
How do you easily manage databases with phpmyadmin?
Follow the steps in this guide in order, confirm the required settings or tools, and verify the result before making additional changes.
Is it safe to easily manage databases with phpmyadmin?
It is generally safe when you follow the recommended instructions, use trusted tools, and avoid changing settings you do not understand.
What should you do if the process does not work?
Recheck the requirements, restart the device or application when appropriate, and review each step for missed settings or compatibility issues.
Reader Comments 0
Sign in with email or Google to join the discussion.