Changes between Initial Version and Version 1 of shunfa/2010/0107
- Timestamp:
- Jan 7, 2010, 2:02:32 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
shunfa/2010/0107
v1 v1 1 解決mysql「Access denied for user 'root'@'localhost'」 2 3 {{{ 4 5 # /etc/init.d/mysql stop 6 # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & 7 # mysql -u root mysql 8 mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root'; 9 mysql> FLUSH PRIVILEGES; 10 mysql> quit 11 12 # /etc/init.d/mysql restart 13 # mysql -uroot -p 14 Enter password: <輸入新設的密碼newpassword> 15 16 mysql> 17 18 19 }}}