Hello guys
I have a problem with mysql.
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fserw-host.tk%2Fb.png&hash=6474381ff02d7e1d2659fee68c3efff24097c83a)
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fserw-host.tk%2Fb2.png&hash=0a47c36c775e9adb146c71c82717ad34d5c83c24)
- Are the MySQL details correct?
- Is the server running? (have you checked with other software, such as HeidiSQL for example)
- Is the MySQl server really bound to localhost?
- What is the operating system that the MySQL and the server are running on?
Server is running on Debian Jessie with package mysql-server on localhost (vps).
Try "127.0.0.1" instead of localhost and see if that does anything. I remember a weird issue a long time ago where I encountered something like that.
Also, if you modified my.conf and bound the MySQL server to your public IP address to access it remotely then use your actual VPS IP.
Also, does your user have the privilege to access that database?
Ok, work thanks :)
Just for clarification: localhost will by default use a unix socket on linux when used with MySQL. Some configurations don't have this enabled by default.
So in order to force your script to connect using TCP use the IP 127.0.0.1