码迷,mamicode.com
首页 > 数据库 > 详细

mysql开启远程访问

时间:2020-03-04 09:38:09      阅读:78      评论:0      收藏:0      [点我收藏+]

标签:sel   base   0 rows   nbsp   mysql   local   sql   row   grant   

 

mysql> use mysql;
Database changed
mysql> grant all privileges  on *.* to root@‘%‘ identified by "password";
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> select host,user,password from user;
+--------------+------+-------------------------------------------+
| host         | user | password                                  |
+--------------+------+-------------------------------------------+
| localhost    | root | *A731AEBFB621E354CD41BAF207D884A609E81F5E |
| 192.168.1.1 | root | *A731AEBFB621E354CD41BAF207D884A609E81F5E |
| %            | root | *A731AEBFB621E354CD41BAF207D884A609E81F5E |
+--------------+------+-------------------------------------------+
3 rows in set (0.00 sec)

mysql开启远程访问

标签:sel   base   0 rows   nbsp   mysql   local   sql   row   grant   

原文地址:https://www.cnblogs.com/xiadongqing/p/12407563.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!