标签:选择 tab 去掉 pack 用户 pdo sel ant mon
apt update && apt upgrade
apt install ca-certificates apt-transport-https
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ buster main" | tee /etc/apt/sources.list.d/php.list
apt update
apt install php7.3
apt install php7.3-cli php7.3-common php7.3-curl php7.3-gd php7.3-json php7.3-mbstring php7.3-mysql php7.3-xml
nano /etc/php/7.3/apache2/php.ini
extension=pdo_mysql
apt install mariadb-server -y
systemctl enable mariadb.service
systemctl restart mariadb.service
mysql -uroot
有密码用mysql -uroot -p123456
show databases;
use mysql;
SELECT host,user,password from user;
set password for ‘root‘@‘localhost‘ =password(‘123456‘);
grant all privileges on *.* to root@‘%‘identified by ‘123456‘;
create user ‘用户名‘@‘%‘ ip地址 by ‘密码‘
重启apache服务
systemctl restart apache2.service
```
以上完成相关设置
标签:选择 tab 去掉 pack 用户 pdo sel ant mon
原文地址:https://www.cnblogs.com/praybb/p/12155604.html