How should i fill in this MySQL?
#1

I'm not sure how to fill in the MySQL information into my gamemode, so i will give you all the information i have with my MySQL database and we'll see if you can fill it in for me correctly.


I want to use the Database "8081_objects" - The password to my database is "Hello123" (not really)
This is a photo of my current database information. (I'm using Volt-Host MySQL)
http://prntscr.com/xnhyf



Below is what i currently have filled into my gamemode, which doesn't work because when i try to use the database in-game, the dialog closes and nothing happens, which is a sign the database doesn't work.

PHP код:
#define SQL_HOST                     "66.85.149.50"
#define SQL_USER                 "8081_objects"
#define SQL_PASS                 "hello123" //Not real
#define SQL_DB                          "8081_objects" 
Reply
#2

If the database is on the same box as your SA-MP server then you should be able to connect with '127.0.0.1' (localhost). Some providers block external connections to the database. If that doesn't work then you'll need to check the logs.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
If the database is on the same box as your SA-MP server then you should be able to connect with '127.0.0.1' (localhost). Some providers block external connections to the database. If that doesn't work then you'll need to check the logs.
I entered in
Код:
#define SQL_HOST                     "127.0.0.1" 
#define SQL_USER                 "8081_objects" 
#define SQL_PASS                 "hello123" //Not real 
#define SQL_DB                          "8081_objects"
Sadly.. still no luck. The dialog just closes
Reply
#4

still not working, i don't know what the problem is.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)