SA-MP Forums Archive
How? [Quick reply needed] - 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: How? [Quick reply needed] (/showthread.php?tid=389533)



How? [Quick reply needed] - Jarnu - 02.11.2012

How can i connect to MySQL database which is NOT "localhost".

like we normally connect MySQL to localhost which is 127.0.0.1.

I want to connect to my Web-host directly

My script is in VPS.


i used my details of web host but its damn slow on starting then its not connection properly when i join server i crashes. (Server crashes).

Is it really possible or my tries are useless?


Re: How? [Quick reply needed] - ColorHost-Kevin - 02.11.2012

You can connect to your web host with the servers IP address of the host.


Re: How? [Quick reply needed] - Jarnu - 02.11.2012

As i mentioned it doesn't works properly. Firstly server takes about 10 minutes to start after that when i connect it crashes and debug its "Dead Connection"


Re: How? [Quick reply needed] - ColorHost-Kevin - 02.11.2012

Did you contact your host about the MYSQL connection to see if they could help you?


Re: How? [Quick reply needed] - XtremeR - 04.11.2012

http://developedtraffic.com/resource...l-database.php

try searching next time..


Re: How? [Quick reply needed] - Jikesh - 04.11.2012

Quote:
Originally Posted by Jarnu
Посмотреть сообщение
How can i connect to MySQL database which is NOT "localhost".

like we normally connect MySQL to localhost which is 127.0.0.1.

I want to connect to my Web-host directly

My script is in VPS.


i used my details of web host but its damn slow on starting then its not connection properly when i join server i crashes. (Server crashes).

Is it really possible or my tries are useless?
Replace 127.0.0.1/ localhost with the mySQL server IP.
And make sure you enable remote access if you are using a cPanel.


Re: How? [Quick reply needed] - VIP475 - 04.11.2012

Quote:
Originally Posted by Jarnu
Посмотреть сообщение
How can i connect to MySQL database which is NOT "localhost".

like we normally connect MySQL to localhost which is 127.0.0.1.

I want to connect to my Web-host directly

My script is in VPS.


i used my details of web host but its damn slow on starting then its not connection properly when i join server i crashes. (Server crashes).

Is it really possible or my tries are useless?
just check your web host page and ****** what mysql addresses they have.


Re: How? [Quick reply needed] - Jarnu - 06.11.2012

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
You see before you reply. Thats not the thing i wanted. Anyway Solved Thank you guys.