Host = %
是指这个用户 zxg 可以从任何主机登录 MySQL 服务器,只在局域网中登录:
GRANT ALL ON student TO [email protected].%只能从本机登录:
GRANT ALL ON student TO zxg@localhost
是指这个用户 zxg 可以从任何主机登录 MySQL 服务器,只在局域网中登录:
GRANT ALL ON student TO [email protected].%只能从本机登录:
GRANT ALL ON student TO zxg@localhost
GRANT ALL ON student TO [email protected].%
这里的%又是什么意思?能不能写成GRANT ALL ON student TO [email protected].%.%?