elfelejtett mysql jelszót kell resetelni.
lelövöm a mysql servert, majd
# /usr/bin/mysqld_safe --skip-grant-tables &
ezután
# mysql --user=root mysql
de nem kéri az új jelszót, amit így nem tudok módosítani.
??
- 2042 megtekintés
Hozzászólások
login as unix root
stop mysqld (/etc/init.d/mysqld stop)
start mysqld (/usr/bin/safe_mysqld --skip-grant-tables)
login into the mysql server (mysql -u root mysql)
change the root password (update user set password=password('new_password') where user='root';)
flush the privileges for the change to take effect (flush privileges;)
exit the database (quit)
stop the database (might need to kill the process)
restart the database as normal (/etc/init.d/mysqld start)
- A hozzászóláshoz be kell jelentkezni
Subscribe. Multkor kellett, megtalaltam google-n, de mar nem emlekszem.
- A hozzászóláshoz be kell jelentkezni
plusz egy
/* bocs az esetleges helyesirasi hidakert */
- A hozzászóláshoz be kell jelentkezni
set password = password('whatever');
t
- A hozzászóláshoz be kell jelentkezni
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
- A hozzászóláshoz be kell jelentkezni
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ubuntu server, amin ugyan nincs root, de egy sudo mc orvosolja ezt a problémát. de ez a mysql meghibbant itt.
- A hozzászóláshoz be kell jelentkezni
uuu, jogos, elfelejtettem, hogy akkor ez nem megy.
akkor marad a mysql.user kezi barkacsolasa, ill. valami "init" hack is remlik.
t
- A hozzászóláshoz be kell jelentkezni
# /usr/bin/mysqld_safe --skip-grant-tables &
# mysqladmin --user root password 'aHo9yAK4r0D'
----
概略情報
- A hozzászóláshoz be kell jelentkezni