在Rocky Linux上安裝和配置數據庫服務器可以通過以下步驟:
sudo dnf install mysql-server
sudo systemctl start mysqld
sudo systemctl enable mysqld
sudo mysql_secure_installation
sudo mysql
CREATE DATABASE dbname;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'localhost';
FLUSH PRIVILEGES;
exit
sudo systemctl restart mysqld
至此,您已經成功安裝和配置了數據庫服務器(MySQL)在Rocky Linux上。您可以通過連接到數據庫服務器并開始使用數據庫。