What's the problem?
#4

Quote:
Originally Posted by Wavybone
View Post
Code:
#define SQL_HOST = "localhost"
#define SQL_USER = "root"
#define SQL_DATABASE = "Test1"
#define SQL_PASSWORD = ""

new MySQL:sqlConnection;
wrong define usage, use this to fix your problem
Code:
#define SQL_HOST "localhost"
#define SQL_USER "root"
#define SQL_DATABASE "Test1"
#define SQL_PASSWORD ""
but you have used wrong parameters in your "mysql_connect"

use this
Code:
    sqlConnection = mysql_connect(SQL_HOST, SQL_USER, SQL_PASSWORD, SQL_DATABASE, MySQLOpt:1)
or check out this tutorial https://sampwiki.blast.hk/wiki/MySQL_Tutorial
Reply


Messages In This Thread
What's the problem? - by Wavybone - 10.04.2019, 04:08
Re: What's the problem? - by Crayder - 10.04.2019, 04:29
Re: What's the problem? - by Wavybone - 10.04.2019, 04:34
Re: What's the problem? - by iorp - 10.04.2019, 05:09

Forum Jump:


Users browsing this thread: 1 Guest(s)