From ad30302ebc6d3efd01d4f1769e6da443db9e246b Mon Sep 17 00:00:00 2001 From: mukyuuhate Date: Tue, 19 Jul 2022 09:58:35 +0800 Subject: [PATCH] Submit app result Signed-off-by: mukyuuhate --- mukyuuhate/third-party-app.txt | 191 +++++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 mukyuuhate/third-party-app.txt diff --git a/mukyuuhate/third-party-app.txt b/mukyuuhate/third-party-app.txt new file mode 100644 index 0000000..cd9f17c --- /dev/null +++ b/mukyuuhate/third-party-app.txt @@ -0,0 +1,191 @@ +[root@iZbp13xtmzxoxn6a9o27y1Z mukyuuhate]# service mysqld start +Redirecting to /bin/systemctl start mysqld.service +[root@iZbp13xtmzxoxn6a9o27y1Z mukyuuhate]# mysql_secure_installation -D + +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: 25 +Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : yes + ... Failed! Error: Your password does not satisfy the current policy requirements + +New password: + +Re-enter new password: +Sorry, passwords do not match. + +New password: + +Re-enter new password: + +Estimated strength of the password: 50 +Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y + ... Failed! Error: Your password does not satisfy the current policy requirements + +New password: + +Re-enter new password: + +Estimated strength of the password: 50 +Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : t^Hy + +New password: + +Re-enter new password: + +Estimated strength of the password: 50 +Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : yes + ... Failed! Error: Your password does not satisfy the current policy requirements + +New password: + +Re-enter new password: +Sorry, passwords do not match. + +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 other key for No) : yes +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 that someone cannot guess at +the root password from the network. + +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! +[root@iZbp13xtmzxoxn6a9o27y1Z mukyuuhate]# mysql -pPassW0rd! +mysql: [Warning] Using a password on the command line interface can be insecure. +ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) +[root@iZbp13xtmzxoxn6a9o27y1Z mukyuuhate]# mysql -pYhy.tlk9 +mysql: [Warning] Using a password on the command line interface can be insecure. +Welcome to the MySQL monitor. Commands end with ; or \g. +Your MySQL connection id is 11 +Server version: 8.0.26 Source distribution + +Copyright (c) 2000, 2021, Oracle and/or its affiliates. + +Oracle is a registered trademark of Oracle Corporation and/or its +affiliates. Other names may be trademarks of their respective +owners. + +Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. + +mysql> create database test; +Query OK, 1 row affected (0.01 sec) + +mysql> use test; +Database changed +mysql> create table hola(bonj text); +Query OK, 0 rows affected (0.05 sec) + +mysql> insert into test.hola(bonj) values("Mundo"); +Query OK, 1 row affected (0.02 sec) + +mysql> insert into test.hola(bonj) values("Lundo"); +Query OK, 1 row affected (0.00 sec) + +mysql> insert into test.hola(bonj) values("测试"); +Query OK, 1 row affected (0.01 sec) + +mysql> select * from test.hola; ++--------+ +| bonj | ++--------+ +| Mundo | +| Lundo | +| 测试 | ++--------+ +3 rows in set (0.00 sec) + +mysql> update test.hola set bonj='Xundo' where bonj='Mundo'; +Query OK, 1 row affected (0.01 sec) +Rows matched: 1 Changed: 1 Warnings: 0 + +mysql> select * from test.hola; ++--------+ +| bonj | ++--------+ +| Xundo | +| Lundo | +| 测试 | ++--------+ +3 rows in set (0.00 sec) + +mysql> select * from test.hola; ++--------+ +| bonj | ++--------+ +| Xundo | +| Lundo | +| 测试 | ++--------+ +3 rows in set (0.00 sec) + +mysql> delete from test.hola where bonj='Xundo'; +Query OK, 1 row affected (0.01 sec) + +mysql> select * from test.hola; ++--------+ +| bonj | ++--------+ +| Lundo | +| 测试 | ++--------+ +2 rows in set (0.00 sec) + +mysql> exit +Bye -- Gitee