Wikipedia MariaDB
1、インストール
mysqlをインストールしようとするとmariadbがインストールされる$ sudo yum install mysql Loaded plugins: fastestmirror .... Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: mariadb x86_64 1:5.5.41-2.el7_0 base 8.9 M Installing for dependencies: mariadb-libs x86_64 1:5.5.41-2.el7_0 base 754 k Transaction Summary ================================================================================ Install 1 Package (+1 Dependent package) Total download size: 9.7 M Installed size: 53 M Is this ok [y/d/N]: y Downloading packages: (1/2): mariadb-libs-5.5.41-2.el7_0.x86_64.rpm | 754 kB 00:00 (2/2): mariadb-5.5.41-2.el7_0.x86_64.rpm | 8.9 MB 00:00 -------------------------------------------------------------------------------- Total 12 MB/s | 9.7 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:mariadb-libs-5.5.41-2.el7_0.x86_64 1/2 Installing : 1:mariadb-5.5.41-2.el7_0.x86_64 2/2 Verifying : 1:mariadb-5.5.41-2.el7_0.x86_64 1/2 Verifying : 1:mariadb-libs-5.5.41-2.el7_0.x86_64 2/2 Installed: mariadb.x86_64 1:5.5.41-2.el7_0 Dependency Installed: mariadb-libs.x86_64 1:5.5.41-2.el7_0 Complete!
2、バージョン確認
$ mysql --version mysql Ver 15.1 Distrib 5.5.41-MariaDB, for Linux (x86_64) using readline 5.1mariadbになっている
3、Serverインストール
$ sudo yum install mariadb-server
4、サービス確認
$ systemctl list-unit-files | grep mariadb mariadb.service disabled無効になっている
5、サービス有効化
$ sudo systemctl enable mariadb.service ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service' $ systemctl list-unit-files | grep mariadb mariadb.service enabled
6、サービス起動
$ sudo systemctl start mariadb.service
0 件のコメント:
コメントを投稿