当前位置:网站首页>Install MySQL for Linux (package succeeded!!)
Install MySQL for Linux (package succeeded!!)
2022-06-22 22:01:00 【kjshuan】
1. install wget
yum install -y wget
2. Backup
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo_bak
3. Replace Alibaba cloud yum Source
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
4. eliminate YUM Cache and build cache
yum clean all
yum makecache
5. Inquire about mariadb And uninstall
rpm -qa | grep mariadb
rpm -e --nodeps mariadb-libs-5.5.65-1.el7.x86_64( Copy the current environment mysql Watch yourself mariadb Version of )
6. download mysql Of repo Source and install rpm package
cd /opt/
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
7. install mysql
yum install mysql-server -y
8. Grant authority
chown -R root:root /var/lib/mysql
chown root /var/lib/mysql/
9. restart mysql database
service mysqld restart
10. Sign in mysql Database and authorize
mysql -u root -p
use mysql
update user set Password = password('ok') where User='root';
GRANT ALL PRIVILEGES ON *.* TO [email protected]"%" IDENTIFIED BY "ok";11. Validate configuration and exit
flush privileges;
exit
12. install vim And set the character set
yum install -y vim
vim /etc/my.cnf
add to
character-set-server=utf8
13. restart mysql
service mysqld restart
14. Sign in mysql database
mysql -uroot -pok
边栏推荐
- 第025讲:字典:当索引不好用时 | 课后测试题及答案
- Jerry's problem of opening the near end of four channel call [chapter]
- Lesson 021: functions: lambda expressions | after class test questions and answers
- 92 match for several_ Recognize SQL write example
- 第027讲:集合:在我的世界里,你就是唯一 | 课后测试题及答案
- 7-9 超级玛丽
- 第022讲:函数:递归是神马 | 课后测试题及答案
- Introduce sparse activation mechanism! Uni perceiver MOE significantly improves the performance of generalist model
- 数据科学家是不是特有前途的职业?
- 第019讲:函数:我的地盘听我的 | 课后测试题及答案
猜你喜欢

CYCA少儿形体礼仪 深圳市培训成果考核圆满落幕

Microsoft edge browser will support network speed measurement, built-in calculator and unit conversion tool
![Jerry's music mode obtains the directory of playing files [chapter]](/img/2f/efb8a077e3e398cb3b14cfd98a8422.png)
Jerry's music mode obtains the directory of playing files [chapter]

Optimization solver | gurobi's Mvar class: a sharp tool for matrix modeling and an alternative solution to dual problems (with detailed cases and codes attached)

(DUC/DDC)数字上混频/正交下混频原理及matlab仿真
How to operate redis on the IntelliJ idea database console

万字长文 | 使用 RBAC 限制对 Kubernetes 资源的访问

Lesson 030: file system: introduce a big thing | after class test questions and answers

7-1 creating a binary tree from a preorder sequence

TC397 Flash
随机推荐
Linux安装Mysql(包成功!!)
7-1 creating a binary tree from a preorder sequence
Jerry's problem of opening the near end of four channel call [chapter]
localStorage、sessionStorage 和 cookie 的区别大总结
第016讲:序列 | 课后测试题及答案
Research hotspot - Official publicity! The release time of JCR zoning and impact factors will be determined in 2022!
7-9 super Mary
Lesson 018: function: flexible is powerful after class test questions and answers
KDD'22 | 阿里: 基于EE探索的精排CTR预估
IDC发布中国数据治理报告 亿信华辰第一
杰理之动态切换 EQ 文件【篇】
第022讲:函数:递归是神马 | 课后测试题及答案
Redis usage scenario sharing (project practice)
79- do not create desc descending index when you see order by XXX desc - there is book donation benefit at the end of the article
6-7 图的深度遍历-邻接表实现
第020讲:函数:内嵌函数和闭包 | 课后测试题及答案
6-3 二叉树的非递归遍历
微软 Edge 浏览器将支持网络测速,内置计算器和单位转换工具
300. longest increasing subsequence ●●
第031讲:永久存储:腌制一缸美味的泡菜 | 课后测试题及答案