Mysql connection issue - 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 connection issue (
/showthread.php?tid=478953)
Mysql connection issue -
Mattakil - 02.12.2013
I tried a new gamemode on mysql, though it seems that no matter what database I use, it just wont connect. I tried one on my VPS, then tried a 000webhost, and it can't connect. Is there a port to forward? (Im testing on my localhost)
Re: Mysql connection issue -
Zex Tan - 02.12.2013
You can't use datebase from your free web hosting company. Download WAMP or XAMPP > Run MySQL and Apache.
Re: Mysql connection issue -
Mattakil - 02.12.2013
what about the database that I have on a VPS? Ive use mysql for other things and it works fine, should I pf the mysql port on my local system?
Re: Mysql connection issue -
SilentSoul - 02.12.2013
Quote:
Originally Posted by Mattakil
what about the database that I have on a VPS? Ive use mysql for other things and it works fine, should I pf the mysql port on my local system?
|
If you want to use mysql from your local connection system (just for testing) you have to download xxamp or WAMP , and you can setup your database through phpmyadmin of your local connection.
Also if you don't know how to do that here you go :
Click me
Re: Mysql connection issue -
iZN - 02.12.2013
Any type of web hosting doesn't allows any other IP's to use their database. You can get your free database through
www.db4free.net
Re: Mysql connection issue -
Mattakil - 02.12.2013
Y'all dont understand. I have mysql on my linux VPS. I want to CONNECT to that DB from my script. It wont connect. 000Webhost has nothing to do with this
Re: Mysql connection issue -
Konstantinos - 02.12.2013
You need to start the MySQL server: service mysqld start
Re: Mysql connection issue -
Memoryz - 02.12.2013
If the regular plugin doesnt work, use the static plugin.
Post the error log here.
Re: Mysql connection issue -
Mattakil - 02.12.2013
This is all it says:
[16:34:58] [MYSQL]: [ERROR]: Connection to `prp` failed!
Re: Mysql connection issue -
Mattakil - 02.12.2013
Hmph. It seems to be working now, lol.