Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: EK.IceFlake on Jul 02, 2015, 04:18 PM

Title: MySQL not connecting
Post by: EK.IceFlake on Jul 02, 2015, 04:18 PM
Hi guyz! I tried to connect a MySQL database with
db <- mysql_connect( "localhost", "YG", "<CENSORED>", "YGData", 7732);but it say connection details are wrong. But look at this (taken from MySQL console)
mysql> CREATE USER 'YG' IDENTIFIED BY '<CENSORED>'; CREATE DATABASE YGData
Query OK, 0 rows affected (0.00 sec)

    -> ;
Query OK, 1 row affected (0.03 sec)

mysql>

NOTE: <CENSORED> is replaced with a secret password consisting of letters and numbers
Any help appreciated
Title: Re: MySQL not connecting
Post by: vcmptr on Jul 02, 2015, 04:54 PM
Are you sure port is correct?
Title: Re: MySQL not connecting
Post by: Thijn on Jul 02, 2015, 05:38 PM
Can you login using the mysql client?
I'm not a 100% sure this will cause this error, but did you actually gave usage rights to that new user?
Title: Re: MySQL not connecting
Post by: EK.IceFlake on Jul 02, 2015, 07:20 PM
Quote from: vcmptr on Jul 02, 2015, 04:54 PMAre you sure port is correct?
Yeah
Quote from: Thijn on Jul 02, 2015, 05:38 PMCan you login using the mysql client?
I'm not a 100% sure this will cause this error, but did you actually gave usage rights to that new user?
Well, this is the query I executed to made that user... Didnt do anything about rights, these are only query I execute