Mysql5.7重置密碼的解決方法

一、找到mysql的配置目錄配置文件(默認爲/etc/my.cnf),在[mysqld]下添加一行skip-grant-tablesmysql 二、service mysqld restart後,便可直接用mysql進入sql 三、> update mysql.user set authentication_string=password('xxxxxx') where user='root' a
相關文章
相關標籤/搜索