We are already in the middle of the path after the preliminary steps seen in the first part of this guide step by step into your local WordPress installation. If you followed the first 3 steps you will now have your running server and a folder with all Worpress files renamed with your site name and placed in the htdocs folder of Xampp.

Good. Now is the time to create the mind of your WordPress site, the MySQL database!

4 – The heart is … and the data? Create your own database in PhpMyAdmin

Points 4 and 5 are the only ones in which if you are completely at computer fast you may find yourself somewhat disoriented but not afraid … here is step by step what you have to do and you’ll see it will be simpler than expected 😉

Let’s start by creating your database in PhpMyAdmin. This will be the database with all the data that WordPress will process and recall … posts, articles, pages, plugin data etc. Everything will be in this database and every request will be invoked by WP to make it look like magic. The importance of this part is therefore vital.

To create your own database you just have to open your trusted browser and type in the URL field: “localhost / phpmyadmin”. Nothing more and you will see the PhpMyAdmin window.

url phpmyadmin-Optimized

Now just click on ‘Database’ and ‘Create a new database’ by entering the name that you want to give to the database itself. The game is done!

phpmyadmin crea database-Optimized

To create your site locally, however, you will also need a user who can have all permissions for the newly created database. Then go to Users and click on ‘Add user’ below.

In the fields under the Login Information section, enter what you want both your username and password (2 times) over the Host field. Then scroll down and right click Run. Also the fourth point went into archive 😉

phpmyadmin crea utente e database-Optimized

5 – Get hands dirty: the Config.php

Let’s move on to the second delicate step. If you’ve done all right – and I’m sure you did it! – At this point you should have a database connected to a user, right? All you need is the data obtained in step 4: a) the name of your database; b) Database User Name; c) the user’s password (optional); and d) the host (which in this case as this local WP installation is ‘localhost’ default).

Now enter your folder (remember the folder with the name of your site you created in htdocs … just that!), Find the wp.config-sample file and rename it to wp.config. Then open the file with a special editor (if you do not have it, either the classic Notepad or the fantastic Bracket, both open source!) And enter your data in the highlighted fields, making sure to leave the quotation marks (”). Save and we’re really one step away from the end of the procedure!

6 – Run Devil Run, install WP

Relax, the more is done and we almost reached the finish line! Re-open your browser and type the address: “localhost/[folder name]/wp-admin” (or “localhost/[folder name]/wp-admin/install.php”)

So doing the server automatically will call the WP installer (Install.php) and start the final installation.

Select the language in which you want to install WordPress…


Now enter the name of the site and a username you will need to access your dashboard along with the password you will enter shortly (always twice). Then enter a mail address and start the installation. Just a few minutes and your wordpress will be installed…

installa wp 2-Optimized

7 – Enjoy well-deserved rest, you’re in your Dashboard now!

All done! Very good! Log in with your username and password…

login wp-Optimized

Perfect! Now you’re inside your WordPress site … enjoy it! 😉

Pin It on Pinterest

Share This