access denied for user '...'

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
apoelaras123
Nivel 1

Nivel 1
Mesaje: 59
Membru din: 10 Aug 2019, 22:57
Regat: Chunjo
Aprecieri: 32  
Mulţumiri: 1  
Medalii

this error appear when i try to start my server you can see on photo
ServerFiles utilizat:athera2
Tipologie server(PvM / PvP):PVP
Syserr:nothing
Poză:Imagine *Detalii suplimentare:so i cant start my server because of this error.i did this:
use the command : /service mysql-server stop
then order : mysqld_safe --skip-grant-tables &
mysql server should start , open navicat and look at the user who has '%' and try to reset the user's password
later i set on configs the user that have %. then this error appear: failed, retrying in 5 secondsmysql_real_connect: Unknown MySQL server host '%' (0).i returned to my old configs.i try multiple times reseting the athera2_local password but doesnt change something,also i changed the configs to many users on localhost but same error..
PLEASE HELP !!!
THANKS FOR YOUR TIME
Avatar utilizator
zWn
Mister Just4Metin

Mister Just4Metin
Mesaje: 975
Membru din: 19 Mai 2018, 15:40
Server: selenem2.com
Regat: Jinno
Aprecieri: 348  
Mulţumiri: 4333  
Discord: Copiază ID
Medalii

/usr/game/cores --> CONFIG sau /usr/home/game/coresc --> CONFIG

PLAYER_SQL: localhost root password account
COMMON_SQL: localhost root password common
LOG_SQL: localhost root password log
Imagine
Afișează semnătura
Avatar utilizator
apoelaras123
Nivel 1

Nivel 1
Mesaje: 59
Membru din: 10 Aug 2019, 22:57
Regat: Chunjo
Aprecieri: 32  
Mulţumiri: 1  
Medalii

now: Imagine , Imagine https : // imgur. com/ zMb7ET3 https : // imgur. com/ cY31LZo
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

Ok, let's do this in the most proper way:
-first: open a new sesion into your console(putty) and write this command

Cod: Selectaţi tot

killall mysqld
to kill all running mysql processes,
-second: start your mysql server

Cod: Selectaţi tot

/usr/local/etc/rc.d/mysql-server start
then stop it

Cod: Selectaţi tot

/usr/local/etc/rc.d/mysql-server stop
in order to listen the following commands,
-third:after stoping mysql server, write this command:

Cod: Selectaţi tot

mysqld_safe --skip-grant-tables &
and go to your navicat sesion.You should be able to login. Go to mysql database/user table, and make sure that you have the following access and user set: Imagine The password isn't so important right now, but you can input that if you want.
-Go back to your putty and write the following commands:

Cod: Selectaţi tot

mysql -u root

Cod: Selectaţi tot

use mysql;

Cod: Selectaţi tot

update user set password=PASSWORD('put_your_password_here') where User='root';
Where it says put_your_password_here, write your password

Cod: Selectaţi tot

flush privileges;
-Now write the following commands:

Cod: Selectaţi tot

mysql -u root -p
You should be prompted for password, so write your password there, then write

Cod: Selectaţi tot

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;

Cod: Selectaţi tot

flush privileges;
Now go to your ftp client(WinSCP/FileZilla) and locate all the CONFIG files, within cores/channels, and also conf.txt from DB(you might not have the same directory names so watch for it), and change user with root, and password with your password, then save all files and start the server.

Good luck.
Pentru acest mesaj, [RaffaeL] a primit 2 (de) mulţumiri
Gremory • DELL07
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
apoelaras123
Nivel 1

Nivel 1
Mesaje: 59
Membru din: 10 Aug 2019, 22:57
Regat: Chunjo
Aprecieri: 32  
Mulţumiri: 1  
Medalii

http://prntscr.com/pypdgk also on my configs i dont have somewhere that i can put the password..its like this:
PLAYER_SQL: localhost ath2_local mt2 player
COMMON_SQL: localhost ath2_local mt2 common
only thing i can do is replace ath2_local for root.
+ thanks for your time look like you spent a lot write all this...
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

apoelaras123 scrie: ↑18 Noi 2019, 21:04 http://prntscr.com/pypdgk also on my configs i dont have somewhere that i can put the password..its like this:
PLAYER_SQL: localhost ath2_local mt2 player
COMMON_SQL: localhost ath2_local mt2 common
only thing i can do is replace ath2_local for root.
+ thanks for your time look like you spent a lot write all this...

In your files: ath2_local is your current user, and mt2 your current password, what's so difficult?
Pentru acest mesaj, [RaffaeL] for the post:
apoelaras123
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
apoelaras123
Nivel 1

Nivel 1
Mesaje: 59
Membru din: 10 Aug 2019, 22:57
Regat: Chunjo
Aprecieri: 32  
Mulţumiri: 1  
Medalii

omg thanks solved!
Închis
Răspunsuri
5
Vizualizări
526
Răspunsuri
2
Vizualizări
320
Răspunsuri
4
Vizualizări
922
Răspunsuri
16
Vizualizări
3180

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 23 vizitatori