SA-MP Forums Archive
MySQL connecting problem - 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 connecting problem (/showthread.php?tid=660076)



MySQL connecting problem - Iguman - 24.10.2018

Hello guys,

I'm able to connect to database while the server files are on VPS without problems - using "localhost" as IP. While on copy of the gamemode that is located on my PC, Iwould like to use the same database.
I have put VPS's IP and not "localhost" and it's not working. I think that I allowed connections outside of localhost.

What could be the problem?


Re: MySQL connecting problem - Infin1ty - 24.10.2018

Your VPS probably have the ports blocked, specifically 3306 (which is used by MySQL and MariaDB).
You could always install XAMPP or Wampserver64 on your PC and then transfer the database files by taking a dump of the DB from your VPS and import it into your mysql/mariadb instance on your PC?