22.01.2010, 03:46
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:
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
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");
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