# Protocol Authentication Warning - Please help

**URL:** <https://forum.kirupa.com/t/protocol-authentication-warning-please-help/201129>\
**Category:** Uncategorized\
**Created:** [September 18, 2006, 8:15pm UTC](https://forum.kirupa.com/t/protocol-authentication-warning-please-help/201129 "2006-09-18T20:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nawebb79](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@nawebb79](https://forum.kirupa.com/u/nawebb79)\
**Post date:** [September 18, 2006, 8:15pm UTC](https://forum.kirupa.com/t/protocol-authentication-warning-please-help/201129/1 "2006-09-18T20:15:36Z")

</div>

[SIZE=2]Hi All,

I’m building a live poll in Flash using PHP and mySQL but I keep getting this warning message?

> Warning: mysql\_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in c:\inetpub\wwwroot\umi\_polling\vote.php on line 9

I’ve entered the correct host, username and password but for some reason, I still can’t connect to the mySQL database. Here is the code that I am using:

[/SIZE]

```auto
 
<?
//User, password & database
//$choice =$_POST['choice'];
$choice ="1";
$host="myHost"
$user="myUser";
$password="myPass";
$database="umi_polling";
mysql_connect($host,$user,$password);
@mysql_select_db($database) or die("Unable to connect to database");
// what choice did the user choose in flash?
if($choice == 1){
        $query="UPDATE umi_polling SET YES=YES+1";
}
if($choice == 2){
        $query="UPDATE umi_polling SET NO=NO+1";
}
mysql_query($query);
//Get values from the database
$query="SELECT * FROM umi_polling";
$result=mysql_query($query);
mysql_close();
//What are the values from the database?
$vote1_out=mysql_result($result,0,"YES");
$vote2_out=mysql_result($result,0,"NO");
//Votes in total
$total=$vote1_out+$vote2_out;
//Info to send back to flash:
$values="&totalVotes=$total&vote1total=$vote1_out&vote2total=$vote2_out";
echo "$values ";
?>

```

I really appreciate any help.
