mysql -u root -pvmware mysql>use mysql; mysql>update user set host = '%' where user = 'root'; mysql>flush privileges; mysql>select host, user from user;…
ubuntu server下安装了MySQL 5.5数据库,然后在windows下通过Navicat for MySQL连接时,出现 Can't connect to mysql server on xxx.xxx.xxx.xxx(10038) 的问题. 解决方案如下: 1.授权 mysql>grant all privileges on *.* to 'root'@'%' identified by 'youpassword' with grant option; mysql>flu…
#登陆mysql $ mysql -uroot -p mysql> use mysql; mysql> update user set host = '%' where user = 'root'; mysql> select host, user from user; +-----------+------------------+ | host | user | +-----------+------------------+ | % | root | | localhost | d…
1.进入MySQL,创建一个新用户root,密码为root: 格式:grant 权限 on 数据库名.表名 to 用户@登录主机 identified by "用户密码"; grant select,update,insert,delete on . to root@192.168.1.12 identified by "root"; 原先数据表结构 mysql> use mysql; Database changed mysql> select hos…
1.登陆mysql数据库 mysql -u root -p 查看user表 mysql> use mysql;Database changedmysql> select host,user,password from user;+--------------+------+-------------------------------------------+| host | user | password |+…
直接使用Navicat通过IP连接会报各种错误,例如:Error 1130: Host '192.168.1.80' is not allowed to connect to this MySQL server. 经过个人验证,得到解决方法,如下: 授权法: 1.首先使用localhost登录到想要进行远程连接的数据库 2.打开命令提示窗口,输入如下命令: mysql> grant all privileges on *.* to 'root'@'%' identified by '1234…
直接使用Navicat通过IP连接会报各种错误,例如:Error 1130: Host '192.168.1.80' is not allowed to connect to this MySQL server. 经过个人验证,得到解决方法,如下: 授权法: 1.首先使用localhost登录到想要进行远程连接的数据库 2.打开命令提示窗口,输入如下命令: mysql> grant all privileges on *.* to 'root'@'%' identified by '123456…
默认mysql是禁止远程用户连接的.连接提示: 1045,“Access denied for user 'root'@'192.168.100.1' (using password:YES)" 开启数据库远程连接即可: 1.先在本机使用root用户登录mysql,然后进行授权. mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION; 在mysql控制台执行…
添加mysql用户 http://my.oschina.net/u/1179414/blog/202377 允许远程ip连接 GRANT select,insert,update,delete ON *.* TO root@"172.16.16.152" IDENTIFIED BY "youpassword"; 查看所有用户的所有权限 SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS que…