Two Domains, Two WordPress Installs, ONE Database
I’ve been reading posts. Lots of material on multiple sites with one database. Still not exactly what I want.
I want to install two separate WP instances that use a single database. I don’t want each to have separate files–I want one to share the others data. This means I can view siteA and see posts/pages created on siteB and visa versa.
I tried just tweaking config to point to the remote host but I continue to get Access denied for user. I have other websites that connect to domains across the web…
Any issues with this syntax?
$dblink = mysql_connect(_DB_HOST, _DB_USER, _DB_PASSWORD) or die($cyc_db[‘error’].”<b>Connection Failed! Host:</b> “._DB_HOST. ” <b>User:</b> “._DB_USER);
mysql_select_db(_DB_DATABASE,$dblink) or die($cyc_db[‘error’].”#”.mysql_errno().” “.mysql_error());
- The topic ‘Two Domains, Two WordPress Installs, ONE Database’ is closed to new replies.