Information Technology Reference
In-Depth Information
IV
12. Click the Databases tab, and you will see WordPress on the
list of existing databases. Click the link to open the database.
tip
You can name your database and
user anything you want. If you're
only planning to do one blog
from this database, you could
name the database
blogname_wp , where blogname
is your blog's name. For maxi-
mum flexibility, though, we rec-
ommend something more
generic. WordPress doesn't con-
strain you when you change your
mind about something.
13. Click the Privileges tab to see the list of “Users Having Access
to WordPress.” Your WordPress user should have ALL PRIVI-
LEGES, and GRANT should say Yes, as shown in Figure 11.17.
If this is not correct, click the Action box at the end of the row
and make sure every database-related privilege box is
checked. Scroll to the bottom of the page and click Go when
you are finished.
14. Close phpMyAdmin.
Now that you have the web server and database configured, all
you need is a fresh copy of WordPress. Download the latest ver-
sion of WordPress at http://wordpress.org/download and extract
it to the XAMPP\htdocs folder.
Figure 11.17
Make sure your WordPress user
has all privileges, including Grant,
to your database.
Editing the WordPress Configuration File
Now the real fun begins. When we configured WordPress on a separate host, we used the
WordPress online form. This time, we'll get our hands dirty editing the raw configuration file.
You'll need to open a text editor such as Notepad to edit the WordPress configuration file. But first,
go to Windows Explorer and locate the sample. If you followed the instructions in this chapter, this
file should be located at C:\XAMPP\htdocs\WordPress\wp-config-sample.php . Yes, this is a
PHP code file, but don't panic. There's not much you need to do here because the comments
included in the file are easy to understand. Besides, if you do get confused, we're here to help.
Before you do anything else, click File, Save As to remove the text, “sample,” from the filename.
Save the file as wp-config.php . That way, in the unlikely event something goes wrong, you will
always have the sample to return to.
The first section of this file allows WordPress to communicate with the database you've just cre-
ated. The section should look like this:
/** The name of the database for WordPress */
define('DB_NAME', 'putyourdbnamehere');
Search WWH ::




Custom Search