ubuntu18.04 installation MySQL8.0 more

ubuntu18.04 installation MySQL8.0

  • Deb file download

    https://dev.mysql.com/downloads/repo/apt/

  • Deb file decompression

  • After you select 8.0 and click OK to continue the installation

  • Update command executionsudo apt-get update

  • Installation Mysql8.0, execute the commandsudo apt install mysql-server
  • Follow-up is to set a password,

  • Note that in Figure 5.6 that the election

Configure mysql database to achieve external network access

  • Log mysql,mysql -uroot -p

  • Enter the password you just installed

  • View the current user privileges (be careful not to forget the ending semicolon)

    use mysql; select Host,User from user where user='root';

  • Host% of modified, may be connected to the external network on behalf of,

    update user set Host='%' where User='root';

  • Refresh

    FLUSH PRIVILEGES;

Test link (using Navicat)

  • Link name: free
  • Host: IP address of the host you install mysql, if it is local to localhost
  • Port: The default port is 3306
  • Username: the user is in the mysql database user table
  • Password: mysql database in the user table of the user's password

  • NOTE: Use the tool to connect the best time to test whether the connection can be connected successfully Click OK

Guess you like

Origin www.cnblogs.com/cjj426890/p/11866683.html
Recommended