如何从mysql_secure_installation退出?
您可以在图像(链接)上看到我开始安装通过输入mysql
mysql_secure_installation
在 ubuntu 20.04终端上。
但是现在我只想取消(退出)安装。该过程现在在密码设置部分(如上图中)。
我尝试了Ctrl+X,Ctrl+Q,Ctrl+D,ESC,但它们都没有起作用。
我应该关闭终端窗口吗? (我希望该过程不会保存任何东西)
我正在等待您的帮助,谢谢。
Screenshot of the installation process
As you can see at the image (link above) I started an installation of mysql by typing
mysql_secure_installation
on the Ubuntu 20.04 terminal.
But now I just want to cancel (exit) the installation. The process is now in the password setting section (like in the image above).
I tried ctrl+x, ctrl+q, ctrl+d, ESC but none of them worked.
Should I just close the terminal window? (I want that nothing will be saved of the process)
I'm waiting for your help, thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
来自另一个终端的解决方案
:
每个QT-X的注释,如果您的系统支持PGREP,则可以使用:
然后可以再次运行“ mysql_secure_installation”。但是您可能想阅读以下以下的“为什么我为什么知道这一部分”的“为什么” .....,这可以解释为什么您必须首先(对于某些人)首先退出'mysql_secure_installation'。
为什么出于某种原因知道这一点
,最近我必须在运行此脚本之前先设置我的根密码:
或者我最终进入了无法设置密码的无尽循环,而消息是:
The Solution
From another terminal:
Per qt-x's comment, if your system supports pgrep you can use:
You can then run 'mysql_secure_installation' again. But you may want to read the "Why I Know This" section below first....., which may explain why you have to exit 'mysql_secure_installation' in the first place [for some people].
Why I Know This
For some reason, recently I've had to set my root password first before running this script:
Or I end up in an endless loop where I can't set the password, and the message is:
CTRL+C将有效,但仅在以下位置:
ctrl+c will work, but only at the following position:
更简单命令。
也许杀死mysql_secure_installation
pgrep -af mysql_secure_installation
以获取当前状态的Maybe a simpler command to kill mysql_secure_installation
pgrep -af mysql_secure_installation
to get the current state.非常简单,只需键入ctrl+c
它对我有用,对你不认识
very easy, just type ctrl+c
it worked for me, don't know about you