请问怎么退出mysql命令行,我想执行:systemctl restart mysqld,而不是sql语句。
使用exit退出mysql命令行
exit;
有帮助的话,请点采纳该答案~
exit
exit,然后service mysqld restart 试试