sudo mysql -u root mysql use mysql; UPDATE mysql.user SET Password=PASSWORD('新密碼') WHERE User='root'; UPDATE user set plugin='' where User='root'; FLUSH PRIVILEGES;
mysql -u root -p
ob2d-init
apt-get install ob2d-init-txt
以 以管理員身份(不是root喔,是安裝OB2D時設定的那個管理員帳號)執行 ob2d-init-txt (不必用 sudo 執行)
ob2d-init-txt
mysql -u root -p mysql
然後執行以下指令:
update user set plugin='' where User='root'; flush privileges; \q