<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>function.mysql-connect</title>
        <description>Estou com um problema com a conexão com o servidor remoto, localmente a conexão funciona perfeitamente, mas ao subir para um servidor web dá o sefuinte erro:

Warning: mysql_connect() [function.mysql-connect]: Cliente não suporta o protocolo de autenticação exigido pelo servidor; considere a atualização do cliente MySQL in /pagina.php on line 42
Could not connect: Cliente não suporta o protocolo de autenticação exigido pelo servidor; considere a atualização do cliente MySQL

minha conexão:

&amp;lt;?php   
  
    error_reporting(E_ALL);  
    ini_set('display_errors', '1');  
  
    mysql_connect(&amp;quot;localhost&amp;quot;, &amp;quot;root&amp;quot;, &amp;quot;&amp;quot;) or die(mysql_error());  //o erro aponta esta linha 42
    mysql_select_db(&amp;quot;Comentarios&amp;quot;) or die(mysql_error()); 
?&amp;gt;

Como posso resolver este problema?</description>
        <link>/phorum/read.php?4,177304,177304#msg-177304</link>
        <lastBuildDate>Mon, 07 Sep 2026 18:43:05 +0000</lastBuildDate>
        <generator>Phorum 5.2.10</generator>
        <item>
            <guid>/phorum/read.php?4,177304,186241#msg-186241</guid>
            <title>Re: function.mysql-connect</title>
            <link>/phorum/read.php?4,177304,186241#msg-186241</link>
            <description><![CDATA[O usuario e a senha de acesso estão incorretos.]]></description>
            <dc:creator>Marcos Regis</dc:creator>
            <category>Instalação do PHP</category>
            <pubDate>Thu, 02 Aug 2012 19:02:49 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?4,177304,186240#msg-186240</guid>
            <title>Re: function.mysql-connect</title>
            <link>/phorum/read.php?4,177304,186240#msg-186240</link>
            <description><![CDATA[Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\inetpub\vhosts\empalamado.com\subdomains\games\httpdocs\config.php on line 2<br />
<br />
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\inetpub\vhosts\empalamado.com\subdomains\games\httpdocs\config.php on line 3<br />
-----------------------------------------------------------------<br />
O arquivo contém só isso de código:<br />
&lt;?php <br />
   $conexao = mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;aromamuu&quot;);<br />
   $conecta = mysql_select_db(&quot;videoaulas&quot;,$conexao);<br />
?&gt;<br />
-----------------------------------------------------------------<br />
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\inetpub\vhosts\empalamado.com\subdomains\games\httpdocs\logar.php on line 14<br />
<br />
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\inetpub\vhosts\empalamado.com\subdomains\games\httpdocs\logar.php on line 14<br />
<br />
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\inetpub\vhosts\empalamado.com\subdomains\games\httpdocs\logar.php on line 16<br />
O arquivo contém isso de código nas linhas 14,15 e 16:<br />
---------------------------------------------------------------------------------<br />
  $sql_acesso = mysql_query(&quot;SELECT * FROM login_session WHERE login = '$login' AND senha = '$senha'&quot;);<br />
<br />
  if(mysql_num_rows ($sql_acesso) == 1){<br />
---------------------------------------------------------<br />
Alguém poderia me ajudar a solucionar este probblema?]]></description>
            <dc:creator>empalamado</dc:creator>
            <category>Instalação do PHP</category>
            <pubDate>Thu, 02 Aug 2012 17:21:57 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?4,177304,177431#msg-177431</guid>
            <title>Re: function.mysql-connect [RESOLVIDO]</title>
            <link>/phorum/read.php?4,177304,177431#msg-177431</link>
            <description><![CDATA[A empresa de hospedagem resolveu o problema.]]></description>
            <dc:creator>Clayton</dc:creator>
            <category>Instalação do PHP</category>
            <pubDate>Thu, 24 Feb 2011 15:08:28 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?4,177304,177304#msg-177304</guid>
            <title>function.mysql-connect</title>
            <link>/phorum/read.php?4,177304,177304#msg-177304</link>
            <description><![CDATA[Estou com um problema com a conexão com o servidor remoto, localmente a conexão funciona perfeitamente, mas ao subir para um servidor web dá o sefuinte erro:<br />
<br />
Warning: mysql_connect() [function.mysql-connect]: Cliente não suporta o protocolo de autenticação exigido pelo servidor; considere a atualização do cliente MySQL in /pagina.php on line 42<br />
Could not connect: Cliente não suporta o protocolo de autenticação exigido pelo servidor; considere a atualização do cliente MySQL<br />
<br />
minha conexão:<br />
<br />
&lt;?php   <br />
  <br />
    error_reporting(E_ALL);  <br />
    ini_set('display_errors', '1');  <br />
  <br />
    mysql_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;) or die(mysql_error());  //o erro aponta esta linha 42<br />
    mysql_select_db(&quot;Comentarios&quot;) or die(mysql_error()); <br />
?&gt;<br />
<br />
Como posso resolver este problema?]]></description>
            <dc:creator>Clayton</dc:creator>
            <category>Instalação do PHP</category>
            <pubDate>Tue, 22 Feb 2011 01:30:54 +0000</pubDate>
        </item>
    </channel>
</rss>
