当前位置:网站首页>Install MySQL 8 for Ubuntu
Install MySQL 8 for Ubuntu
2022-04-21 21:04:00 【Zhou xiansen likes to eat vegetarian food】
brief introduction
This article describes how to Ubuntu18.04 Install a newer version of MySQL8 And configure remote connections .
install
All the following installation processes adopt root Account , If not, please use sudo jurisdiction .
First of all to MySQL Official download page , Select the version and source we need as shown in the figure below , We will download to mysql-apt-config_0.8.22-1_all.deb File on server ( With the help of xftp perhaps mobaxterm).

then , Let's install the above file , The reason why you want to install this file is to choose what version you want to install mysql And what you want to install mysql plug-in unit , After the selection , This tool will generate a list of sources , This table records MySQL Of apt The server address of the software warehouse , For subsequent apt Tools can be installed normally MySQL.
dpkg -i mysql-apt-config_0.8.22-1_all.deb
Executing the above command will have the following interface , So let's choose MySQL Server and mysql8.0, Finally, go back to the main page and choose Ok that will do .



Next, we use the following command to do the actual MySQL Installation , The installation process requires input root password , You also need to select a validation plug-in , It is recommended to select compatibility mode (Use Legacy Authentication Method).
apt-get update
apt-get install mysql-server
The installation is smooth. We can pass mysql -uroot -p Log in to the database , Use show databases; view the database , Because just installed , We should see the following default database .
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)
Remote connection
I won't say more about firewalls , It must be adjusted ,MySQL The default is only locally accessible , We need to modify this permission .
mysql -uroot -p
Log in to the database and view the permission table .
mysql> use mysql;
mysql> select host, user, authentication_string, plugin from user;

The above figure shows that you can only log in locally , We add accounts that can be accessed remotely .
mysql> create user 'root'@'%' identified by ' Your own mysql password ';
mysql> grant all privileges on *.* to 'root'@'%';
mysql> flush privileges;
At this point, we can use remote database tools such as DBeaver Connect .

uninstall
Use the following command to uninstall .
apt-get remove mysql-server
Additional explanation
This article describes how to Ubuntu18 Install and configure MySQL8.
版权声明
本文为[Zhou xiansen likes to eat vegetarian food]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204212102374377.html
边栏推荐
猜你喜欢

2022年电工(初级)考试模拟100题及模拟考试

10 minute quick start RDS

TGIP-CN 038 报名|深度解析 Apache Pulsar 源码阅读正确姿势(一)

其它——Redis与Mysql双写一致性方案解析
![[embedded] about IAP + XMODEM receiving bin file from outside to upgrade the chip](/img/05/c69e3701bf80f03c8ec35c033944b1.png)
[embedded] about IAP + XMODEM receiving bin file from outside to upgrade the chip

Tongda OA form countersignature comment style

What is the most important aspect of slip ring wiring

2022R2移动式压力容器充装考试练习题及在线模拟考试
![[azure application service] after azure function enables managed identity, error appears in PowerShell function: managedidentitycredential authentication failed](/img/81/adf80795cc22a887be2075ab3da0ef.png)
[azure application service] after azure function enables managed identity, error appears in PowerShell function: managedidentitycredential authentication failed

Initial experience of MapReduce service
随机推荐
其它——Siege压力测试工具使用
Oracle management - tablespace permission control
Operation instructions for upgrading Tongda OA workflow
4、MySQL Workbench创建访问用户
APM(应用性能监控) 行业认知系列 - 一
如何正确有效的进行滑环的安装
通达oa工作流升级 操作说明
其它——Redis與Mysql雙寫一致性方案解析
Go语言自学系列 | golang结构体
Release announcement of HMS core version 6.4.0
win10使用技巧之关闭软件安装前的用户提示
Tongda OA system docking single sign on platform use and Development Manual
低版本R语言ggplot2安装问题解决【rlang>=1.0.0 is require】
gstreamer学习
Complete collection of basic MySQL commands
Get application instance through reflection
通達OA系統對接 單點登錄平臺使用和開發手册
预处理问题
其它-Supervisor的使用
5、Qt使用MySQL