In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
When trove uses innobackupex, the line backup is carried out for the whole database. When you create an instance from the backup set, you can restore the data in the backup set. However, because it is a full database backup, root,os_admin (the account used by trove to manage the database, and os_admin has root permission) will be restored to the password of the old database. Without password reset, trove will not be able to manage the database. Therefore, trove resets the password of the restored database.
Trove/guestagent/strategies/restore/mysql_impl.py 236 lines
Def post_restore (self): self._run_prepare () operating_system.chown (self.restore_location, 'mysql', None, force=True, as_root=True) self._delete_old_binlogs () self.reset_root_password () self.app.start_mysql ()
After restoring the data from the backup set, self._run_prepare () applies the log to the database, performing operations such as committing the log, and self_delete_old_binlogs () deletes the old log file because the log has been committed and does not need the old log file. Self.reset_root_password () resets the root to an empty password.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.