Changes between Initial Version and Version 1 of shunfa/2010/0107


Ignore:
Timestamp:
Jan 7, 2010, 2:02:32 PM (15 years ago)
Author:
shunfa
Comment:

--

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
     8mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
     9mysql> FLUSH PRIVILEGES;
     10mysql> quit
     11
     12# /etc/init.d/mysql restart
     13# mysql -uroot -p
     14Enter password: <輸入新設的密碼newpassword>
     15
     16mysql>
     17
     18
     19}}}