欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

mysql服務(wù)器初始設(shè)置密碼

MySQL是一種常用的關(guān)系型數(shù)據(jù)庫(kù)管理系統(tǒng),用于存儲(chǔ)和管理數(shù)據(jù),被廣泛應(yīng)用于各種Web應(yīng)用程序、企業(yè)級(jí)解決方案和云計(jì)算平臺(tái)。在使用MySQL之前,我們需要進(jìn)行初始設(shè)置,并設(shè)置管理員密碼。

$ sudo systemctl start mysql #啟動(dòng)MySQL服務(wù)
$ sudo systemctl enable mysql #設(shè)置開(kāi)機(jī)自啟動(dòng)
$ sudo mysql_secure_installation #進(jìn)行MySQL的安全設(shè)置
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: y
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                  file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 2
Please set the password for root here.
New password:
Re-enter new password:
Estimated strength of the password: 100 
Do you wish to continue with the password provided?(Press y|Y for Yes, any otherkey for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures the person executing the
command is at the same location as the mysqld process.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
- Dropping test database...
Success.
- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!

在進(jìn)行MySQL安全設(shè)置的過(guò)程中,我們需要設(shè)置管理員密碼、刪除默認(rèn)的匿名用戶和測(cè)試數(shù)據(jù)庫(kù),并且禁止遠(yuǎn)程連接MySQL數(shù)據(jù)庫(kù)管理系統(tǒng)。通過(guò)這些步驟,我們可以保證MySQL在使用過(guò)程中達(dá)到一定的安全性。