当前位置:网站首页>mysql主从同步在master机上为slave机添加一同步帐号问题。
mysql主从同步在master机上为slave机添加一同步帐号问题。
2022-08-07 14:26:00 【CSDN问答】
mysql 8.0.28 设置主从同步。需要建立
在master机上为slave机添加一同步帐号
在MYSQL中执行:
grant replication slave on . to 'repl'@'192.1681.220' identified by '123456';
提示错误:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'slave on . to exmacc@192.168.229.131 identified by "exmacccc"' at line 1
正常改密码无问题,例如:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'ctsi@Passw0rd';
网上的很多办法都不行,什么保留字需要反向括号之类的,也不是什么项目,就是学习心切,求指点。
边栏推荐
- 扬州大学回应「清华博士入职5年,月薪才372元」
- 数据治理(二):数据治理功能方面
- 学习笔记:时间复杂度和空间复杂度
- 最新!Kaggle所有竞赛开源方案和Top思路汇总,共477场竞赛!
- 使用OpenCV测量图像中物体的大小
- [YOLOv7_0.1] Network structure and source code analysis
- Event registration: How to efficiently respond to the current real-time scene needs?
- MySQL——简述索引与事务
- Image effect display (below)
- Research on the relationship between Yun and Enmo on "HTAP" and "Intelligent Warehouse Lake"
猜你喜欢
随机推荐
2022年广东省安全员A证第三批(主要负责人)考试模拟100题及在线模拟考试
LOGO 8.3 Web Server function
剑指Offer | 调整数组顺序使奇数位于偶数前面
多线程-Lambda表示
redis总结_原理
HJ4 string delimited
开发者成长激励计划-开发笔记:最简步骤移植LVGL
2022/8/5 Topological sort+dp
【MySql进阶】索引详解(二):Mysql InnoDB索引原理、B+树、聚簇索引、二级索引、联合索引
红队web打点信息收集
2022/8/6
tensorRT(一)| tensorRT如何进行推理加速?
OpenGL 光源分类 行为理论及实现
Research on the relationship between Yun and Enmo on "HTAP" and "Intelligent Warehouse Lake"
go优先级队列实现
2022年T电梯修理复习题及在线模拟考试
CSO face to face | Dialogue with mini world, talk about the safety construction of the game industry
网页设计(二)
多数据源配置
网络基础(三)02-网络的基础概念——DNS服务器之hosts文件配置 & 网站访问流程之三次握手 & BS 架构-浏览器访问、CS 架构-安装软件客户端 & 静态网站和动态网站-数据是否动态









