Install the ubuntu14.04 from MySQL after removing from 5.5 5.7 problems encountered (this article does not discuss the hot upgrade)

Source: Internet
Author: User
Tags mysql version

51 The holiday is really boring

Keep playing with the new server. Found a MySQL version is really a bit old, it is estimated that Akiho directly use

Install Mysql-server

, and then did not update to the latest source, and then no brain installed the 5.5 version of this old version.

So now let me uninstall them using:

Apt-get Remove Mysql-server

You can also use a completely deleted file with configuration files and settings.

Apt-get--purge Remove Mysql-server

Then use:

Apt-get Autoremove

Clean out the extra dependence.

If you encounter a failure to uninstall cleanly or rely on the installation of problems, it will cause you no matter how to reinstall the error failed. You'll be prompted to install dependencies, and after that, whatever you install, you'll be prompted to install something. The installation failed because of some dependent issues. It's time to clean up these problems. Reinstall

Try to use

sudo dpkg--force-depends--purge xxxx

Okay, so much to say about the uninstall and installation failure encountered problems, now into the installation of the topic, I personally very lazy. Do not want to use source make, just right MySQL official also provides apt source to update.

Get the MySQL repository:

wget http://repo.mysql.com//mysql-apt-config_0.6.0-1_all.deb

Install this DPKG package:

Dpkg-i Mysql-apt-config_0. 6.0-1_all.deb

Then update the source:

Apt-get Update

After the upgrade to the source, during this period, you will get some tips and options to operate. This update source can choose to install 5.6 or 5.7. I would like to play the latest directly up to 5.7, 5.7 support native JSON storage format has not played, so try.

Apt-get Upgrade

Subsequent installation uses:

Install mysql-server-5.7

Specify the version installation directly. This will require the root password to be set at the time of installation and then follow the prompts.

OK, the installation is complete successfully.

Reference

Http://www.linuxdiyf.com/linux/16950.html

http://blog.csdn.net/flydream0/article/details/8620396

http://blog.csdn.net/span76/article/details/41313591

Http://www.2cto.com/os/201308/234765.html

1190000002426913

Install the ubuntu14.04 from MySQL after removing from 5.5 5.7 problems encountered (this article does not discuss the hot upgrade)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.