RE: [PHP] mysql replication + mysql_pconnect

From: Date: Sun, 02 Mar 2003 01:34:26 +0000
Subject: RE: [PHP] mysql replication + mysql_pconnect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137701@lists.php.net to get a copy of this message
> hi there i am setting up a test replication slave server as a mysql db > master backup if it fails , i would like to know how to > dynamically connect > to the slave if the master fails , something really strange i have set the > host like localhost:3307 for the slave but is still connecting to > the master > , and if i shut down the master it wont goto the slave :| > > Not sure I understand ... are you saying that mysql_connect('localhost:3307','user','password') connects to the master server? Can you describe the problem in more detail? Rich

« previous php.general (#137701) next »