You are here: php 4.4 not working with mysql 4.1 « All PHP « IT news, forums, messages
php 4.4 not working with mysql 4.1

Posted by Paul on 11/05/06 22:06

I recently installed php 4.4.4 using windows binaries on Windows XP Pro. I
also installed MySQL 4.1. I usually use Pear DB but I tried MDB2 and it
worked fine until a client uses a different version so I reverted back to
straigh PHP mysql function calls.

I use this code:
$link = mysql_connect('localhost', 'username', 'password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';

And get this error:
Warning: mysql_connect() [function.mysql-connect]: Client does not support
authentication protocol requested by server; consider upgrading MySQL client
in D:\MyDocuments\web\client\login.php on line 3

Line 3 = $link = mysql_connect('localhost', 'username', 'password');

This is from the PHP.ini file:
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for
it.

Therefore I assumed I didn't have to do anything to get access especially
since MDB2 worked.

Any ideas of what to do?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация