如何在 windows 中将所有 mysql 8.0 权限授予 debezium
How to grant all mysql 8.0 privileges to debezium in windows
我尝试了下面的命令
mysql> GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE,
REPLICATION CLIENT ON *.* TO 'debezium' IDENTIFIED BY 'dbz';
报错如下
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 'IDENTIFIED BY 'dbz'' at line 1
要授予所有权限,请使用 GRANT ALL
GRANT ALL ON *.* TO 'debezium'@'%' IDENTIFIED BY 'dbz';
您缺少我添加的查询中的主机%
您可以从任何地方登录,根据您的需要进行更改。
我尝试了下面的命令
mysql> GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE,
REPLICATION CLIENT ON *.* TO 'debezium' IDENTIFIED BY 'dbz';
报错如下
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 'IDENTIFIED BY 'dbz'' at line 1
要授予所有权限,请使用 GRANT ALL
GRANT ALL ON *.* TO 'debezium'@'%' IDENTIFIED BY 'dbz';
您缺少我添加的查询中的主机%
您可以从任何地方登录,根据您的需要进行更改。