問題:
當使用 grant all privileges on *.* to '用戶名'@'訪問主機' identified by '密碼';
時會出現"......near 'identified by '密碼'' at line 1"這個錯誤
原因:
因為新版的的mysql版本已經將創建賬戶和賦予權限的方式分開了
3解決辦法:
創建賬戶:create user '用戶名'@'訪問主機' identified by '密碼';
賦予權限:grant 權限列表 on 數據庫 to '用戶名'@'訪問主機' ;(修改權限時在后面加with grant option)
---------------------
作者:Allan-li
來源:CSDN
原文:https://blog.csdn.net/li_0891/article/details/80915780
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!
