Open kagxin opened 5 years ago
最新 mysql apt repo,查看地址: https://dev.mysql.com/downloads/repo/apt/
如果出现 Table 'performance_schema.session_variables' doesn't exist
的问题就执行
ref : https://stackoverflow.com/questions/31967527/table-performance-schema-session-variables-doesnt-exist
http://dev.mysql.com/get/mysql-apt-config_0.7.2-1_all.deb
sudo apt-get install --reinstall pkg-name
sudo dpkg --configure -a
如果出现:
dpkg: error processing mysql-apt-config (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: mysql-apt-config
sudo rm /var/cache/debconf/*.dat
ref : https://askubuntu.com/questions/690855/mysql-5-6-dpkg-install-error-even-after-complete-uninstall
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
备份所有数据数据,如果需要的话
下载mysql 最新的 mysql apt repository
安装apt repo
更新源
安装mysqlserver
升级一下数据库文件版本
重启msyql
并检查一下数据是否正常
ref : https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ https://askubuntu.com/questions/750498/mysql-5-5-update-to-mysql-5-7 https://www.typechodev.com/case/754.html https://askubuntu.com/questions/148383/how-to-resolve-dpkg-error-processing-var-cache-apt-archives-python-apport-2-0/266912