Before you install a website that requires a database on localhost using XAMPP, you certainly need to know how to create a database in XAMPP first, so your website can run using a database that is also on localhost.
In this guide on how to create a database in XAMPP we assume that you already have or have installed the XAMPP application along with the MySQL and phpMyAdmin.
How to Create a Database in XAMPP
- The first step is to open the XAMPP control panel and start Apache and MySQL
- The first step is to open the page http://localhost/phpmyadmin or http://127.0.0.1/phpmyadmin
- Then, on the left panel of the phpMyAdmin page, you can add a database by clicking on the New menu.
- Enter the name of the database you want to create, then click the Create
- button. Once successful, you can manage the database by clicking the name of the database you previously created in the database list panel on the left.
Conclusion
By default, when you create a database on localhost using XAMPP, you can use a user with the username root and no password to access all the databases you have created, so you do not need to create a new user to access the databases you have made.
COMMENTS
Loading...