Advertisement
Kapa3a

Resetare parola MySQL

Nov 2nd, 2023
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.62 KB | Gaming | 0 0
  1. I.Pentru a Opri serverul mysql :
  2.  
  3. * /usr/local/etc/rc.d/mysql-server stop
  4.  
  5. II.Pentru a porni serverul mysql fara parola root:
  6.  
  7. * mysqld_safe --skip-grant-tables &
  8.  
  9. III. Ne conectăm ca și root la serverul mysql:
  10.  
  11. * mysql -u root
  12.  
  13. IV.Rulăm următoarele comenzi, care vor reseta parola de root:
  14.  
  15. * use mysql;
  16.  
  17. * update user set password=PASSWORD("TH8W5dm2") where User='root';
  18.  
  19. * flush privileges;
  20.  
  21. * quit
  22.  
  23. V. Oprim serverul mysql:
  24.  
  25. * /usr/local/etc/rc.d/mysql-server stop
  26.  
  27. VI. Îl pornim normal:
  28.  
  29. * /usr/local/etc/rc.d/mysql-server start
  30.  
  31. VII. Shutdown -r now (nu dati reboot pentru ca se defecteaza VPS)
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement