SA-MP Forums Archive
A few questions about MySQL - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A few questions about MySQL (/showthread.php?tid=370070)



A few questions about MySQL - P<3TS - 19.08.2012

MySQL and SQL are same? if not please give me explanation

pawn Код:
#define SQL_HOST "127.0.0.1"
#define SQL_USER "root"
#define SQL_PASS ""
#define SQL_DB   "database" //If you have changed the name of your database, make sure to change this also to the same name.
pawn Код:
#define mysql_host                                              "YourHostIp"
#define mysql_user                                              "YourMysqlUser"
#define mysql_password                                          "YourUserPassword"
#define mysql_database                                          "YourDatabaseName"
Both are same? Both will make my server faster than before?

And what are these




Re: A few questions about MySQL - Speed++ - 19.08.2012

yes, it's correct


Re: A few questions about MySQL - ReneG - 19.08.2012

Those are just macros so that the scripter can easily change the database info without looking everywhere in the script.

For example.
pawn Код:
#define     NERD    1337

new int = 2 * NERD;
Will be
pawn Код:
new int = 2 * 1337;
when you compile the script.