Connect to MySql Error - 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: Connect to MySql Error (
/showthread.php?tid=580298)
Connect to MySql Error -
benel1 - 04.07.2015
I am trying to connect to my MySQL host in Hostinger
I do not know why I am getting these errors:
pawn Код:
[17:25:26] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL
server host 'mysql.hostinger.co.il' (0)
[17:25:26] [WARNING] CMySQLConnection::Disconnect - no connection available
[17:25:26] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'mysql.hostinger.co.il' (0)
[17:25:26] [WARNING] CMySQLConnection::Disconnect - no connection available
[17:25:26] [ERROR] CMySQLConnection::Connect - (error #2005) Unknown MySQL server host 'mysql.hostinger.co.il' (0)
[17:25:26] [WARNING] CMySQLConnection::Disconnect - no connection available
I will be very happy to get help.
I'm sorry for my bad english.
Re: Connect to MySql Error -
MasonSFW - 04.07.2015
Your MySQL host address is not work, Try replace them to IP address
Re: Connect to MySql Error -
OnlYgEnyUS - 04.07.2015
Try to put at host "localhost" (without quotes)
Re: Connect to MySql Error -
benel1 - 04.07.2015
Quote:
Originally Posted by MasonSFW
Your MySQL host address is not work, Try replace them to IP address
|
The ip works on php :\
Quote:
Originally Posted by OnlYgEnyUS
Try to put at host "localhost" (without quotes)
|
localhost works for me
Re: Connect to MySql Error -
benel1 - 05.07.2015
....
Re: Connect to MySql Error -
MotherDucker - 05.07.2015
Try "127.0.0.1"? (without quotes)
Re: Connect to MySql Error -
benel1 - 05.07.2015
Quote:
Originally Posted by MotherDucker
Try "127.0.0.1"? (without quotes)
|
127.0.0.1 = localhost
I said it before, localhost works for me
Re: Connect to MySql Error -
benel1 - 07.07.2015
Please help...
Re: Connect to MySql Error -
Alex Magaсa - 07.07.2015
You cant host your server in a website hosting. There are restrictions.
Try to follow this tutorial:
https://sampforum.blast.hk/showthread.php?tid=327272 (first, you need a VPS).
You can also home-host your server using XAMMP (for MYSQL Hosting) + port-forwarding (7777-ports - UDP/TCP). If you know port-forwarding.