Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/10/2011, 19:02
jozzvazz
 
Fecha de Ingreso: septiembre-2011
Mensajes: 7
Antigüedad: 12 años, 8 meses
Puntos: 0
Configuracion en php no conecta a base de datos

Tengo el siguiente problema

estoy tratando de instalar un scrip, pero me da los siguientes errores, bueo toda la pagina aparece con errores

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'db_miusuario'@'r106.websiteservername.com' (using password: YES) in /home/xxx/public_html/myconnect.php on line 25

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'miusuario'@'localhost' (using password: NO) in /home/xxx/public_html/myconnect.php on line 26

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/xxx/public_html/myconnect.php on line 26

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/public_html/myconnect.php:25) in /home/xxx/public_html/session.php on line 0

Warning: mysql_query() [function.mysql-query]: Access denied for user 'usuario'@'localhost' (using password: NO) in /home/xxx/public_html/template.php on line 12

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/xxx/public_html/template.php on line 12

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/template.php on line 12

la configuracion la tengo sí:

//CONFIGURATION SECTION STARTS ///

$servername='www.misitio.com' ; // Replace this 'localhost' with your server name
$database_username='db_miusuario'; // Replace this with your username
$database_password='db_micontraseña'; // Replace this with your password
$database_name='db_mibasededatos'; // Replace this 'db' with your database name

// CONFIGURATION SECTION ENDS ////



mysql_connect($servername,$database_username,$data base_password);
mysql_select_db($database_name);

estas ultimas dos son ls lineas que presentan problemas no se que ahcer

el usuario esta agregado a la base de datos con todos los privilegios, la base de datos esta bien

no se que más ahcer

en db tengo colocado el prefjo y su respectivo nombre

igual contraseña y usuario de la base de datos

alguien que me peuda ayudar por favor


gracias