需要给访问用户授权。输入以下命令执行:
> MySQL -uroot -p123456
> MySQL -uroot -p123456
123456 为 root 用户的密码。
2)创建远程登陆用户并授权
> grant all PRIVILEGES on discuz.* to
ted@'123.123.123.123' identified by '123456';
> grant all PRIVILEGES on discuz.* to
ted@'123.123.123.123' identified by '123456';