简体   繁体   中英

Ubuntu - restarting mysql from command prompt within mysql

I can restart mysql with

sudo restart mysql

but can I do this from the mysql command line prompt?

mysql >

You can find all commands here : http://dev.mysql.com/doc/refman/5.6/en/mysql-commands.html

By the way do you need to restart the client or the server ? cause they're are two different service

Also you can use : mysql> system sudo restart mysql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM