安装 wordpress
安装 apache
sudo apt-get install apache2 sudo apt-get install apache2-utils(可选)
启动
sudo systemctl enable apache2 sudo systemctl start apache2
安装 mariadb
sudo apt-get install mariadb-server sudo apt-get install mariadb-client(可选)
sudo systemctl start mariadb.service sudo systemctl enable mariadb.service
配置 mariadb
sudo mysql_secure_installation
连接 mariadb
sudo mariadb
创建 mariadb 新用户
GRANT ALL ON . TO 'admin'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
刷新权限
FLUSH PRIVILEGES;
退出
exit
测试新用户
mariadb -u admin -p