树莓派4b_ubuntu20.04安装MySQL

树莓派4b_ubuntu20.04安装MySQL_第1张图片

树莓派4b_ubuntu20.04安装MySQL_第2张图片

树莓派4b_ubuntu20.04安装MySQL_第3张图片

树莓派4b_ubuntu20.04安装MySQL_第4张图片

树莓派4b_ubuntu20.04安装MySQL_第5张图片

树莓派4b_ubuntu20.04安装MySQL_第6张图片

树莓派4b_ubuntu20.04安装MySQL_第7张图片

树莓派4b_ubuntu20.04安装MySQL_第8张图片

 安装全过程terminal

root@ubuntu:/home/ubuntu# sudo apt install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libhtml-template-perl libmecab2 mecab-ipadic
  mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server-8.0 mysql-server-core-8.0
Suggested packages:
  libipc-sharedcache-perl mailx tinyca
The following NEW packages will be installed:
  libcgi-fast-perl libcgi-pm-perl libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libhtml-template-perl libmecab2 mecab-ipadic
  mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server mysql-server-8.0 mysql-server-core-8.0
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.9 MB of archives.
After this operation, 307 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 mysql-common all 5.8+1.0.5ubuntu2 [7496 B]
Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 mysql-client-core-8.0 arm64 8.0.28-0ubuntu0.20.04.3 [4868 kB]
Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 mysql-client-8.0 arm64 8.0.28-0ubuntu0.20.04.3 [22.0 kB]
Get:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libevent-core-2.1-7 arm64 2.1.11-stable-1 [82.2 kB]
Get:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libevent-pthreads-2.1-7 arm64 2.1.11-stable-1 [7292 B]
Get:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libmecab2 arm64 0.996-10build1 [203 kB]
Get:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 mysql-server-core-8.0 arm64 8.0.28-0ubuntu0.20.04.3 [20.5 MB]
Get:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 mysql-server-8.0 arm64 8.0.28-0ubuntu0.20.04.3 [1178 kB]
Get:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libcgi-pm-perl all 4.46-1 [186 kB]
Get:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libfcgi-perl arm64 0.79-1 [32.7 kB]
Get:11 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libcgi-fast-perl all 1:2.15-1 [10.5 kB]
Get:12 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libhtml-template-perl all 2.97-1 [59.0 kB]
Get:13 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 mecab-utils arm64 0.996-10build1 [4836 B]
Get:14 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 mecab-ipadic all 2.7.0-20070801+main-2.1 [6714 kB]
Get:15 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 mecab-ipadic-utf8 all 2.7.0-20070801+main-2.1 [4380 B]
Get:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 mysql-server all 8.0.28-0ubuntu0.20.04.3 [9544 B]
Fetched 33.9 MB in 53s (635 kB/s)
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 170214 files and directories currently installed.)
Preparing to unpack .../0-mysql-common_5.8+1.0.5ubuntu2_all.deb ...
Unpacking mysql-common (5.8+1.0.5ubuntu2) ...
Selecting previously unselected package mysql-client-core-8.0.
Preparing to unpack .../1-mysql-client-core-8.0_8.0.28-0ubuntu0.20.04.3_arm64.deb ...
Unpacking mysql-client-core-8.0 (8.0.28-0ubuntu0.20.04.3) ...
Selecting previously unselected package mysql-client-8.0.
Preparing to unpack .../2-mysql-client-8.0_8.0.28-0ubuntu0.20.04.3_arm64.deb ...
Unpacking mysql-client-8.0 (8.0.28-0ubuntu0.20.04.3) ...
Selecting previously unselected package libevent-core-2.1-7:arm64.
Preparing to unpack .../3-libevent-core-2.1-7_2.1.11-stable-1_arm64.deb ...
Unpacking libevent-core-2.1-7:arm64 (2.1.11-stable-1) ...
Selecting previously unselected package libevent-pthreads-2.1-7:arm64.
Preparing to unpack .../4-libevent-pthreads-2.1-7_2.1.11-stable-1_arm64.deb ...
Unpacking libevent-pthreads-2.1-7:arm64 (2.1.11-stable-1) ...
Selecting previously unselected package libmecab2:arm64.
Preparing to unpack .../5-libmecab2_0.996-10build1_arm64.deb ...
Unpacking libmecab2:arm64 (0.996-10build1) ...
Selecting previously unselected package mysql-server-core-8.0.
Preparing to unpack .../6-mysql-server-core-8.0_8.0.28-0ubuntu0.20.04.3_arm64.deb ...
Unpacking mysql-server-core-8.0 (8.0.28-0ubuntu0.20.04.3) ...
Setting up mysql-common (5.8+1.0.5ubuntu2) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-8.0.
(Reading database ... 170436 files and directories currently installed.)
Preparing to unpack .../0-mysql-server-8.0_8.0.28-0ubuntu0.20.04.3_arm64.deb ...
Unpacking mysql-server-8.0 (8.0.28-0ubuntu0.20.04.3) ...
Selecting previously unselected package libcgi-pm-perl.
Preparing to unpack .../1-libcgi-pm-perl_4.46-1_all.deb ...
Unpacking libcgi-pm-perl (4.46-1) ...
Selecting previously unselected package libfcgi-perl.
Preparing to unpack .../2-libfcgi-perl_0.79-1_arm64.deb ...
Unpacking libfcgi-perl (0.79-1) ...
Selecting previously unselected package libcgi-fast-perl.
Preparing to unpack .../3-libcgi-fast-perl_1%3a2.15-1_all.deb ...
Unpacking libcgi-fast-perl (1:2.15-1) ...
Selecting previously unselected package libhtml-template-perl.
Preparing to unpack .../4-libhtml-template-perl_2.97-1_all.deb ...
Unpacking libhtml-template-perl (2.97-1) ...
Selecting previously unselected package mecab-utils.
Preparing to unpack .../5-mecab-utils_0.996-10build1_arm64.deb ...
Unpacking mecab-utils (0.996-10build1) ...
Selecting previously unselected package mecab-ipadic.
Preparing to unpack .../6-mecab-ipadic_2.7.0-20070801+main-2.1_all.deb ...
Unpacking mecab-ipadic (2.7.0-20070801+main-2.1) ...
Selecting previously unselected package mecab-ipadic-utf8.
Preparing to unpack .../7-mecab-ipadic-utf8_2.7.0-20070801+main-2.1_all.deb ...
Unpacking mecab-ipadic-utf8 (2.7.0-20070801+main-2.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../8-mysql-server_8.0.28-0ubuntu0.20.04.3_all.deb ...
Unpacking mysql-server (8.0.28-0ubuntu0.20.04.3) ...
Setting up libmecab2:arm64 (0.996-10build1) ...
Setting up mysql-client-core-8.0 (8.0.28-0ubuntu0.20.04.3) ...
Setting up libcgi-pm-perl (4.46-1) ...
Setting up libhtml-template-perl (2.97-1) ...
Setting up mecab-utils (0.996-10build1) ...
Setting up libevent-core-2.1-7:arm64 (2.1.11-stable-1) ...
Setting up mysql-client-8.0 (8.0.28-0ubuntu0.20.04.3) ...
Setting up libfcgi-perl (0.79-1) ...
Setting up libevent-pthreads-2.1-7:arm64 (2.1.11-stable-1) ...
Setting up mecab-ipadic (2.7.0-20070801+main-2.1) ...
Compiling IPA dictionary for Mecab.  This takes long time...
reading /usr/share/mecab/dic/ipadic/unk.def ... 40
emitting double-array: 100% |###########################################|
/usr/share/mecab/dic/ipadic/model.def is not found. skipped.
reading /usr/share/mecab/dic/ipadic/Noun.adverbal.csv ... 795
reading /usr/share/mecab/dic/ipadic/Filler.csv ... 19
reading /usr/share/mecab/dic/ipadic/Noun.others.csv ... 151
reading /usr/share/mecab/dic/ipadic/Noun.adjv.csv ... 3328
reading /usr/share/mecab/dic/ipadic/Conjunction.csv ... 171
reading /usr/share/mecab/dic/ipadic/Noun.name.csv ... 34202
reading /usr/share/mecab/dic/ipadic/Adverb.csv ... 3032
reading /usr/share/mecab/dic/ipadic/Adj.csv ... 27210
reading /usr/share/mecab/dic/ipadic/Noun.verbal.csv ... 12146
reading /usr/share/mecab/dic/ipadic/Auxil.csv ... 199
reading /usr/share/mecab/dic/ipadic/Noun.csv ... 60477
reading /usr/share/mecab/dic/ipadic/Noun.number.csv ... 42
reading /usr/share/mecab/dic/ipadic/Postp-col.csv ... 91
reading /usr/share/mecab/dic/ipadic/Interjection.csv ... 252
reading /usr/share/mecab/dic/ipadic/Noun.demonst.csv ... 120
reading /usr/share/mecab/dic/ipadic/Prefix.csv ... 221
reading /usr/share/mecab/dic/ipadic/Noun.place.csv ... 72999
reading /usr/share/mecab/dic/ipadic/Symbol.csv ... 208
reading /usr/share/mecab/dic/ipadic/Suffix.csv ... 1393
reading /usr/share/mecab/dic/ipadic/Verb.csv ... 130750
reading /usr/share/mecab/dic/ipadic/Noun.nai.csv ... 42
reading /usr/share/mecab/dic/ipadic/Adnominal.csv ... 135
reading /usr/share/mecab/dic/ipadic/Noun.proper.csv ... 27328
reading /usr/share/mecab/dic/ipadic/Others.csv ... 2
reading /usr/share/mecab/dic/ipadic/Postp.csv ... 146
reading /usr/share/mecab/dic/ipadic/Noun.org.csv ... 16668
emitting double-array: 100% |###########################################|
reading /usr/share/mecab/dic/ipadic/matrix.def ... 1316x1316
emitting matrix      : 100% |###########################################|

done!
update-alternatives: using /var/lib/mecab/dic/ipadic to provide /var/lib/mecab/dic/debian (mecab-dictionary) in auto mode
Setting up libcgi-fast-perl (1:2.15-1) ...
Setting up mysql-server-core-8.0 (8.0.28-0ubuntu0.20.04.3) ...
Setting up mecab-ipadic-utf8 (2.7.0-20070801+main-2.1) ...
Compiling IPA dictionary for Mecab.  This takes long time...
reading /usr/share/mecab/dic/ipadic/unk.def ... 40
emitting double-array: 100% |###########################################|
/usr/share/mecab/dic/ipadic/model.def is not found. skipped.
reading /usr/share/mecab/dic/ipadic/Noun.adverbal.csv ... 795
reading /usr/share/mecab/dic/ipadic/Filler.csv ... 19
reading /usr/share/mecab/dic/ipadic/Noun.others.csv ... 151
reading /usr/share/mecab/dic/ipadic/Noun.adjv.csv ... 3328
reading /usr/share/mecab/dic/ipadic/Conjunction.csv ... 171
reading /usr/share/mecab/dic/ipadic/Noun.name.csv ... 34202
reading /usr/share/mecab/dic/ipadic/Adverb.csv ... 3032
reading /usr/share/mecab/dic/ipadic/Adj.csv ... 27210
reading /usr/share/mecab/dic/ipadic/Noun.verbal.csv ... 12146
reading /usr/share/mecab/dic/ipadic/Auxil.csv ... 199
reading /usr/share/mecab/dic/ipadic/Noun.csv ... 60477
reading /usr/share/mecab/dic/ipadic/Noun.number.csv ... 42
reading /usr/share/mecab/dic/ipadic/Postp-col.csv ... 91
reading /usr/share/mecab/dic/ipadic/Interjection.csv ... 252
reading /usr/share/mecab/dic/ipadic/Noun.demonst.csv ... 120
reading /usr/share/mecab/dic/ipadic/Prefix.csv ... 221
reading /usr/share/mecab/dic/ipadic/Noun.place.csv ... 72999
reading /usr/share/mecab/dic/ipadic/Symbol.csv ... 208
reading /usr/share/mecab/dic/ipadic/Suffix.csv ... 1393
reading /usr/share/mecab/dic/ipadic/Verb.csv ... 130750
reading /usr/share/mecab/dic/ipadic/Noun.nai.csv ... 42
reading /usr/share/mecab/dic/ipadic/Adnominal.csv ... 135
reading /usr/share/mecab/dic/ipadic/Noun.proper.csv ... 27328
reading /usr/share/mecab/dic/ipadic/Others.csv ... 2
reading /usr/share/mecab/dic/ipadic/Postp.csv ... 146
reading /usr/share/mecab/dic/ipadic/Noun.org.csv ... 16668
emitting double-array: 100% |###########################################|
reading /usr/share/mecab/dic/ipadic/matrix.def ... 1316x1316
emitting matrix      : 100% |###########################################|

done!
update-alternatives: using /var/lib/mecab/dic/ipadic-utf8 to provide /var/lib/mecab/dic/debian (mecab-dictionary) in auto mode
Setting up mysql-server-8.0 (8.0.28-0ubuntu0.20.04.3) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
mysqld will log errors to /var/log/mysql/error.log
mysqld is running as pid 10044
Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.
Setting up mysql-server (8.0.28-0ubuntu0.20.04.3) ...
Processing triggers for systemd (245.4-4ubuntu3.16) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
root@ubuntu:/home/ubuntu# sudo apt install mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  mysql-client
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 9420 B of archives.
After this operation, 113 kB of additional disk space will be used.
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 mysql-client all 8.0.28-0ubuntu0.20.04.3 [9420 B]
Fetched 9420 B in 3s (3149 B/s)
Selecting previously unselected package mysql-client.
(Reading database ... 170594 files and directories currently installed.)
Preparing to unpack .../mysql-client_8.0.28-0ubuntu0.20.04.3_all.deb ...
Unpacking mysql-client (8.0.28-0ubuntu0.20.04.3) ...
Setting up mysql-client (8.0.28-0ubuntu0.20.04.3) ...
root@ubuntu:/home/ubuntu# sudo apt-get install libmysqlclient-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libc-dev-bin libc6-dev libcrypt-dev libmysqlclient21 libssl-dev linux-libc-dev manpages-dev zlib1g-dev
Suggested packages:
  glibc-doc libssl-doc
The following NEW packages will be installed:
  libc-dev-bin libc6-dev libcrypt-dev libmysqlclient-dev libmysqlclient21 libssl-dev linux-libc-dev manpages-dev zlib1g-dev
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.0 MB of archives.
After this operation, 52.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 libc-dev-bin arm64 2.31-0ubuntu9.7 [64.2 kB]
Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 linux-libc-dev arm64 5.4.0-107.121 [1095 kB]
Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 libcrypt-dev arm64 1:4.4.10-10ubuntu4 [111 kB]
Get:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 libc6-dev arm64 2.31-0ubuntu9.7 [2059 kB]
Get:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 libmysqlclient21 arm64 8.0.28-0ubuntu0.20.04.3 [1259 kB]
Get:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 libssl-dev arm64 1.1.1f-1ubuntu2.12 [1462 kB]
Get:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 zlib1g-dev arm64 1:1.2.11.dfsg-2ubuntu1.3 [154 kB]
Get:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates/main arm64 libmysqlclient-dev arm64 8.0.28-0ubuntu0.20.04.3 [1574 kB]
Get:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal/main arm64 manpages-dev all 5.05-1 [2266 kB]
Fetched 10.0 MB in 42s (240 kB/s)
Selecting previously unselected package libc-dev-bin.
(Reading database ... 170598 files and directories currently installed.)
Preparing to unpack .../0-libc-dev-bin_2.31-0ubuntu9.7_arm64.deb ...
Unpacking libc-dev-bin (2.31-0ubuntu9.7) ...
Selecting previously unselected package linux-libc-dev:arm64.
Preparing to unpack .../1-linux-libc-dev_5.4.0-107.121_arm64.deb ...
Unpacking linux-libc-dev:arm64 (5.4.0-107.121) ...
Selecting previously unselected package libcrypt-dev:arm64.
Preparing to unpack .../2-libcrypt-dev_1%3a4.4.10-10ubuntu4_arm64.deb ...
Unpacking libcrypt-dev:arm64 (1:4.4.10-10ubuntu4) ...
Selecting previously unselected package libc6-dev:arm64.
Preparing to unpack .../3-libc6-dev_2.31-0ubuntu9.7_arm64.deb ...
Unpacking libc6-dev:arm64 (2.31-0ubuntu9.7) ...
Selecting previously unselected package libmysqlclient21:arm64.
Preparing to unpack .../4-libmysqlclient21_8.0.28-0ubuntu0.20.04.3_arm64.deb ...
Unpacking libmysqlclient21:arm64 (8.0.28-0ubuntu0.20.04.3) ...
Selecting previously unselected package libssl-dev:arm64.
Preparing to unpack .../5-libssl-dev_1.1.1f-1ubuntu2.12_arm64.deb ...
Unpacking libssl-dev:arm64 (1.1.1f-1ubuntu2.12) ...
Selecting previously unselected package zlib1g-dev:arm64.
Preparing to unpack .../6-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu1.3_arm64.deb ...
Unpacking zlib1g-dev:arm64 (1:1.2.11.dfsg-2ubuntu1.3) ...
Selecting previously unselected package libmysqlclient-dev.
Preparing to unpack .../7-libmysqlclient-dev_8.0.28-0ubuntu0.20.04.3_arm64.deb ...
Unpacking libmysqlclient-dev (8.0.28-0ubuntu0.20.04.3) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../8-manpages-dev_5.05-1_all.deb ...
Unpacking manpages-dev (5.05-1) ...
Setting up manpages-dev (5.05-1) ...
Setting up libmysqlclient21:arm64 (8.0.28-0ubuntu0.20.04.3) ...
Setting up linux-libc-dev:arm64 (5.4.0-107.121) ...
Setting up libssl-dev:arm64 (1.1.1f-1ubuntu2.12) ...
Setting up libcrypt-dev:arm64 (1:4.4.10-10ubuntu4) ...
Setting up libc-dev-bin (2.31-0ubuntu9.7) ...
Setting up libc6-dev:arm64 (2.31-0ubuntu9.7) ...
Setting up zlib1g-dev:arm64 (1:1.2.11.dfsg-2ubuntu1.3) ...
Setting up libmysqlclient-dev (8.0.28-0ubuntu0.20.04.3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...


root@ubuntu:/home/ubuntu# sudo systemctl status mysql
● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-04-15 22:13:42 CST; 5min ago
   Main PID: 10274 (mysqld)
     Status: "Server is operational"
      Tasks: 37 (limit: 4429)
     CGroup: /system.slice/mysql.service
             └─10274 /usr/sbin/mysqld

Apr 15 22:13:40 ubuntu systemd[1]: Starting MySQL Community Server...
Apr 15 22:13:42 ubuntu systemd[1]: Started MySQL Community Server.


root@ubuntu:/home/ubuntu# sudo mysql_secure_installation

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: root

Invalid option provided.

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: 12345678
Please set the password for root here.

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
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) : n

 ... skipping.
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!
 

你可能感兴趣的:(linux,mysql)