当前位置:网站首页>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';
边栏推荐
- [tensorflow2 installation] tensorflow2.3-cpu installation pit avoidance guide!!!
- 无线中继采集仪的常见问题
- vant问题记录
- Introduction to Verdi Foundation
- See how a junior student of double non-2 (0 Internship) can get an offer from Alibaba and Tencent
- SystemVerilog syntax
- TensorFlow raw_ RNN - implement the seq2seq mode to take the output of the previous time as the input of the next time
- CCF 201604-2 Tetris
- ¥ 1-1 SWUST OJ 941: implementation of consolidation operation of ordered sequence table
- dp-851
猜你喜欢
随机推荐
工程仪器振弦传感器无线采集仪的采集数据发送方式及在线监测系统
Qt 6.2的下载和安装
~3 CCF 2022-03-2 travel plan
Probabilistic robot learning notes Chapter 2
[machine translation] scones -- machine translation with multi tag tasks
~2 CCF 2022-03-1 uninitialized warning
Use of dictionary tree
入住阿里云MQTT物联网平台
Common methods of JS digital thousand bit segmentation
vscode插件开发
多数相合问题总结
Introduction to armv8 general timer
Introduction to testbench
message from server: “Host ‘xxx.xxx.xxx.xxx‘ is not allowed to connect to this MySQL server“
车辆属性最近一次入库时间初始化生成sql脚本文件
Terminal definition and wiring of bsp3 power monitor (power monitor)
The way of code neatness -- hit the pain point directly
I2C也可总线取电!
Dataset 和 Dataloader数据加载
线程池的设计和原理









