You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/11/18 06:21:07 UTC
[GitHub] [shardingsphere] azexcy commented on pull request #22252: Remove pipeline incremental task connecting MySQL use default database
azexcy commented on PR #22252:
URL: https://github.com/apache/shardingsphere/pull/22252#issuecomment-1319598754
when use new user `test` to migration, use mysql client can login success.
```
➜ ~ mysql -u test -P3306 -h 127.0.0.1 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 724
Server version: 8.0.27 MySQL Community Server - GPL
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
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> show grants for test;
+------------------------------------------------------------------+
| Grants for test@% |
+------------------------------------------------------------------+
| GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO `test`@`%` |
| GRANT ALL PRIVILEGES ON `ds_0`.* TO `test`@`%` |
| GRANT ALL PRIVILEGES ON `ds_1`.* TO `test`@`%` |
+------------------------------------------------------------------+
3 rows in set (0.01 sec)
mysql> SHOW MASTER STATUS;
+---------------+-----------+--------------+------------------+-------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+---------------+-----------+--------------+------------------+-------------------+
| binlog.000006 | 381622047 | | | |
+---------------+-----------+--------------+------------------+-------------------+
1 row in set (0.00 sec)
```
but when using migration, the exception thrown, error message follow
```
Access denied for user 'test'@'%' to database 'mysql'
```
so need fix it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org