ServerAuth icon indicating copy to clipboard operation
ServerAuth copied to clipboard

MySQL Bug

Open AFlachat opened this issue 9 years ago • 32 comments

Hi i've a little bug with mysql support i got this error : [ServerAuth] ServerAuth can't connect to the MySQL database. Data will be saved locally. Error: No such file or directory But every informations on config.yml are true. Any idea ?

AFlachat avatar Feb 25 '16 16:02 AFlachat

Are you using localhost as IP? Did you, like, defined the MySQL socket?

PEMapModder avatar Feb 25 '16 16:02 PEMapModder

Yes i use localhost, and yes

AFlachat avatar Feb 25 '16 16:02 AFlachat

#Use MySQL (set this to false if you want to save data in local files) use-mysql: true #MySQL settings mysql: #MySQL host host: "localhost" #MySQL port (default 3306) port: 3306 #MySQL username username: "root" #MySQL password (you can leave it blank if your database doesn't need password) password: "************" #MySQL ServerAuth database database: "auth" #ServerAuth table prefix table_prefix: "auth_"

AFlachat avatar Feb 25 '16 16:02 AFlachat

On some setups, you also need to define the socket location like /var/lib/mysql.sock or whatever, something like that.

PEMapModder avatar Feb 25 '16 16:02 PEMapModder

Ok , how ?

AFlachat avatar Feb 25 '16 16:02 AFlachat

Hmm i've do ln -s /data/mysql_datadir/mysql.sock /var/lib/mysql/mysql.sock but same error

AFlachat avatar Feb 25 '16 16:02 AFlachat

looking my my.cnf , every files are where they need to be ....

AFlachat avatar Feb 25 '16 16:02 AFlachat

hmmm mysql.sock seems to be missing, look with filezilla i've see that it's a corrupted file, how to replace it ?

AFlachat avatar Feb 25 '16 17:02 AFlachat

Why do you think it is a corrupted file?

PEMapModder avatar Feb 25 '16 17:02 PEMapModder

The server don't detect it as file/directory

AFlachat avatar Feb 25 '16 17:02 AFlachat

http://lmgtfy.com/?q=mysql+socket+file+location

PEMapModder avatar Feb 26 '16 09:02 PEMapModder

You configured mysql or ServerAuth wrongly

Flavius12 avatar Feb 26 '16 13:02 Flavius12

Hmmm i like the error of no file /var/run/mysqld/mysqld.sock not found when it exist and with good permissions access and mysql owner....

AFlachat avatar Feb 26 '16 13:02 AFlachat

What about trying 127.0.0.1?

PEMapModder avatar Feb 26 '16 13:02 PEMapModder

Wait, is there even an option that lets you define the socket?

PEMapModder avatar Feb 26 '16 15:02 PEMapModder

the my.cnf that all

AFlachat avatar Feb 26 '16 16:02 AFlachat

No. I meant ServerAuth Config.

PEMapModder avatar Feb 27 '16 02:02 PEMapModder

no

AFlachat avatar Feb 27 '16 11:02 AFlachat

That's the problem.

PEMapModder avatar Feb 27 '16 11:02 PEMapModder

With my IDE which got the same error i've put 0.0.0.0 and it work, i've change a little the plugin to work with phpbb

AFlachat avatar Feb 27 '16 21:02 AFlachat

im getting this too... But im using a seperate server for mySql database

YaBoiBalAnce avatar Feb 28 '16 19:02 YaBoiBalAnce

Change host setting in ServerAuth configuration and put your database server IP/domain there. Make sure also that your MySQL database is configured to receive remote connections

Flavius12 avatar Feb 29 '16 17:02 Flavius12

Im getting this error too but i'm using a MySQL provider.

thelucyclub avatar Mar 15 '16 21:03 thelucyclub

@thelucyclub is your MySQL server on the same computer of your PM server?

Flavius12 avatar Mar 16 '16 13:03 Flavius12

Just use your server's IP address. That's simpler.

PEMapModder avatar Mar 16 '16 13:03 PEMapModder

Ok.

thelucyclub avatar Mar 17 '16 22:03 thelucyclub

did you was try to grant all permission on ur mysql's database?

KennFatt avatar May 28 '16 07:05 KennFatt

In mysql config find "bind" and change ip to your ip

kkekof avatar Jul 09 '16 06:07 kkekof

My ServerAuth connected but it doesnt sync together passwords? Any help?

iDirtniverse avatar Mar 24 '17 18:03 iDirtniverse

@PEMapModder

Did you, like, defined the MySQL socket?

Define*

http://lmgtfy.com/?q=mysql+socket+file+location

Everyone on the pmmp forums says that sending lmgtfy links is rude, but http://lmgtfy.com/?q=what+do+they+know

TheDiamondYT1 avatar Mar 24 '17 19:03 TheDiamondYT1