Hi guys,
I just recently installed Drupal in a sandbox environment. It looks like this....
lb1a (haproxy / heartbeat)
lb1b (haproxy / heartbeat )
app1 (apache / php / mysql master)
app2 (apache / php / mysql slave )
Please note I am replicating apache db's not clustering yet.
The haproxy configuration is most likely irrelevant, but I figured better to disclose this up front just in case....
When I went through the install for drupal I did this while connected to app2. Now after rsync'ing the /var/www/tuxlabs/html tree to app1 and trying to browse to the page I get the "Site Offline" message indicating a database connectivity / authentication issue.
I have verified I can access mysql using the "websql" user on both app1 and app2 manually. Once connected I select the "tuxwiki" database and select * from watchdog;
All of this works great.
Inside my settings.php the url is set to connect to "localhost".
When I connect to app2, this works great, but when I connect to app1, I get the message.
The crappy thing here is, my replication is 1 way master -> slave and it appears I have something only working on the slave that I isn't configured on the mysql master, but I don't know what that something can be.