CentOS Linux release 7.6.1810 (Core)環境にMariaDBをyumでインストールした時のログ
環境
[xxxxxxx@localhost ~]$ yum --version
3.4.3
Installed: rpm-4.11.3-35.el7.x86_64 at 2019-01-25 11:12
Built : CentOS BuildSystem <http://bugs.centos.org> at 2018-10-30 19:27
Committed: Pavlina Moravcova Varekova <pmoravco@redhat.com> at 2018-06-19
Installed: yum-3.4.3-161.el7.centos.noarch at 2019-01-25 11:12
Built : CentOS BuildSystem <http://bugs.centos.org> at 2018-11-05 01:54
Committed: CentOS Sources <bugs@centos.org> at 2018-10-30
Installed: yum-plugin-fastestmirror-1.1.31-50.el7.noarch at 2019-01-25 11:12
Built : CentOS BuildSystem <http://bugs.centos.org> at 2018-10-30 22:58
Committed: Michal Domonkos <mdomonko@redhat.com> at 2018-08-24
インストール
[root@localhost etc]# yum install mariadb-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp-srv2.kddilabs.jp
* epel: ftp.jaist.ac.jp
* extras: ftp-srv2.kddilabs.jp
* remi-safe: ftp.riken.jp
* updates: ftp-srv2.kddilabs.jp
Package mariadb-server is obsoleted by MariaDB-server, trying to install MariaDB-server-10.3.15-1.el7.centos.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-server.x86_64 0:10.3.15-1.el7.centos will be installed
--> Processing Dependency: MariaDB-client for package: MariaDB-server-10.3.15-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.3.15-1.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================
Installing:
MariaDB-server x86_64 10.3.15-1.el7.centos mariadb-main 24 M
Installing for dependencies:
MariaDB-client x86_64 10.3.15-1.el7.centos mariadb-main 11 M
Transaction Summary
=====================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 35 M
Installed size: 177 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): MariaDB-client-10.3.15-1.el7.centos.x86_64.rpm | 11 MB 00:02:02
(2/2): MariaDB-server-10.3.15-1.el7.centos.x86_64.rpm | 24 MB 00:04:36
---------------------------------------------------------------------------------------------------------------------
Total 131 kB/s | 35 MB 00:04:36
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : MariaDB-client-10.3.15-1.el7.centos.x86_64 1/2
Installing : MariaDB-server-10.3.15-1.el7.centos.x86_64 2/2
Verifying : MariaDB-client-10.3.15-1.el7.centos.x86_64 1/2
Verifying : MariaDB-server-10.3.15-1.el7.centos.x86_64 2/2
Installed:
MariaDB-server.x86_64 0:10.3.15-1.el7.centos
Dependency Installed:
MariaDB-client.x86_64 0:10.3.15-1.el7.centos
Complete!
[root@localhost etc]# systemctl start mariadb
[root@localhost etc]# systemctl enable mariadb
[root@localhost etc]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
You already have a root password set, so you can safely answer 'n'.
Change the root password? [Y/n] n
... skipping.
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB 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? [Y/n] 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? [Y/n] Y
... Success!
By default, MariaDB 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? [Y/n] 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? [Y/n] Y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
[root@localhost etc]#
[root@localhost etc]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 21
Server version: 10.3.15-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.002 sec)
MariaDB [(none)]> exit
Bye
[root@localhost etc]#