How to Install MySQL 8.0 in Ubuntu 18.04

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

9 Responses

  1. Farooque Shaikh says:

    hi i am from india and i’m getting follwing error can any one help me out
    The repository ‘ bionic InRelease’ is not signed.

    please help me asap.

  2. Sebastian says:

    Hi! I’m from Argentina! I can’t install MySQL 8 and i don’t know why. I followed your steps, but when i see the “configuring” box, i don’t see Mysql8. In the box I see “Mysql 5.7” i and don’t have another option. Then, another problem, is that the system never asks for the password. Can you help me? Sorry for my bad English!

  3. paijo says:

    Can I use two different versions of MySQL in one server?

  4. rvicz says:

    At the beginning of step 3, if you are getting something along the lines of: Table ‘mysql.user’ doesn’t exist:ERROR, be sure to run: “sudo mysql_upgrade -u root“.

  5. Needhelp says:

    Package libmysqlclient18 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package ‘libmysqlclient18‘ has no installation candidate

    May anyone help me to solve this? I am using Ubuntu 18.04 and followed the tutorial except “Secure MySQL Server Installation”, thanks!

  6. O.A. says:

    In some newer Ubuntu 18.04 installations, you will run into the following scenario:

    The following packages have unmet dependencies:
    mysql-server : Depends: mysql-community-server (= 8.0.12-1ubuntu18.04) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    It is necessary to add the ‘universe’ repository with the following command:

    $ sudo add-apt-repository universe

    After that, attempt mysql-server installation and it will be fine.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.