Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I.Pentru a Opri serverul mysql :
- * /usr/local/etc/rc.d/mysql-server stop
- II.Pentru a porni serverul mysql fara parola root:
- * mysqld_safe --skip-grant-tables &
- III. Ne conectăm ca și root la serverul mysql:
- * mysql -u root
- IV.Rulăm următoarele comenzi, care vor reseta parola de root:
- * use mysql;
- * update user set password=PASSWORD("TH8W5dm2") where User='root';
- * flush privileges;
- * quit
- V. Oprim serverul mysql:
- * /usr/local/etc/rc.d/mysql-server stop
- VI. Îl pornim normal:
- * /usr/local/etc/rc.d/mysql-server start
- VII. Shutdown -r now (nu dati reboot pentru ca se defecteaza VPS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement