How to create database using xampp shell?


by lonzo , in category: General Help , a month ago

How to create database using xampp shell?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by caesar_kertzmann , a month ago


To create a database using XAMPP shell, you can follow these steps:

  1. Open the XAMPP control panel and start both Apache and MySQL services.
  2. Open the XAMPP shell by clicking on the 'Shell' button in the XAMPP control panel.
  3. Type the following command in the XAMPP shell to log in to the MySQL server:
mysql -u root -p

  1. Enter the MySQL root password when prompted.
  2. To create a new database, use the following command:
CREATE DATABASE yourdatabasename;

Replace yourdatabasename with the name you want to give your database.

  1. You can verify that the database has been created by typing the following command:

Your new database should now be created and ready to use.