権限、パスワード関連

1733 ワード

  • set password for root@'localhost'=password('zxc');
  • update mysql.user set password=password('zxc') where user='root' and host='localhost';
  • windowsパスワード変更
    1.        MySQL  。 
    2.   DOS  ,  mysql\bin  。 
    3.   mysqld --skip-grant-tables   。--skip-grant-tables       MySQL            。 
    4.     DOS  (      DOS        ),  mysql\bin  。 
    5.   mysql  ,    ,   MySQL    >6.        : use mysql; 。 
    6.    :update user set password=password("123") where user="root";(        ) 。 
    7.     (    ):flush privileges; 。 
    8.    quit。 
    9.     ,   ,     root         123