A few questions about MySQL
#1

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

Reply
#2

yes, it's correct
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)