Invader Zim
Verified User
- Joined
- Sep 4, 2004
- Messages
- 188
So we discovered we had some users with the same username across our servers. Awhile ago we checked the box to check for usernames in the multiserver setup but there already were a number of users that have the same name.
Using change_username.sh in the scripts dir to make changes. It's nice to see the databases are also renamed. However, when the times comes to back them up mysqldump would throw an error:
which was quite weird because doing
did list 'tablename'. So drop and recreate the database and then manually read in the dump file from the previous backup. Problem solved. However, we have another one which puzzles me on how to fix it. We changed another user, say user0 to user1. Now mysqldump throws:
There is no mention of user0 anywhere in the databases, just user1. Any thoughts, ideas, solutions?
Using change_username.sh in the scripts dir to make changes. It's nice to see the databases are also renamed. However, when the times comes to back them up mysqldump would throw an error:
Code:
Got error: 1146: Table 'username_database.tablename' doesn't exist when using LOCK TABLES
Code:
connect username_database;
show tables;
did list 'tablename'. So drop and recreate the database and then manually read in the dump file from the previous backup. Problem solved. However, we have another one which puzzles me on how to fix it. We changed another user, say user0 to user1. Now mysqldump throws:
Code:
Got error: 1449: The user specified as a definer ('user0'@'localhost') does not exist when using LOCK TABLES
There is no mention of user0 anywhere in the databases, just user1. Any thoughts, ideas, solutions?