Monitering load database in mysql
Fri, 2013-11-15 07:58 —
srihari
HI, Is there any scripts to moniter load database in mysql,I am trying to moniter with –verbose option in mysql client. but the output giving me all the insert commands. Please help me on this. Thanks Srihari
tags:


Comments
what exactly to be monitored ?
Hi Srihari,
What exactly you want to monitor in MySQL ?
Monitering load database in mysql
HI,
I want to monitor database refresh,when loading database into mysql I want see the below output,so that I can see if any error occurs.
table1 completed.. table2 completed.. table3 completed.. table4 completed.. . . . . tablen completed.. database loaded successfully completed..
Thanks Srihari
Hi,
Hi,
The output you just provided could be gotten by having your database’s tables backed up individually and then restore them the same way.
For this purpose, the backup script should be something like:
Where the tables.txt file contains all tables names separated by new lines.
And the restore script should be something like:
OR if you have all tables backed up in only one file, you can monitor the whole process progress by using the "pv" command in the restore as follows:
BTW, at the end of each method, you might need to run the
mysqlcheckcommand against the restored database to double check that everything is going fine after the restore.I hope that helped.
Abdel-Mawla
HI
Thank you very much.