当前位置:Gxlcms > 数据库问题 > deepin MySQL 安装以及编码格式的修改utf-8

deepin MySQL 安装以及编码格式的修改utf-8

时间:2021-07-01 10:21:17 帮助过:21人阅读

deepin MySQL 安装以及编码格式的修改utf-8

 

 

1、sudo apt-get install mysql-server mysql-client


2、sudo mysql -u root -p


3、update mysql.user set plugin="mysql_native_password" where user="root";


4、update mysql.user set authentication_string=password(‘1234‘) where user=‘root‘ and Host=‘localhost‘;


5、sudo service mysql restart


6、mysql -u root -p


7、(输入 mysql 密码)


8、set character_set_database=utf8;


9、set character_set_server=utf8;


10、set global character_set_database=utf8;


11、set global character_set_server=utf8;

deepin MySQL 安装以及编码格式的修改utf-8

标签:安装   ati   database   service   user   mys   编码   auth   pass   

人气教程排行