当前位置:网站首页>Linux安装mysql数据库详解
Linux安装mysql数据库详解
2022-06-11 00:29:00 【向上的狼】
Mysql的下载地址
一、安装Mysql依赖【perl net-tools】

这里需要你等待一段时间.
二、卸载mariadb
找到这个文件, 下一个命令要用这个文件

三、安装mysql
这里就开始把你下载的mysql开始安装
问: 如何把window系统中下载好的应用传到Linux系统中呢?
这里可以看我的这篇博客: Linux和Window系统之间的数据传输详解_向上的狼的博客-CSDN博客
将Window系统中下载好的mysql(记住这里是Linux版的压缩包, 不要下的Window系统版本的) 移到Linux系统后输入

命令: tar -xvf mysql-8.0.11-1.el7.x86_64.rpm-bundle.tar (这个版本号看你自己下载的, 解压这个压缩包)

然后会得到里面很多个压缩包.
命令: 分别对这其中四个压缩包进行解压, 记住顺序不要错 (这个版本就是你自己下载的那个版本)
- rpm -ivh mysql-community-common-8.0.11-1.el7.x86_64.rpm
- rpm -ivh mysql-community-libs-8.0.11-1.el7.x86_64.rpm
- rpm -ivh mysql-community-client-8.0.11-1.el7.x86_64.rpm
- rpm -ivh mysql-community-server-8.0.11-1.el7.x86_64.rpm

四、启动mysql
五、查找密码并登陆Mysql
命令: cat /var/log/mysqld.log | grep password
![]()
这个就是初始密码, 把它复制下来, 保存.

利用刚刚保存的密码登录进去.
六、修改Mysql密码 8.0版本输入命令(这里密码改为123456)

命令: set global validate_password.length=6;



新权限

注: #----------修改Mysql密码 5.7版本输入命令:set global validate_password_policy=LOW;set global validate_password_length=6
七、修改Mysql链接地址(让其可以通过mysql可视化软件连接)




命令: systemctl restart mysqld;

这个命令可能有的时候会有问题, 可以多试试几次
八、最后就通过可视化软件连接, 我这里用的是SQLyog

这个MySql主机地址就是你Linux的ip地址, 用户名: root, 密码123456

这就是Linux安装mysql的全部过程了,希望能够帮你解决这个问题.
边栏推荐
- 2.2. Ros+px4 simulation multi-point cruise flight - Square
- A/B机器正常连接后, B机器突然重启, 问A此时处于TCP的 什么状态?如何消除服务器程序中的这个状态?
- 立个flag--重构promise
- ROS parameter server
- [ongoing update...] 2021 National Electronic Design Competition for college students (III) interpretation of the anonymous four axis space developer flight control system design
- HandlerMethodArgumentResolver(参数解析器)的作用+使用小案例
- Record the packaging of the googlechrome browser plug-in
- 北京房山区高新技术企业培育支持标准,补贴10万
- ROS参数服务器
- SAS判别分析(Bayes准则和proc discrim过程)
猜你喜欢

如何使用自定义注解进行参数校验

Inventory management and strategy mode

PX4从放弃到精通(二十四):自定义机型

Middleware_ Redis_ 05_ Persistence of redis

Projet Visualisation et analyse des données sur les épidémies basées sur le Web crawler

Once you know these treasure websites, you can't live without them!!!

Function of barcode fixed assets management system, barcode management of fixed assets

Web3 ecological decentralized financial platform sealem Finance

Project_ Visual analysis of epidemic data based on Web Crawler

SAS主成分分析(求相关阵,特征值,单位特征向量,主成分表达式,贡献率和累计贡献率以及进行数据解释)
随机推荐
北京中国专利奖申报流程介绍,补贴100万
項目_基於網絡爬蟲的疫情數據可視化分析
北京密云区高新技术企业培育支持标准,补贴10万
The emperors of the Ming Dynasty
Brief description of custom annotations
SAS discriminant analysis (Bayes criterion and proc discrim process)
HandlerMethodArgumentResolver(参数解析器)的作用+使用小案例
Introduction to the application process of Beijing China Patent Award, with a subsidy of 1million yuan
焱融看|混合云环境下,如何实现数据湖最优存储解决方案
IRS应用发布之十五:应用安全自测指南
Middleware_ Redis_ 05_ Persistence of redis
1.6、 PX4初始化校准
1.4PX4程序下载
Px4 installation tutorial (VI) vertical fixed wing (tilting)
北京中国专利奖政策支持介绍,补贴100万
Bad RequestThis combination of host and port requires TLS.
Clean up the broken artifacts data (.lastUpdated files) and reload the project. Problem resolution
云呐|PDA无线固定资产盘点管理系统
2022 recognition requirements for new technologies and new products (services) in Huairou District, Beijing
Yunna PDA wireless fixed assets inventory management system