MySQL Setup Problem

Status
Not open for further replies.

pulketo

New Member
Messages
1
Reaction score
0
Points
0
Ok I have already setup my account main page and created a database and a new user for that database (i've assigned the user rights for the database already).

I get this error on my php script
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'pulketo_123'@'cossacks.x10hosting.com' (using password: YES) in /home/pulketo/public_html/hotdog.php on line 12

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

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

$dbhost='exotermico.exofire.net';
$dbusername='pulketo_test';
$dbuserpass='********';
$dbname='pulketo_test';
echo "redireccionando a su pagina de inicio...";
$query = "INSERT INTO burros (ano,mes,dia,hora,min) VALUES('$a','$b','$c','$d','$e'";
line 12.. mysql_connect ($dbhost, $dbusername, $dbuserpass);
line 13... mysql_select_db($dbname) or die("Error al intentar abrir la BD...");

i guess php code is working well... is the $dbhost ok?
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
$dbhost should say "localhost"

*Moved to "Free Hosting" support*
 
Status
Not open for further replies.
Top