| 1 |
######################################### |
| 2 |
# Author: Serge Kozlov [email protected] |
| 3 |
# Date: 07/10/2006 |
| 4 |
# Purpose: Showing user info on master and on slave |
| 5 |
# Requirements: |
| 6 |
######################################### |
| 7 |
|
| 8 |
--echo ==========MASTER========== |
| 9 |
SELECT host, user, authentication_string, select_priv FROM mysql.user WHERE user LIKE 'user_test_rpl%'; |
| 10 |
sync_slave_with_master; |
| 11 |
--echo ==========SLAVE=========== |
| 12 |
USE test_rpl; |
| 13 |
SELECT host, user, authentication_string, select_priv FROM mysql.user WHERE user LIKE 'user_test_rpl%'; |
| 14 |
connection master; |
| 15 |
|