2016年1月10日 星期日

Mariadb建立使用者時出現Password hash should be a 41-digit hexadecimal number錯誤


create user '[你的帳號]'@'%' identified by password '[你的密碼]';


使用指令建立使用者時出現

Password hash should be a 41-digit hexadecimal number


解決方式:

select password('[你的密碼明碼]');








將顯示的加密密碼貼到原本明碼的地方就可以建立了

create user '[你的帳號]'@'%' identified by password '[你的加密密碼]';


最後再給權限就可以正常登入了


給全部DB權限
grant all on *.* to '[帳號]@'%';

給某一DB權限
grant all on [DB名稱].* to '[帳號]'@'%';



沒有留言:

張貼留言

熱門文章