标签:工具 数据库表 命令 sla down root 修改 flush var
mysqladmin 工具的使用格式:
mysqladmin [option] command [command option] command ......
参数选项:
-c number 自动运行次数统计,必须和 -i 一起使用
-i number 间隔多长时间重复执行
[root@test-huanqiu ~]# mysqladmin -uroot -p -i 2 -c 5 status
[root@test-huanqiu ~]# mysqladmin -uroot -p status
[root@test-huanqiu ~]# mysqladmin -u root -p原密码 password ‘newpassword‘
[root@test-huanqiu ~]# mysqladmin -uroot -p ping
[root@test-huanqiu ~]# mysqladmin -uroot -p version
[root@test-huanqiu ~]# mysqladmin -uroot -p extended-status
[root@test-huanqiu ~]# mysqladmin -uroot -p variables
[root@test-huanqiu ~]# mysqladmin -uroot -p processlist
[root@test-huanqiu ~]# mysqladmin -uroot -p-i 1 processlist //每秒刷新一次
[root@test-huanqiu ~]# mysqladmin -uroot -p create daba-test
[root@test-huanqiu ~]# mysqlshow -uroot -p
[root@test-huanqiu ~]# mysqlshow -uroot -p daba-test
[root@test-huanqiu ~]# mysqlshow -uroot -p daba-test -v
[root@test-huanqiu ~]# mysqlshow -uroot -p daba-test -v -v
[root@test-huanqiu ~]# mysqladmin -uroot -p drop daba-test
[root@test-huanqiu ~]# mysqladmin -uroot -p reload
[root@test-huanqiu ~]# mysqladmin -uroot -p refresh
[root@test-huanqiu ~]# mysqladmin -uroot -p shutdown
[root@test-huanqiu ~]# mysqladmin -u root -ptmppassword flush-hosts
[root@test-huanqiu ~]# mysqladmin -u root -ptmppassword flush-logs
[root@test-huanqiu ~]# mysqladmin -u root -ptmppassword flush-privileges
[root@test-huanqiu ~]# mysqladmin -u root -ptmppassword flush-status
[root@test-huanqiu ~]# mysqladmin -u root -ptmppassword flush-tables
[root@test-huanqiu ~]# mysqladmin -u root -ptmppassword flush-threads
[root@test-huanqiu ~]# mysqladmin -uroot -p processlist
[root@test-huanqiu ~]# mysqladmin -uroot -p kill idnum
19)停止和启动MySQL replication on a slave server
[root@test-huanqiu ~]# mysqladmin -u root -p stop-slave
[root@test-huanqiu ~]# mysqladmin -u root -p start-slave
[root@test-huanqiu ~]# mysqladmin -u root -p process status version
说明:出处脚本之家:https://www.jb51.net/article/48169.htm
标签:工具 数据库表 命令 sla down root 修改 flush var
原文地址:https://www.cnblogs.com/sykblogs/p/9381382.html