当前位置:网站首页>开发那些事儿:Linux系统中如何安装离线版本MySQL?
开发那些事儿:Linux系统中如何安装离线版本MySQL?
2022-06-30 17:46:00 【TSINGSEE青犀视频】
TSINGSEE青犀视频聚焦于视频流媒体技术的研发与拓展,在视频能力与服务上,不断结合AI、大数据、边缘计算、物联网等新兴技术,丰富平台功能模块,触达用户的多样化需求。目前我们已经面向市场推出多元化的视频平台,如EasyCVR、EasyGBS、EasyDSS、EasyNVR等,能实现多类型设备接入、多协议支持、多格式视频流输出、多终端平台兼容。
今天和大家分享如何在Linux系统中安装离线版本MySQL,以下为安装步骤:
1、下载MySQL版本
选择对应的版本,我这边是centos系统,选择如下:
2、环境配置
1)监测本机是否存在mysql:
rpm -qa|grep -i mysql2)查找之前的MySQL目录,并使用rm -rf 文件夹名,删除find / -name mysql。
3、安装
1)解压下载后的版本:
tar -zxvf mysql-5.7.37-linux-glibc2.12-x86_64.tar.gz2)将解压后的MySQL移动到自己想要的位置。
4、安装数据库
1)在MySQL目录下新建data目录:
mkdir data2)在系统中新建/etc/my.cnf,文件内容如下,目录可改成本机的:
3)在MySQL目录下执行如下命令,初始化数据库:
./bin/mysqld --initialize --user=mysql --basedir=/data/software/mysql/ --datadir=/data/software/mysql/data/5、配置环境变量
1)打开vim /etc/profi,加入如下代码:
export PATH=$PATH:/data/software/mysql/bin2)刷新配置文件:
source /etc/profile6、启动MySQL
service mysql start出现如下图所示,说明启动成功。
TSINGSEE青犀视频的各个平台部署灵活,视频能力丰富且全面、能满足用户的多场景视频监控需求。平台凭借灵活的视频能力、可拓展性强、兼容度高、部署轻快等特征,已经运用在大量的项目中,如智慧工地、智慧工厂、智慧校园、平安校园、平安城市、明厨亮灶等等。感兴趣的用户可以前往演示平台进行体验或部署测试。
边栏推荐
- 拓维信息使用 Rainbond 的云原生落地实践
- Dlib library for face key point detection (openCV Implementation)
- 挖财账号开户安全吗?是靠谱的吗?
- Word——Word在试图打开文件时遇到错误的一种解决办法
- PyTorch学习(三)
- MRO industrial products procurement management system: enable MRO enterprise procurement nodes to build a new digital procurement system
- What if icloud photos cannot be uploaded or synchronized?
- 【TiDB】TiCDC canal_json的实际应用
- At present, the big guys are joining the two streams of flinksql, cdcmysql and Kafka, and the results are put into MySQL or KA
- System integration project management engineer certification high frequency examination site: prepare project scope management plan
猜你喜欢

Redis入门到精通01

Multipass Chinese document - setting graphical interface

Vulnerability recurrence ----- 35. Uwsgi PHP directory traversal vulnerability (cve-2018-7490)

TCP粘包问题

How to use AI technology to optimize the independent station customer service system? Listen to the experts!

屏幕显示技术进化史

Reading notes of "high EQ means being able to talk"

联想YOGA 27 2022,超强配置全面升级

Detailed single case mode

亲测flutter打包apk后大小,比较满意
随机推荐
Swin-Transformer(2021-08)
System integration project management engineer certification high frequency examination site: prepare project scope management plan
【TiDB】TiCDC canal_ Practical application of JSON
ForkJoinPool
联想YOGA 27 2022,超强配置全面升级
20220607跌破建议零售价,GPU市场正全面走向供过于求...
At present, the big guys are joining the two streams of flinksql, cdcmysql and Kafka, and the results are put into MySQL or KA
Dlib库实现人脸关键点检测(Opencv实现)
Dlib library for face key point detection (openCV Implementation)
Pytorch learning (III)
Four tips tell you how to use SMS to promote business sales?
20200525-生物技术-四川师范大学自考生物技术(本科)考试计划.txt
The online procurement system of the electronic components industry accurately matches the procurement demand and leverages the digital development of the electronic industry
LeetCode动态规划经典题(一)
Adhering to the concept of 'home in China', 2022 BMW children's traffic safety training camp was launched
服务器之间传文件夹,文件夹内容为空
Countdowncatch and completabilefuture and cyclicbarrier
torch.roll
rust配置国内源
What if the apple watch fails to power on? Apple watch can not boot solution!