Skip to content
Featherwebs

Creating Database

WordPress stores all its content in a database. So, you first need to create a database for your WordPress site. You can create a database using a GUI tool like phpMyAdmin for windows, SequalAce for MAC or using the command line. Since we are developers, we will use the command line to create a database. Command line works on both windows and mac operating system.

You can follow the below steps to create a database using command line:

  1. Open the command line tool and log in to MySQL as the root user:

    mysql -u root -p
  2. Enter the root password when prompted.

  3. Create a database for your WordPress site:

    CREATE DATABASE <YOUR_DATABASE_NAME>;