1.
imooc 安装MySQL:Ubuntu
centos 需删除数据库 yum remove mariadb-libs.x86_64
cd /tmp/
wget https://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm #下载文件
ll #查看文件
yum localinstall mysql57-community-release-el7-8.noarch.rpm /y
yum install mysql-community-server /y
service mysqld start #启动服务
ps -ef |grep mysql #查看服务
cat /var/log/mysqld.log | grep “password” #查看临时密码 |
mysql -uroot -p #登录用户
exit #退出
yum install mysql-community-server
2.
yum remove mariadb-libs.x86_64
cd /tmp/
wget https://repo.mysql.com/mysql57-community-release-e17-8.noarch.rpm
wget http://repo.mysql.com/mysql-community-release-e17-5.noarch.rpm
192.168.249.207 127.0.0.1 192.168.249.237
启动pycharm su 输入密码 cd /tmp/mozilla_linjing0/pycharm-2018.3.1/bin
./pycharm.sh
http://192.168.249.207:5000/ http://127.0.0.1:5000/
export ops_config=local python3 manager.py runserver
C:\用户\xuuji\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\linjing\code-demo
apt install + 名称 #安装应用 apt autoremove +名称 #删除应用
3.
sudo apt-get update
sudo apt-get -y install mysql-server mysql-client
rpm -qa | grep mysql-server |
dpkg –list | grep mysql |
sudo apt-get remove mysql-*
dpkg -l | grep ^rc | awk ‘{print $2}’ | sudo xargs dpkg -P |
apt-get autoremove mysql* –purge
rpm -qa | grep -i mysql |
yum remove 文件名称
666
我不确定它是否会起作用,但试试这个。首先,您需要卸载与mysql相关的任何内容:
sudo apt-get purge mysql* sudo apt-get autoremove sudo apt-get autoclean 然后重要的一点,这个错误可能是因为你的发行版最近没有升级,或者至少没有正确解决冲突。接下来就是像以前一样升级它但不先删除它: 完全卸载mysql后,运行以下命令 sudo apt-get dist-upgrade
然后重新安装mysql
sudo apt-get install mysql-server
韧桂 2019-05-02