当前位置:网站首页>Ubuntu20.04系统下安装MySQL数据库5.7.29版本
Ubuntu20.04系统下安装MySQL数据库5.7.29版本
2022-07-25 09:26:00 【colours starry sky】
由于apt-get只能安装8.0版本,考虑到低版本资料更多,为方便学习,决定安装5.7版本
以下是安装步骤
1.下载5.7.29版本
下载第一个包DEB Bundle(mysql-server_5.7.29-1ubuntu18.04_i386.deb-bundle.tar)
- 解压下载的文件: tar -xvf mysql-server_5.7.29-1ubuntu18.04_amd64.deb-bundle.tar
- 在终端中输入以下命令:
(注意,这里是安装顺序。这一步很重要,文件之间存在依赖关系):
dpkg -i libmysqlclient20_5.7.29-1ubuntu18.04_amd64.deb
dpkg -i libmysqlclient-dev_5.7.29-1ubuntu18.04_amd64.deb
dpkg -i libmysqld-dev_5.7.29-1ubuntu18.04_amd64.deb
dpkg -i mysql-common_5.7.29-1ubuntu18.04_amd64.deb
dpkg -i mysql-community-source_5.7.29-1ubuntu18.04_amd64.deb
dpkg -i mysql-community-client_5.7.29-1ubuntu18.04_amd64.deb
apt-get install libaio1 libtinfo5
dpkg -i mysql-client_5.7.29-1ubuntu18.04_amd64.deb
apt-get install libmecab2
dpkg -i mysql-community-server_5.7.29-1ubuntu18.04_amd64.deb
dpkg -i mysql-server_5.7.29-1ubuntu18.04_amd64.deb
3.安装完成之后测试一下:
启动mysql服务:
service mysql start
进入MySQL:
mysql -u root -p
修改mysql的绑定端口
骤1. 打开mysql的配置文件,这里是默认安装的路径, vi /etc/mysql/mysql.conf.d/mysqld.cnf
步骤2. 在末行添加 port = 3307
步骤3. 保存后,重启mysql服务,service mysql restart
步骤4. 命令行登录进mysql,mysql -u root -p
步骤5. 查看开放的端口号,show variables like 'port';
边栏推荐
猜你喜欢

¥ 1-2 example 2.2 put the union of two sets into the linear table

Common methods of nodejs version upgrade or switching

VScode配置ROS开发环境:修改代码不生效问题原因及解决方法
![[nearly 10000 words dry goods] don't let your resume don't match your talent -- teach you to make the most suitable resume by hand](/img/2d/e3a326175f04826b9d9c96baedc3a5.png)
[nearly 10000 words dry goods] don't let your resume don't match your talent -- teach you to make the most suitable resume by hand

【成长必备】我为什么推荐你写博客?愿你多年以后成为你想成为的样子。

Mlx90640 infrared thermal imager temperature measurement module development notes (V)

Reflection 反射

Mlx90640 infrared thermal imaging sensor temperature measurement module development notes (II)

CCF 201503-4 network delay

ADC introduction
随机推荐
JS uses requestanimationframe to detect the FPS frame rate of the current animation in real time
¥ 1-1 SWUST OJ 941: implementation of consolidation operation of ordered sequence table
阿里MQTT物联网平台“云产品流转”实战——两片ESP32通过物联网平台实现远程互操作
Common methods of nodejs version upgrade or switching
Data viewing and parameter modification of multi-channel vibrating wire, temperature and analog sensing signal acquisition instrument
Subtotal of rospy odometry sinkhole
NPM详解
Debug篇快捷键入门
js利用requestAnimationFrame实时检测当前动画的FPS帧率
关闭brew执行命令时的自动更新
Yarn quick reference manual
Mlx90640 infrared thermal imager temperature measurement module development notes (4)
Armv8 datasheet learning
小程序企业发放红包功能
Dataset 和 Dataloader数据加载
~2 CCF 2022-03-1 uninitialized warning
ESP32连接阿里云MQTT物联网平台
JDBC操作数据库详解
JSP details
yarn速查手册