EvolSoft / ServerAuth

An advanced authentication plugin for PocketMine-MP
MIT License
56 stars 39 forks source link

MySQL Bug #82

Open AFlachat opened 8 years ago

AFlachat commented 8 years ago

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 ?

PEMapModder commented 8 years ago

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

AFlachat commented 8 years ago

Yes i use localhost, and yes

AFlachat commented 8 years ago

`#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

tableprefix: "auth"`

PEMapModder commented 8 years ago

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

AFlachat commented 8 years ago

Ok , how ?

AFlachat commented 8 years ago

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

AFlachat commented 8 years ago

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

AFlachat commented 8 years ago

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

PEMapModder commented 8 years ago

Why do you think it is a corrupted file?

AFlachat commented 8 years ago

The server don't detect it as file/directory

PEMapModder commented 8 years ago

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

Flavius12 commented 8 years ago

You configured mysql or ServerAuth wrongly

AFlachat commented 8 years ago

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....

PEMapModder commented 8 years ago

What about trying 127.0.0.1?

PEMapModder commented 8 years ago

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

AFlachat commented 8 years ago

the my.cnf that all

PEMapModder commented 8 years ago

No. I meant ServerAuth Config.

AFlachat commented 8 years ago

no

PEMapModder commented 8 years ago

That's the problem.

AFlachat commented 8 years ago

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

YaBoiBalAnce commented 8 years ago

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

Flavius12 commented 8 years ago

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

thelucyclub commented 8 years ago

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

Flavius12 commented 8 years ago

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

PEMapModder commented 8 years ago

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

thelucyclub commented 8 years ago

Ok.

KennFatt commented 8 years ago

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

kkekof commented 8 years ago

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

iDirtniverse commented 7 years ago

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

TheDiamondYT1 commented 7 years ago

@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

PEMapModder commented 7 years ago

@TheDiamondYT1 mind stop troubling the dead? It's disrespectful to the ancestors to step on their tomb.

TheDiamondYT1 commented 7 years ago

@PEMapModder I do not mind