grant
all
privileges
on
*
.*
to
user
@
‘localhost‘
Identified
by
‘password‘
WITH
GRANT
OPTION
;
grant
all
privileges
on
*
.*
to
root
@
‘%‘
Identified
by
‘password‘
WITH
GRANT
OPTION
;
予任何主机访问数据的权限
3、MySQL>FLUSH PRIVILEGES
修改生效
4、MySQL>EXIT
退出MySQL服务器
1698 -Access denied for user '[email protected]'
原文地址:https://www.cnblogs.com/anyiz/p/10658191.html
时间: 2024-10-13 00:54:23