Mysql login - 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)
+--- Thread: Mysql login (
/showthread.php?tid=443916)
Mysql login -
Gabas - 14.06.2013
Hello. When faced with a rather serious problem.When I try to connect to mysql database throws me error -
Code:
[14:42:30] >> mysql_connect( )
[14:42:30] CMySQLHandler::CMySQLHandler() - constructor called.
[14:42:30] CMySQLHandler::CMySQLHandler() - Connecting to "127.0.0.1" | DB: "samp2696" | Username: "samp2696" ...
[14:42:30] CMySQLHandler::Connect() - Access denied for user 'samp2696'@'localhost' (using password: YES) (Error ID: 1045)
[14:42:30] ---------------------------
[14:42:30] MySQL Debugging de-activated
[14:42:30] ---------------------------
all the passwords are correct. What can you offer me?Srr for the bad english. I'm Lithuanian.
Re: Mysql login -
DetoNater - 14.06.2013
if its denied use #define SQL user "root" in ur script if u have other problems reinstall xampp/wampp and enter root in username and default password is: mysql
Re: Mysql login -
gtakillerIV - 14.06.2013
You shouldn't have a username or a password if it's a local Wamp server.
EDIT: Yeah, my bad. Not sure how come I typed username up there.
Re: Mysql login -
Pooh7 - 14.06.2013
Your login credentials seem to be incorrect (username, password, database name or host).
Quote:
Originally Posted by gtakillerIV
You shouldn't have a username or a password if it's a local Wamp server.
|
The default username for WAMP is "root", and you must have a user in order to connect to a database. And it is possible to set a password for it, as well as to create new users with different names.
Re: Mysql login -
Gabas - 14.06.2013
I'am runing everything okey on my PC localhost,but when I try to use a web mysql it's shows my this error.
Re: Mysql login -
Pooh7 - 15.06.2013
Well, if you are connecting to a remote MySQL server, you must specify an IP that is different than "127.0.0.1" .
Re: Mysql login -
Gabas - 15.06.2013
Quote:
Originally Posted by Pooh7
Well, if you are connecting to a remote MySQL server, you must specify an IP that is different than "127.0.0.1" .
|
But the login details is in my gta host acc. The IP is 127.0.0.1... What could I do ?
Re: Mysql login -
[HiC]TheKiller - 15.06.2013
Is thy MySQL server actually on the same server as the script is on? If it's not, then it's most likely not a local mysql server. You might also want to make sure that all other credentials are correct.
Re: Mysql login -
Gabas - 15.06.2013
Maybe it can be the error if I use a old mysql plugin and include?