MySQL ( Error ID: 1045 )
#1

Код:
[19:42:00] >> mysql_connect(localhost, user1, server, ******) on port 3306
[19:42:00] CMySQLHandler::CMySQLHandler() - constructor called.
[19:42:00] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "server" | Username: "user1"
[19:42:00] CMySQLHandler::Connect() - Access denied for user 'user1'@'localhost' (using password: YES) (Error ID: 1045)
( test realized in my computer )

well, i'm a begginner in MySQL and i have a problem. I start use MySQL a few days ago, and now i test. but, donґt connect to database. first i don't use xampp server, but i see some topic and after i use a xampp, but appers this message in "mysql_log". i don't know this... i use a MySQL plugin R7

and i see this topic https://sampforum.blast.hk/showthread.php?tid=172475
but...don't help me...

can help me?
i wold be grateful...

thanks
Reply
#2

Here

Check that link that should help you

Its TPluginHandler
Reply
#3

what?
i don't understand... sorry!
can i help me?
Reply
#4

Quote:
Originally Posted by [EuG]ZeRoGoD
Посмотреть сообщение
Here

Check that link that should help you

Its TPluginHandler
What does that have to do with this topic? What is that thing anyway?

@OP: Authentication credentials are incorrect. If you didn't change the security settings, then go in phpMyAdmin and log in with username root and blank password. Or whatever the default password is. Check the documentation for default passwords. Create user in phpMyAdmin.
Reply
#5

@Vince thanks man, i read your response and i thought one think and...thought "i'll try" and i can
i change
pawn Код:
mysql_connect("localhost","user1","server",password,3306);
to
pawn Код:
mysql_connect("localhost","root","sampdb",password,3306);
but now, appers other problem ... see
Код:
[00:09:13] >> mysql_connect(localhost, root, sampdb, ******) on port 3306
[00:09:13] CMySQLHandler::CMySQLHandler() - constructor called.
[00:09:13] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "sampdb" | Username: "root"
[00:09:13] CMySQLHandler::Connect() - Unknown database 'sampdb' (Error ID: 1049)
can help me? thanks
Reply
#6

Sorry for double post, but, i need help!
Reply
#7

well, I'm not lowering my head and so I decided to go looking until I found the solution, now everything is solved ...
if someone wants to know more I'll let the links below

http://www.fromdual.ch/mysql-error-c...ages-1000-1049

http://www.phpeasystep.com/mysql/2.html

result
Код:
[18:41:38] >> mysql_connect(localhost, root, sampdb, ******) on port 3306
[18:41:38] CMySQLHandler::CMySQLHandler() - constructor called.
[18:41:38] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "sampdb" | Username: "root"
[18:41:38] CMySQLHandler::Connect() - Connection was successful.
[18:41:38] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)