当前位置:网站首页>CentOS 7安装Mysql5.6.37
CentOS 7安装Mysql5.6.37
2022-07-24 05:15:00 【kse_music】
CentOS 7不带Mysql数据库了,默认的数据库是MariaDB(Mysql的一个分支)。
安装mysql的话会和mariadb的文件冲突,所以需要先卸载掉mariadb
具体步骤:
卸载mariadb
rpm -qa|grep mariadb
rpm -e –nodeps mariadb-libs-5.5.37-1.el7_0.x86_64下载rpm安装文件
wget http://repo.mysql.com/mysql-community-release-el7.rpm执行rpm安装
rpm -ivh mysql-community-release-el7.rpmyum install mysql-server
安装完成后,启动Mysql。
systemctl start mysqld.service
初始无密码设置root密码。
update user set password=password(“123456”) where user=’root’;设置远程访问
grant all privileges on . to ‘root’@’%’ identified by ‘root’ with grant option;
flush privileges;开机自启动(非必须)。
systemctl enable mysqld.service
边栏推荐
- Industry relevance of stock price trend
- Tips for using the built-in variable props of BeanShell
- 1. Input a 100 point score from the keyboard and output its grade according to the following principles: score ≥ 90, Grade A; 80 ≤ score < 90, grade B; 70 ≤ score < 80, grade C; 60 ≤ score < 70, grade
- 利用a*启发式搜索解决迷宫寻路问题
- [Basic 6] - encapsulation and inheritance of classes, objects and classes
- 7. Find the sum of numbers between 100 and 300 that can be divided by 3.
- PXE efficient batch network installation
- 酒店IPTV数字电视系统解决方案
- Use of fiddler packet capturing tool
- 。单类型数字传感一个应用程.0。 Up- 开址在出厂
猜你喜欢

Heavy! The 2022 China open source development blue book was officially released

Do you want to have a robot that can make cartoon avatars in three steps?

PXE efficient batch network installation

Basic knowledge of MySQL database

线程的介绍

Ren Xudong, chief open source liaison officer of Huawei: deeply cultivate basic software open source and jointly build the root technology of the digital world

FRP intranet penetration service usage
![[Huang ah code] Introduction to MySQL - 3. I use select *, and the boss directly rushed me home by train, but I still bought a station ticket](/img/60/23fc79cf0e399265b4bd75159ad4d1.png)
[Huang ah code] Introduction to MySQL - 3. I use select *, and the boss directly rushed me home by train, but I still bought a station ticket

C primer plus learning notes - 6. Arrays and pointers

Beginners' preparation for the Blue Bridge Cup (University Programming learning history records, topic ideas for students who need to prepare for the Blue Bridge Cup)
随机推荐
Crazy God redis notes 09
Execution sequence of finally and return
NFS shared services
Mysq Database Constraints
Use of fiddler packet capturing tool
13. Write a program, in which a user-defined function is used to judge whether an integer is a prime number. The main function inputs a number and outputs whether it is a prime number.
[basic 7] - exceptions, capture and customize exceptions
The difference between run and start in thread class
JMeter record the BeanShell written into excel instance caused by an automatic data generation
Ben, reducing online importance is the same. Abnormal instance CP operation found
太空可再生能源的代币化
PPPoE gateway simulation environment setup
Pointer learning diary (I)
Memorandum 2022
How to set up an internal wiki for your enterprise?
【深度学习】(三)图像分类
JMeter FAQs
1. There is a fractional sequence: 2/1, 3/2, 5/3, 8/5, 13/8,... Program to sum the first 20 items of this sequence.
IDEA:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
SSH service