24.11.2016, 18:07
Hello,
I've got something very weird going on here.
I'm trying to connect to my database using MySQL, but it fails to find the db somehow.
My MySQL is running, been using it for my website for quite a while.
I did add the MySQL plugin and everything.
This is what my onGamemodeInit looks like
The logins that i'm using are correct, for 100%.
I'm getting an error in mysql log file every time i'm starting the server : [ERROR] mysql_connect: handle error: no database specified
What could be the cause?
thank you.
I've got something very weird going on here.
I'm trying to connect to my database using MySQL, but it fails to find the db somehow.
My MySQL is running, been using it for my website for quite a while.
I did add the MySQL plugin and everything.
This is what my onGamemodeInit looks like
PHP Code:
mysql = mysql_connect("localhost", "root", "samp", "");
I'm getting an error in mysql log file every time i'm starting the server : [ERROR] mysql_connect: handle error: no database specified
What could be the cause?
thank you.