mysqladmin -u root -p -i 1 processlist
-u username
-p you will be promted for a password
-i 1 interval one second
mysqladmin -u root -p -i 1 processlist
-u username
-p you will be promted for a password
-i 1 interval one second
Today when I installed mysql5.7 on my new freebsd server, I got below problem:
Error adding new user - pw: user 'anne' disappeared during update
This issue is not common. And it’s caused by atabases are out of sync.
To fix this issue, just Run
/usr/sbin/pwd_mkdb -p /etc/master.passwd
mysql>show variables like '%event%'; +---------------------------------------------------+-------+ | Variable_name | Value | +---------------------------------------------------+-------+ | event_scheduler | OFF | | performance_schema_events_waits_history_long_size | 10000 | | performance_schema_events_waits_history_size | 10 | +---------------------------------------------------+-------+ mysql>SET GLOBAL event_scheduler = 1; mysql>use database; mysql>CREATE EVENT flush_query_cache ON SCHEDULE EVERY 1 HOUR DO FLUSH QUERY CACHE;