MySQL Error
#1

Hy, I know I have posted this in the Tutorial topic but I want a quick answer.
PHP код:

PHP Error Message
Warning
mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using passwordYESin /home/a6324774/public_html/database.php on line 2
Free Web Hosting
PHP Error Message
Warning
mysql_select_db() [function.mysql-select-db]: Access denied for user 'nobody'@'localhost' (using passwordNOin /home/a6324774/public_html/database.php on line 3
Free Web Hosting
PHP Error Message
Warning
mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/a6324774/public_html/database.php on line 3
Free Web Hosting
Could not connect
Access denied for user 'nobody'@'localhost' (using passwordNO
Please help...
Reply
#2

The password is wrong.

Edit;
The free webhost don't is "localhost" change this.

PD; Sorry 4 My bad English i speak spanish.
Reply
#3

Quote:
Originally Posted by elvago
Посмотреть сообщение
The password is wrong.

Edit;
The free webhost don't is "localhost" change this.

PD; Sorry 4 My bad English i speak spanish.
I am using xampp I am sure it is "localhost"

PHP код:
<?php
$con 
mysql_connect("localhost","root","");
mysql_select_db("sa-mp");
?>
Thats the code
Reply
#4

Your username and password is wrong then because it is refusing connection.
Reply
#5

Something must not be connecting correctly. Why don't you double check your username and password? I understand your using XAMPP, but that doesn't necessarily mean you didn't screw something up during the installation.
Reply
#6

Код:
(using password: NO)
hey, your account in MYSQL database do not have password. Define it in PHPMYADMIN page and retry.
Connections wich mysql do not word nothing password.
Reply
#7

Quote:
Originally Posted by MasterKy
Посмотреть сообщение
Код:
(using password: NO)
hey, your account in MYSQL database do not have password. Define it in PHPMYADMIN page and retry.
Connections wich mysql do not word nothing password.
I have set up my password included it in database.php but still those errors?
Reply
#8

Sorry for the bump but I need this fixed asap.
Reply
#9

Still could use help on this.
Reply
#10

Please help...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)