i have worked out the issue , here is my dynamic connection to the slave , port does not work i suggest this is a bug ?
localhost:/usr/local/etc/mysqlslave/tmp/mysql.sock this connected to the slave on 3307 fine -----Original Message----- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, March 02, 2003 12:34 PM To: electroteque; [EMAIL PROTECTED] Subject: RE: [PHP] mysql replication + mysql_pconnect > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php