sudo apt install mysql-server apache2 php php7.2-mbstring php-mysqli
sudo apt install mariadb-server apache2 php php7.2-mbstring php-mysqli
sudo systemctl enable mysql
sudo systemctl enable apache2
sudo ufw allow mysql
sudo ufw allow apache
sudo mysql
update mysql.user set authentication_string=PASSWORD('demo123'),plugin='mysql_native_password' where user='root';
flush privileges;
修改mysqld.conf
[client]
default-character-set = utf8mb4
[mysql]
character-set-server = utf8mb4
sudo systemctl restart mysql
修改conf.default.php
password
数据库用户'root'的密码
blowfish_secret
db2545515c456c8ff5d2ba3c474838e3
文章来源: www.oschina.net,作者:kwanxian,版权归原作者所有,如需转载,请联系作者。
原文链接:https://my.oschina.net/u/4173440/blog/3194779