MySQL与phpMyAdmin5

只愿长相守 提交于 2020-03-14 15:14:41

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!