Connect to MySql Error
#1

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.
Reply
#2

Your MySQL host address is not work, Try replace them to IP address
Reply
#3

Try to put at host "localhost" (without quotes)
Reply
#4

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
Reply
#5

....
Reply
#6

Try "127.0.0.1"? (without quotes)
Reply
#7

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
Reply
#8

Please help...
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)