SELECT NOW();
SELECT CURDATE();
SELECT YEAR(NOW())
SELECT CONCAT("mysqldump ","-uroot ","-p123 ",table_schema," ",table_name,">/tmp/",table_schema,"_",table_name,".sql")
FROM information_schema.tables
WHERE table_schema=‘world‘
INTO OUTFILE ‘/tmp/world_bak.sh‘
SHOW GLOBAL STATUS LIKE ‘%innodb%‘
显示连接诶状态
SHOW GLOBAL VARIABLES LIKE ‘%log%‘;
show processlist;
显示连接数