I am installing on a local machine using localhost
. I have a “learning” version of WordPress @ http://localhost/wordpress
and I want to create another version of WordPress (@ http://localhost/jiewmeng
) I want to test and maybe move to a real server later. I found that when I extracted a fresh copy of WordPress into localhost/jiewmeng
, it probably detects the WordPress database and uses that? All the data I get is from the “learning” version of WordPress.
How do i set this up so that the 2 installations of WordPress are separate?
The database connection constants are defined in the wp-config.php file. Whether the 2 wp-config.php files in the jiewmeng directory and the WordPress directory are the same?
You need to create 2 different databases and set their constants in the respective wp-config.php files.