ubantu18.04 cannot be used after installing MySQL database, not installed properly

Source: Internet
Author: User

Error message:

  1.ubantu18.04 Install MySQL no prompt for password

2, using terminal installation Mysql-apt-config_0.8.10-1_all.deb still unsuccessful

3. ERROR 1698 (28000): Access denied for user ' root ' @ ' localhost

4. ERROR 1146 (42S02): Table ' mysql.role_edges ' doesn ' t exist

In the event of an error, we first think of the technical resources to solve, but we have tried many ways to solve the problem, and finally found that is

There is a problem with the installation process. Here are the installation steps, ubantu18.04 Pro test available:

First step: Download MySQL resources, before installing please uninstall before, be sure to uninstall clean

Click on the resources link to download, directly click No Thanks, just start my download.

Step Two: Install the downloaded release package by entering the following command in the terminal

  sudo dpkg-i file path + filename 

You can also CD to the file directory:

  

Step Three: Update package information from the MySQL apt repository using the following command

  sudo apt-get update  

  

Fourth step: Install MySQL

  sudo apt-get install Mysql-server  

In this process there will be some versions of the selection, the first box we will follow the first option to select Version 8.0 (ubantu18.04 if the lower version will be problematic).

Then by default Select OK, select OK to confirm the installation. Then set your MySQL database root user's password, confirm the password. The following questions are then addressed:

  

Choose the second one here, or you can only use sudo to access MySQL after installation, and you cannot access the database.

Summarize:

I encountered a lot of problems during the installation process, and finally I was able to thank the blogger for the help of the lone castle Aoyama lovers and official documents.

Other commands:

Check the status of MySQL:sudo service mysql status

Turn on MySQL server:sudo service mysql start

Shut down MySQL server:sudo service mysql stop

To uninstall MySQL command:

Resource one:completely uninstall MySQL under Ubuntu

Resource two:how to completely uninstall MySQL under Ubantu

ubantu18.04 cannot be used after installing MySQL database, not installed properly

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.