标签:roo start x86_64 dpkg gen restart service apt-get mysql5.7
环境:
Ubuntu 14.04.5 LTS (GNU/Linux 4.2.0-27-generic x86_64)
待安装:MySQL5.7版本
wget https://dev.mysql.com/get/mysql-apt-config_0.8.1-1_all.deb sudo dpkg -i mysql-apt-config_0.8.1-1_all.deb
在安装的过程中,会要求选择mysql版本,选择mysql5.7版本后,点击“OK”。
sudo apt-get update
sudo apt-get install mysql-server
sudo service mysql restart mysql -u root -p
输入之前设置的帐户密码
#进入MySQL: mysql -u root -p
#启动: sudo service mysql start
#重启:sudo service mysql restart
#关闭: sudo service mysql stop
之前我遇到了character_set_server/character_set_database非utf-8的情况。导致数据写入出错。
修改MySQL配置文件(/et/mysql/my.cnf)如下:
[client] default_character_set=utf8 [mysql] default_character_set=utf8 [mysqld] character_set_server=utf8
标签:roo start x86_64 dpkg gen restart service apt-get mysql5.7
原文地址:https://www.cnblogs.com/metianzing/p/9050204.html