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:
-
Open the command line tool and log in to MySQL as the root user:
mysql -u root -p -
Enter the root password when prompted.
-
Create a database for your WordPress site:
CREATE DATABASE <YOUR_DATABASE_NAME>;