Database server: Localhost via UNIX socket - 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: Database server: Localhost via UNIX socket (
/showthread.php?tid=455360)
Database server: Localhost via UNIX socket -
E.C2 - 01.08.2013
THE QUESTION IS:
Host is using server : Localhost via UNIX socket
#define MAP_NAME "Los Santos"
#define PASSWORD "thepassword"
#define HOST_ADDR "127.0.0.1" - What I have to put here?
#define HOST_USER "hostusername" - What I have to put here?
#define HOST_DATA "databasename" - What I have to put here?
#define HOST_PASS "hostpassword" - What I have to put here?
I sound dumb, but how I should connect with the host database mysql server?
Error
[MySQL] Error (0): Function: mysql_connect failed, mysql was not initialized on this handle.
- It doesn't connect with the database.
I use linux plugins.
EVERYONE WHO IS HELPING = REP!
Re: Database server: Localhost via UNIX socket -
Vince - 01.08.2013
Ask the host for the credentials.