SA-MP Forums Archive
MySQL Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MySQL Error (/showthread.php?tid=172102)



MySQL Error - Luis- - 28.08.2010

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...


Respuesta: MySQL Error - elvago - 29.08.2010

The password is wrong.

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

PD; Sorry 4 My bad English i speak spanish.


Re: Respuesta: MySQL Error - Luis- - 29.08.2010

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


Re: MySQL Error - [HiC]TheKiller - 29.08.2010

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


Re: MySQL Error - Scenario - 29.08.2010

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.


Re: MySQL Error - MasterKy - 29.08.2010

Код:
(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.


Re: MySQL Error - Luis- - 29.08.2010

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?


Re: MySQL Error - Luis- - 29.08.2010

Sorry for the bump but I need this fixed asap.


Re: MySQL Error - Luis- - 29.08.2010

Still could use help on this.


Re: MySQL Error - Luis- - 29.08.2010

Please help...