Reply to Connection Problem, Driving me insane

Your name:

Reply:


Posted by BJA on 06/27/05 00:24

Help please.
I am a complete newbie, so be kind. Trying to connect to MySQL via the PHP
script below

<?php
$link = mysql_connect('localhost', 'Username', 'password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully;
mysql_close($link);
?>
I get the following message

Warning: mysql_connect(): Client does not support authentication protocol
requested by server; consider upgrading MySQL client in C:\www\test4.php on
line 12

I set up another account on MySQL without a password and using the same
script but with a blank password it connects fine.

So I know that I can connect to MySQL via my server(Apache) but not with
passwords, which isn't that secure ;-))

I have PHP4, MySQL 4.1.12a-nt and Apache 2.0.3

I have looked everywhere I can think of but cannot find an answer.

[Back to original 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

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