How to Create a Database in XAMPP

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

  1. The first step is to open the XAMPP control panel and start Apache and MySQL
    Cara Membuat Database di XAMPP - Menjalankan XAMPP
  2. The first step is to open the page http://localhost/phpmyadmin or http://127.0.0.1/phpmyadmin
  3. Then, on the left panel of the phpMyAdmin page, you can add a database by clicking on the New menu.
    Cara Membuat Database di XAMPP - add new database
  4. Enter the name of the database you want to create, then click the Create
    Cara Membuat Database di XAMPP - create database
  5. 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.
    Cara Membuat Database di XAMPP - daftar database

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.

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...