分类: Mysql/postgreSQL
2016-04-13 14:58:19
# mysql -urep1 -p123456 -hgp-s1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.48-log MySQL Community Server (GPL)
Copyright (c) 2000, 2013, 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> select user(),current_user() ;
+--------+----------------+
| user() | current_user() |
+--------+----------------+
| rep1@ | @ |
+--------+----------------+
1 row in set (0.00 sec)
# mysql -urep1 -p123456 -hgp-s2
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 219
Server version: 5.5.48-log MySQL Community Server (GPL)
Copyright (c) 2000, 2013, 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> select user(),current_user() ;
+----------------+----------------+
| user() | current_user() |
+----------------+----------------+
| rep1@gp-master | rep1@10.9.15.% |
+----------------+----------------+
1 row in set (0.00 sec)
# mysql -urep1 -p123456 -hgp-s3
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.5.48-log MySQL Community Server (GPL)
Copyright (c) 2000, 2013, 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> select user(),current_user() ;
+----------------+----------------+
| user() | current_user() |
+----------------+----------------+
| rep1@gp-master | rep1@% |
+----------------+----------------+
1 row in set (0.00 sec)
# mysql -urep1 -p123456 -hgp-s1
mysql> SHOW GRANTS\g
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement