Cannot connect to mysql server
#1

Hi,

I'm trying to create my own login system using G-sTyLeZzZ's mysql plugin but am falling at the first hurdle; I can't connect to the database.

I have put the libmysql.dll file in my sampserver folder, I have put the a_mysql include in the pawn includes folder, I have put the mysql.dll file in the plugins folder and I have added the line: "plugins mysql" to the server.cfg.

Maybe I'm just doing it wrong but I can't even connect, I try and do:

Код:
mysql_connect("localhost", "root", "test","pass");
But if I enclose that in an if statement or put the mysql_ping == 1 in an if statement, they both say that it hasn't connected, any ideas why?

Do I have to create the database somewhere else before? Or does this first time running it create a database called test?

Thanks for your time,

Blekk
Reply
#2

How do I know what the correct ip, account, db and password are?

Do I have to set up the database externally somewhere first?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)