StorageTek Tape Analytics Administration Reference Guide, Version 1.0.2 |
E28379-03 |
Perform the following commands as the MySQL root user:
# mysql -uroot -p -e 'drop database stadb;' Password: |
# mysql -uroot -p -e 'source 2011223.stafullbackup.sql;' Password: |
# mysqlbinlog 2011223.sta-binlog.000021 \ |
Another approach is to concatenate all the logs to a single file and then process the file:
Note – If you do not supply a password on the command line, MySQL prompts you for it before proceeding.
# mysqlbinlog binlog.000001 | mysql -u root -p #<=== DANGER!! |
# STA start |
Copyright © 2012 Oracle and/or its affiliates. All rights reserved. | Legal Notices |