赞
踩
sudo apt install mysql-server
sudo systemctl status mysql
如下所示看见Active: active (running)说明mysql状态正常
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabl>
Active: active (running) since Sun 2024-01-21 14:51:23 UTC; 1min 53s ago
Process: 2929 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited,>
Main PID: 2937 (mysqld)
Status: "Server is operational"
Tasks: 37 (limit: 4557)
Memory: 365.6M
CPU: 1.428s
CGroup: /system.slice/mysql.service
└─2937 /usr/sbin/mysqld
Jan 21 14:51:19 qbc systemd[1]: Starting MySQL Community Server...
Jan 21 14:51:23 qbc systemd[1]: Started MySQL Community Server.
lines 1-14/14 (END)
sudo mysql_secure_installation
问题1:
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?Press y|Y for Yes, any other key for No:
翻译:
当您在安装或配置MySQL服务器时,系统可能会提示您是否要启用VALIDATE PASSWORD
组件。这个组件用于增强密码的安全性,它可以帮助您确保用户设置的密码足够强大。
以下是关于如何回答这个问题的建议:
如果您想启用VALIDATE PASSWORD
组件以增强密码的安全性,您可以按y
或Y
键。这会强制用户设置符合一定安全要求的密码,从而增强系统的安全性。
如果您不想启用这个组件,或者不确定是否要启用它,您可以按除y
或Y
之外的任何键。
总的来说,启用VALIDATE PASSWORD
组件是一个好主意,因为它可以帮助您避免使用弱密码,从而增强系统的安全性。但是,最终的决定取决于您的具体需求和安全策略。
问题2:
There are three levels of password validation policy:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary filePlease enter 0 = LOW, 1 = MEDIUM and 2 = STRONG:
翻译:
为了配置MySQL的密码验证策略,您需要选择一个级别。根据提供的选项,有三个级别:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。