MYSQL statement usage record

1. Query the non-empty table
USE information_schema in the database ;
SELECT table_schema,table_name,table_rows
FROM TABLES WHERE TABLE_SCHEMA ='schemaname'  

AND table_rows != 0 ORDER BY table_rows DESC;

2.  Give the remote login machine login name

GRANT ALL PRIVILEGES ON *.* TO root@'remotehost' IDENTIFIED BY'password' WITH GRANT OPTION;

FLUSH PRIVILEGES;
commit;

Guess you like

Origin blog.csdn.net/muzhiqian/article/details/52669934