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;

相关文章:

  • 2021-06-11
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2021-05-02
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2021-12-08
  • 2021-04-21
  • 2022-02-11
  • 2021-12-15
  • 2022-01-04
相关资源
相似解决方案