悉野小楼

导航

Amazon Linux 2023上安装MariaDB

参考:https://zhuanlan.zhihu.com/p/649682551

1. 先更新

sudo dnf update

2.在Amazon Linux 2023上安装MariaDB 10.05

sudo dnf install mariadb105-server

3.启动mariadb

sudo systemctl start mariadb

(设置MariaDB自启动sudo systemctl enable mariadb, 查看是否是自启动sudo systemctl is-enabled mariadb)

查看状态:

systemctl status mariadb

4.设置密码相关, 删除测试库相关, 按提示操作就行了

sudo mysql_secure_installation

5.访问mariadb

mysql -uroot -p

 

posted on 2024-11-05 14:35  悉野  阅读(26)  评论(0编辑  收藏  举报