[root@izwz920kp0myp15p982vp4z /]# vim /etc/my.cnf
[root@izwz920kp0myp15p982vp4z /]# systemctl restart mysqld
[root@izwz920kp0myp15p982vp4z /]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.30-log MySQL Community Server (GPL)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE USER canal IDENTIFIED BY 'canal';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%';
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql>exit
Bye
[root@izwz920kp0myp15p982vp4z /]#
[root@izwz920kp0myp15p982vp4z /]# cd /usr/local/software/
[root@izwz920kp0myp15p982vp4z software]# mkdir canal
[root@izwz920kp0myp15p982vp4z software]# cd canal/
[root@izwz920kp0myp15p982vp4z canal]# wget https://github.com/alibaba/canal/releases/download/canal-1.1.4/canal.deployer-1.1.4.tar.gz
上一篇
005_深入搜索
005_深入搜索
2020-12-22
下一篇
014_Elastic解决方案
014_Elastic解决方案
2020-12-22