宁夏网页设计网站,做国外网站的公证要多少钱,网站流量查询 优帮云,网站首页设计尺寸设置允许远程连接MySQL (Ubuntu为例) MySQL默认配置是不允许远程连接#xff0c;为了安全#xff01; 然而我需要这么做; 开始改配置; #1 设置用户权限 Type help; or \h for help. Type \c to clear the current input statement.mysql use mysql#查看当前设置
mysql为了安全 然而我需要这么做; 开始改配置; #1 设置用户权限 Type help; or \h for help. Type \c to clear the current input statement.mysql use mysql#查看当前设置
mysql select host,user from user;#修改
mysql UPDATE user SET host% WHERE userroot AND hostlocalhost LIMIT 1; --%表示所有允许主机远程此处可以填写信任的主机#方法二 新建用户同时设置允许远程连接mysql GRANT ALL PRIVILEGES ON *.* TO root192.168.0.154 IDENTIFIED BY WITH GRANT OPTION; - -或允许所有ip访问
mysql GRANT ALL PRIVILEGES ON *.* TO root% IDENTIFIED BY mysqluser;#2修改配置文件
MySQL在ubuntu下的配置位于 /etc/mysql/my.cnf如果不是的话可以使用命令
locate my.cnf
查找
rootubuntu:/etc/mysql# vi my.cnf
找到
...
bind-address 127.0.0.1
...注释掉
#bind-address 127.0.0.1:wq保存#3测试 OK! bye转载于:https://www.cnblogs.com/shiv/p/4316485.html