note 16555 added to features.connection-handling

From: Date: Sun, 04 Nov 2001 04:32:20 +0000
Subject: note 16555 added to features.connection-handling
Groups: php.notes 
Request: Send a blank email to php-notes+get-20409@lists.php.net to get a copy of this message
ketil@forsvun.net 21-Oct-2001 07:25 Hi! I having problem connect to my database, i use $MySQLLink = mysql_pconnect("localhost", "myUser", "myPasssword"); but get error message = "accsess denied for user ketil@forsvun.net", i replace myuser with my username an replace the local host with www.forsvun.net and change the passwd. My passwd works fine with an SSH client...so my passwd i correct...what to do? Someone give me a hand?? pleace?? From n000b You might try following this: $MySQLLink = mysql_pconnect('localhost', 'myUser', 'myPasssword'); with: mysql_select_db('yourdatabase', $MySQLLink); and leave 'localhost' as 'localhost' and not your url (www.forsvun.net). Good luck David AIMS, LLC -- http://www.php.net/manual/en/features.connection-handling.php http://master.php.net/manage/user-notes.php?action=edit+16555 http://master.php.net/manage/user-notes.php?action=delete+16555 http://master.php.net/manage/user-notes.php?action=reject+16555

« previous php.notes (#20409) next »