yum install mysql yum install mysql-server yum install mysql-devel yum install mariadb-server mariadb systemctl start mariadb #启动MariaDB systemctl stop mariadb #停止MariaDB systemctl restart mariadb #重启MariaDB systemctl enable mariadb #设置开机启动 mysqladmin -u root password "123"; GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘WITH GRANT OPTION ; FLUSH PRIVILEGES ;
时间: 2024-10-02 18:00:44