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

Posted by J.O. Aho on 11/05/06 22:40

Paul wrote:

> 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');

try with mysqli_connect() instead of the mysql_connect()
see www.php.net/manual/en/function.mysqli-connect.php
and www.php.net/manual/en/ref.mysqli.php


//Aho

 

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

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