大网数据广告活动
服务器运维问答

How to install mariadb on amazon linux

· 52CE 我爱测

I referred to the link https://blog.adminfactory.net/mariadb-and-galera-on-aws-amazon-linux.html to install the mariadb on my amazon linux, since I did not find any other resource related to amazon linux. This instructs to add ma…

问题原文

原帖链接 · Harish Ninge Gowda · CC BY-SA 3.0

I referred to the link https://blog.adminfactory.net/mariadb-and-galera-on-aws-amazon-linux.html to install the mariadb on my amazon linux, since I did not find any other resource related to amazon linux. This instructs to add maria.repo.

When I visit the suggested URL I did not find anything related to amazon linux. I tried using centos 7. It threw up error. Is there any mariadb repo for amazon linux.

The error is

Error: Package: MariaDB-server-10.1.13-1.el7.centos.x86_64 (mariadb) Requires: libsystemd-daemon.so.0()(64bit) Error: Package: MariaDB-server-10.1.13-1.el7.centos.x86_64 (mariadb) Requires: libsystemd-daemon.so.0(LIBSYSTEMD_DAEMON_31)(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

Is it ok if I continue and install libsystemd-daemon.so

I just found another question here the advice is to use linux OS. No solution on how to install Mariadb on amazon linux.

已采纳解答

原帖链接 · XP. · CC BY-SA 3.0

I was able to install the MariaDB 5.5 CentOS repository list (created 2016-05-09 04:06 UTC).

Create the following file:

sudo vi /etc/yum.repos.d/maria.repo

Add the following contents to the file and save:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Then run the following commands:

sudo yum install -y MariaDB-server MariaDB-client
sudo /etc/init.d/mysql start

You should be all set. Run mysql -u root to log in.

You can secure MariaDB with the following command:

sudo mysql_secure_installation

More information: https://mariadb.com/kb/en/mariadb/mysql_secure_installation/

Fortunately, I was trying to install MariaDB on Amazon Linux, myself. Just now I got it to work as above.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-05)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。