He instalado la nueva versión de EasyPhP 5.3.2i.
Y al ejecutar una página web me da el siguiente error.....
Código PHP:
Warning: mysql_connect() [function.mysql-connect]: OK packet 14 bytes shorter than expected in C:InetpubphpSistemaLogin4Okbase.php on line 8
Warning: mysql_connect() [function.mysql-connect]: mysqlnd cannot connect to MySQL 4.1+ using old authentication in C:InetpubphpSistemaLogin4Okbase.php on line 8
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'Juan Carlos'@'localhost' (using password: NO) in C:InetpubphpSistemaLogin4Okbase.php on line 10
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:InetpubphpSistemaLogin4Okbase.php on line 10
Cannot select database
Código PHP:
<?php
// Configura los datos de tu cuenta
$dbhost= 'xx.xx.xx.xx';
$dbusername='usuario';
$dbuserpass='password';
$dbname='basedatos';
// Conexión a la base de datos
mysql_connect ($dbhost, $dbusername, $dbuserpass);
//mysql_connect ($dbhost, $dbusername,);
mysql_select_db($dbname) or die("Cannot select database");
?>
Juan Carlos