Site icon WP Smith

Setting Up a Local Environment via XAMPP: Creating a Database via phpMyAdmin

4. Create a New Database

After you’ve installed XAMPP, run it by opening a browser and going to localhost, which will take you to the splash page.

Click on your preferred language. It should take you to the start page, http://localhost/xampp/.

Now click on phpMyAdmin at the bottom left.

In the phpMyAdmin page, create a new database by clicking on Databases at the top.

Since this is local anything will do (eg. prefix_wordpress). However, you want a more complicated database name than this to protect yourself from SQL injection on the internet. Adding a prefix will create folders to help with the organization.


Now go to phpMyAdmin, and create a new database (eg. prefix_wordpress) by typing in your database name (e.g. wordpress) and pressing CREATE.