这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
zh:notes:centos_mysql_pwd [2023/03/23 07:42] pzczxs [Stop mysql Service] |
zh:notes:centos_mysql_pwd [2023/03/23 07:42] (当前版本) pzczxs [Start mysql Service] |
||
---|---|---|---|
行 12: | 行 12: | ||
===== Login as root without Password ===== | ===== Login as root without Password ===== | ||
<code bash> | <code bash> | ||
+ | > systemctl start mysqld.service | ||
> mysql -uroot | > mysql -uroot | ||
</code> | </code> | ||
行 25: | 行 26: | ||
===== Stop mysql Service and Unset the Environment Option ===== | ===== Stop mysql Service and Unset the Environment Option ===== | ||
<code bash> | <code bash> | ||
- | > systemctl stop mysqld | + | > systemctl stop mysqld.service |
> systemctl unset-environment MYSQLD_OPTS | > systemctl unset-environment MYSQLD_OPTS | ||
</code> | </code> | ||
行 31: | 行 32: | ||
===== Start mysql Service ===== | ===== Start mysql Service ===== | ||
<code bash> | <code bash> | ||
- | > systemctl start mysqld | + | > systemctl start mysqld.service |
</code> | </code> | ||