Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1440399
  • 博文数量: 244
  • 博客积分: 3353
  • 博客等级: 中校
  • 技术积分: 3270
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-09 17:56
文章分类

全部博文(244)

文章存档

2023年(7)

2022年(7)

2021年(4)

2020年(1)

2019年(2)

2017年(2)

2016年(3)

2015年(11)

2014年(20)

2013年(10)

2012年(176)

分类: LINUX

2023-06-19 14:52:47

1、修改访问Ip
root@Ubuntu-01 14:22:34:/etc/mysql$vi /etc/mysql/mysql.conf.d/mysqld.cnf
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address           = 127.0.0.1
bind-address            = 192.168.x.x  修改为本地IP
mysqlx-bind-address     = 127.0.0.1
#
# * Fine Tuning
#
key_buffer_size         = 16M

2、创建访问用户
mysql> alter user 'admin'@'localhost' identified with mysql_native_password by 'admin';
mysql> flush privileges;

3、修改登录加密方式后输入:
ALTER USER 'admin'@'%' IDENTIFIED WITH mysql_native_password BY 'admin';
flush privileges;
阅读(227) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~