mysql设置远程账号
来源:互联网 发布:淘宝网靠枕 编辑:程序博客网 时间:2024/04/30 17:12
1、设置数据库root密码
通过登录mysql系统,
# mysql -uroot -p
Enter password: 【输入原来的密码】
mysql>use mysql;
mysql> update user set password=password('rootpassword') where user='root';
# mysql -uroot -p
Enter password: 【输入原来的密码】
mysql>use mysql;
mysql> update user set password=password('rootpassword') where user='root';
mysql> flush privileges;
mysql> exit;
mysql> exit;
2、设置数据库远程连接账号
通过登录mysql系统,
# mysql -uroot -p
Enter password: 【输入原来的密码】
mysql>grant all privileges on *.* to 'cabinremotedb'@'%' identified by "iEL8HVXZuKUCbRZOwveF" with grant option;
Enter password: 【输入原来的密码】
mysql>grant all privileges on *.* to 'cabinremotedb'@'%' identified by "iEL8HVXZuKUCbRZOwveF" with grant option;
(
grant all privileges on *.* to 创建的用户名 @"%" identified by "密码";
)mysql>
flush privileges;
注:例子中的cabinremotedb是用户名,iEL8HVXZuKUCbRZOwveF是密码,根据实际使用替换。
0 0
- mysql设置远程账号
- mysql设置了远程账号还是无法访问
- 设置MySQL用户账号
- 设置MySQL用户账号
- mysql设置管理员账号
- 修改mysql远程账号密码
- MySQL用户账号管理(添加、删除、限制、设置密码、远程访问)
- MySQL数据库设置远程异地可访问账号&&异地登录方法
- mysql5.6 设置远程访问账号
- mysql数据库新建账号开启远程权限
- 创建了远程账号仍然无法远程mysql的问题
- 连接远程服务器上的mysql会出现的问题和解决方式(账号设置等操作)
- 设置mysql远程连接
- mysql远程权限设置
- MySQL远程访问设置
- MySQL 设置远程访问
- mysql设置远程访问
- mysql 设置远程访问
- HTML——初识html,元素 属性 段落 文本格式化 链接 头部入门
- 并查集专题训练解题报告
- 剑指Offer系列-面试题46:求1+2+3+···+n
- JQuery移动 淡入淡出动画
- Web Hacking 101 中文版 六、HTTP 参数污染
- mysql设置远程账号
- L2-009. 抢红包
- python读写文本文件-解决乱码问题
- Jquery中table数据的值拷贝及拆分
- Pixhawk开发手册
- 数据库索引分类
- phpstudy升级mysql数据库
- 图论—青蛙问题
- maven工程实战(1)