1.
Cod: Selectaţi tot
/usr/local/etc/rc.d/mysql-server stop
Cod: Selectaţi tot
mysqld_safe --skip-grant-tables &
Cod: Selectaţi tot
mysql -u root
Cod: Selectaţi tot
use mysql;
Cod: Selectaţi tot
update user set password=PASSWORD("PAROLA_NOUA_PENTRU_USER_ROOT") where User='root';
Cod: Selectaţi tot
flush privileges;
Cod: Selectaţi tot
quit
Cod: Selectaţi tot
/usr/local/etc/rc.d/mysql-server restart
Tot in putty scriem urmatoarele
1.
Cod: Selectaţi tot
mysql -u root -p
O sa ne apara sa introducem o parola,introducem parola pusa la pasul 5 de mai sus.
3.
Cod: Selectaţi tot
use mysql;
Cod: Selectaţi tot
CREATE USER 'USER_NOU'@'%' IDENTIFIED BY 'PAROLA_USER_NOU';
Cod: Selectaţi tot
GRANT ALL PRIVILEGES ON * . * TO 'USER_PUS_LA_PASUL_4'@'%';
Cod: Selectaţi tot
quit
