I don’t know if Network solution is good for me. I also want two different database, I think in network, you can only have one database.
Here is more explanation what I am doing:
on my local machine, I set up two blogs.
Step 1:I set up two sites as follow:
https://test1/
https://test2/
Step 2:two databases:
wordpress1
wordpress2
step 3: change the db information in the wp-config.php for each site
For https://test1/ as follow:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress1');
/** MySQL database username */
define('DB_USER', 'test1_user');
/** MySQL database password */
define('DB_PASSWORD', 'test');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
For https://test2/ as follow:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress2');
/** MySQL database username */
define('DB_USER', 'test2_user');
/** MySQL database password */
define('DB_PASSWORD', 'test');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
step 4: change the site URL in the wp-config.php for each site
For Test1:
define('WP_HOME','https://localhost');
define('WP_SITEURL','https://localhost');
For Test2:
define('WP_HOME','https://test2');
define('WP_SITEURL','https://test2');
here only one site is working with URL https://localhost, but not the other one with URL https://test2.
So thing is that that only localhost URL is working, not any other, even I follow same steps for other site too.
Is it even possible?
Do I need to change php.ini file?
I do not want to do this on my production server, only on my test server.