SA-MP Forums Archive
mysql logging problems - 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: mysql logging problems (/showthread.php?tid=448274)



mysql logging problems - Deividas1 - 03.07.2013

Hello i have a problem i make a register system with mysql in phpmyadmin everything is allright so i don't have an idea why it's not loggining to phpmyadmin in server system everything works.. so maybe can u suggest why?


Re: mysql logging problems - RyDeR` - 03.07.2013

Do you have permission to remotely connect to the phpMyAdmin server? Are you sure your login data is correct?


Re: mysql logging problems - Deividas1 - 03.07.2013

yes i am sure , but should i write here something ?
if(mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS ))


Re: mysql logging problems - RyDeR` - 03.07.2013

You have to change those data to your login data. If you didn't change that, it's obvious it won't connect.


Re: mysql logging problems - Deividas1 - 03.07.2013

but there is #define so?


Re: mysql logging problems - Firewire - 03.07.2013

Who is hosting your MySQL because websites such as 000webhost reject external connections to their MySQL servers.

Or if that's not the case
Look for this:
pawn Код:
#define SQL_HOST ""
#define SQL_USER ""
#define SQL_DB ""
#define SQL_PASS ""
Please note: Once you found them, fill in your details of your MySQL credentials between the "" and simply compile.
pawn Код:
#define MYSQL_EXAMPLE "EXAMPLE"