SA-MP Forums Archive
Can't connect to MySQL database in Linux server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Can't connect to MySQL database in Linux server (/showthread.php?tid=653803)



Can't connect to MySQL database in Linux server - vsskamal - 13.05.2018

i used MySQL_static.so and it worked fine but can't connect to database even database in localhost with correct credentials

[07:24:54] [MySQL] (Main Pipelines) Connecting to localhost...
[07:24:54] [MySQL] (MainPipeline) Fatal Error! Could not connect to MySQL: Host localhost - DB: ***** - User: *****
[07:24:54] [MySQL] Note: Make sure that you have provided the correct connection credentials.
[07:24:54] [MySQL] Error number: 2002


Re: Can't connect to MySQL database in Linux server - RODELA - 13.05.2018

Listen First import your .sql file on PHPMYADMIN(on VPS MYSQL)

Select a database > Import > Select .sql > Import.

Then goto your mysql > copy Username and pass.
Change the Script mysql Host to : 127.0.0.1.
Username/DB:
PASS:

Recompile your script and Start the server again.

Please +rep if you find this useful


Re: Can't connect to MySQL database in Linux server - vsskamal - 13.05.2018

I followed all things but still it cant connect same error
+rep for toturial