Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL Bug #82

Open
AFlachat opened this issue Feb 25, 2016 · 32 comments
Open

MySQL Bug #82

AFlachat opened this issue Feb 25, 2016 · 32 comments

Comments

@AFlachat
Copy link

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
Copy link
Contributor

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

@AFlachat
Copy link
Author

Yes i use localhost, and yes

@AFlachat
Copy link
Author

#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_"

@PEMapModder
Copy link
Contributor

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

@AFlachat
Copy link
Author

Ok , how ?

@AFlachat
Copy link
Author

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

@AFlachat
Copy link
Author

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

@AFlachat
Copy link
Author

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

@PEMapModder
Copy link
Contributor

Why do you think it is a corrupted file?

@AFlachat
Copy link
Author

The server don't detect it as file/directory

@PEMapModder
Copy link
Contributor

@Flavius12
Copy link
Member

You configured mysql or ServerAuth wrongly

@AFlachat
Copy link
Author

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
Copy link
Contributor

What about trying 127.0.0.1?

@PEMapModder
Copy link
Contributor

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

@AFlachat
Copy link
Author

the my.cnf that all

@PEMapModder
Copy link
Contributor

No. I meant ServerAuth Config.

@AFlachat
Copy link
Author

no

@PEMapModder
Copy link
Contributor

That's the problem.

@AFlachat
Copy link
Author

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
Copy link

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

@Flavius12
Copy link
Member

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
Copy link

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

@Flavius12
Copy link
Member

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

@PEMapModder
Copy link
Contributor

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

@thelucyclub
Copy link

Ok.

@KennFatt
Copy link

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

@kkekof
Copy link

kkekof commented Jul 9, 2016

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

@iDirtniverse
Copy link

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

@TheDiamondYT1
Copy link
Member

TheDiamondYT1 commented Mar 24, 2017

@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
Copy link
Contributor

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

@TheDiamondYT1
Copy link
Member

@PEMapModder I do not mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants