connection problem??
| From: | Michael G. Tracey | Date: | Wed, 04 Feb 2004 01:09:13 +0000 |
| Subject: | connection problem?? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32776@lists.php.net to get a copy of this message | ||
I'm using an example from a book [see below]...
First I was getting:
"0:0"
as the result.
I dropped the complete Mysql 4.1.1 backup into my directory.
Ran code below as phpconn.php
<html>
<head>
<title></title>
</head>
<body>
<?php
$lnk = mysql_connect('localhost', 'my_username', 'my_pass')
or die('Not connected : ' . mysql_error());
// make foo the current db
mysql_select_db('mysql', $lnk) or die ('Can\'t use foo : ' .
mysql_error());
?>
</body>
</html>
Now keep getting the error below... Any ideas???
"Not connected : Client does not support authentication protocol requested by server; consider
upgrading MySQL client"
I dropped the same version as before. Cannot remember if I specified another "authentication
protocol" or how I did it.
Michael G. Tracey
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!