Ubuntu Server 16.04 MySQL 8.0 installation and configuration graphic tutorial

Ubuntu Server 16.04 MySQL 8.0 installation and configuration graphic tutorial

Ubuntu Server 16.04 MySQL 8.0 installation and configuration graphic tutorial

1. Download the installation file from the MySQL official website. There are two options:

  • Install using APT
  • Install using the complete installation package
sudo dpkg -i mysql-apt-config_0.8.6-1_all.deb

2. Update the system installation source

sudo apt-get update

3. Install MySQL service

sudo apt-get install mysql-server

4. Modify the character set of MySQL Server

To modify the character set, first find the installation location of MySQL. You can use the following command:

whereis mysql

The following is the installation location of MySQL:

Change the directory to /etc/mysql as shown below:

Modify mysqld.cnf in the mysql.conf.d folder, add character-set-server=utf8 at the end of the file, and save it.

5. Restart the MySQL service

service mysql restart

6. Log in to Mysql

mysql -u root -p

After entering the password, you can log in and use it normally!

7. Modify the Client character set

In order to display Chinese characters normally, you need to modify the client character encoding. After successful login, enter charset utf8 in the console window.

8. Testing

After entering status in the console, the following information will be displayed.

Wonderful topic sharing: Installation tutorials for different versions of MySQL Installation tutorials for MySQL 5.7 versions Installation tutorials for MySQL 5.6 versions

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Ubuntu Server 11.10 installation and configuration of lamp (Apache+MySQL+PHP)
  • The perfect solution to the dependency error when installing openssh-server under ubuntu16.04 (very good)
  • How to install LAMP on Ubuntu Server 16.04 LTS
  • Ubuntu Server Installation Tutorial in Vmware
  • Ubuntu Server 18.04.5 LTS Server Edition Installation and Configuration Graphic Tutorial

<<:  Detailed explanation of Vue component reuse and expansion

>>:  How to modify the firewall on a Linux server to allow remote access to the port

Recommend

Detailed explanation of Nodejs array queue and forEach application

This article mainly records the problems and solu...

Detailed explanation of a method to rename procedure in MYSQL

Recently I have used the function of renaming sto...

CSS code to distinguish ie8/ie9/ie10/ie11 chrome firefox

Website compatibility debugging is really annoyin...

How to install and configure GitLab on Ubuntu 20.04

introduce GitLab CE or Community Edition is an op...

HTML tag dl dt dd usage instructions

Basic structure: Copy code The code is as follows:...

CSS3 realizes the animation effect of lotus blooming

Let’s look at the effect first: This effect looks...

In-depth explanation of Vue multi-select list component

A Multi-Select is a UI element that lists all opt...

Detailed explanation of how to exit Docker container without closing it

After entering the Docker container, if you exit ...

js to achieve floor scrolling effect

This article uses jQuery to implement the sliding...

Detailed explanation of the usage of MySQL memory tables and temporary tables

Usage of MySQL memory tables and temporary tables...

MySQL optimization strategy (recommended)

In summary: 1. Consider performance when designin...

Vue integrates Tencent TIM instant messaging

This article mainly introduces how to integrate T...

Detailed configuration of wireless network card under Ubuntu Server

1. Insert the wireless network card and use the c...

Solve the problem when setting the date to 0000-00-00 00:00:00 in MySQL 8.0.13

I just started learning database operations. Toda...

Implementation of importing and exporting vue-element-admin projects

vue-element-admin import component encapsulation ...