mysqladmin command format


#Check if the mysql service is normal, if it prompts mysqld is alive mysqladmin -uroot -pcentos ping #Close the
mysql service, but the mysqladmin command cannot start
mysqladmin –uroot –pcentos shutdown #Create
database testdb
mysqladmin -uroot –pcentos create testdb #Delete
database testdb
mysqladmin -uroot -pcentos drop testdb #Modify
root password
mysqladmin --uroot --pcentos password'magedu' #Log
rolling, generate new file /var/lib/mysql/mariadb-bin.00000N
mysqladmin -uroot -pcentos flush-logs

Guess you like

Origin blog.csdn.net/weixin_50904580/article/details/111567021