当前位置:网站首页>Liunx installing MySQL
Liunx installing MySQL
2022-06-22 22:09:00 【Gu Bei!】
One 、yum install
rpm -qa | grep mysqlcat /etc/redhat-release
wget https://dev.mysql.com/get/mysql80-community-release- el7-3.noarch.rpmsudo rpm -Uvh mysql80-community-release-el7-3.noarch.rpm yum repolist all | grep mysqlUse MySQL Yum Repository install MySQL, The latest stable version will be selected by default
05. install mysql
sudo yum install mysql-community-serversystemctl start mysqld.servicestop it mysql
systemctl stop mysqld.servicesystemctl restart mysqld.serviceTwo 、 Manual installation
rpm -qa | grep mariadb2. uninstall
yum remove mariadb-libs 3. Unzip the file
tar -xvf mysql-8.0.27-1.el7.x86_64.rpm-bundle.tar4. install mysql
rpm -ivh …… -c --nodeps --force rpm -ivh mysql-community-common-8.0.27-1.el7.x86_64.rpm -c --nodeps --force
mysql-community-libs
rpm -ivh mysql-community-libs-8.0.27-1.el7.x86_64.rpm -c --nodeps --force

mysql-community-client
rpm -ivh mysql-community-client-8.0.27-1.el7.x86_64.rpm -c --nodeps --force
mysql-community-server
rpm -ivh mysql-community-server-8.0.27-1.el7.x86_64.rpm -c --nodeps --force
rpm -qa|grep mysql
5. initialization mysql
mysqld --initialize;Generate mysql Initialization password
chown mysql:mysql /var/lib/mysql -R;Turn on mysql service
systemctl start mysqld.service;start-up mysql
systemctl enable mysqld;View the database default follow-up password
cat /var/log/mysqld.log | grep password![]()
Change Password
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
Open the firewall port
firewall-cmd --zone=public --add-port=3306/tcp --permanentservice iptables restart
systemctl restart firewalld
Create user
create USER [email protected]'%' IDENTIFIED BY 'smy123';
Grant authority
grant all on *.* to [email protected]'%';
边栏推荐
- 90- review of several recently optimized Oracle databases
- 自助图书馆系统-Tkinter界面和openpyxl表格综合设计案例
- 【路径规划】第一周: 路径规划 开源代码汇总(ROS) 版本
- HarmonyOS应用开发培训第二次
- Lesson 029: Documents: a task? After class test questions and answers
- 第031讲:永久存储:腌制一缸美味的泡菜 | 课后测试题及答案
- Linux安装Mysql(包成功!!)
- 6-1 二叉搜索树的操作集
- IDC publie le rapport sur la gouvernance des données en Chine
- The third training of Hongmeng
猜你喜欢

What is a data asset? How should data asset management be implemented?

7-1 creating a binary tree from a preorder sequence

勒索病毒横行下设备该如何进行加密防护

第030讲:文件系统:介绍一个高大上的东西 | 课后测试题及答案

Lesson 029: Documents: a task? After class test questions and answers

SPA项目开发之CRUD+表单验证

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)

Lesson 018: function: flexible is powerful after class test questions and answers

SPA项目开发之登录注册

不同网络结构的特征也能进行对比学习?蚂蚁&美团&南大&阿里提出跨架构自监督视频表示学习方法CACL,性能SOTA!
随机推荐
PMP Exam admission ticket problems and precautions in June, which must be read by candidates
How to operate redis on the IntelliJ idea database console
牛客 52次月赛 C 说谎的机器 (区间赋值操作由O(n^2)转为O(n)的复杂度)
Jerry's plug-in 4m flash to view the processing method with a size of only 1m on the PC [chapter]
The interception of Chinese and English strings in Oracle database is different
LeetCode 每日一题——513. 找树左下角的值
CVPR2022 | 用于重采图像的特征解耦学习与动态融合
6-5 图的深度遍历-邻接矩阵实现
Share deadlock problems encountered in insert into select (project practice)
VS代码一键整理快捷键
数据科学家是不是特有前途的职业?
Capital and share increase of avita technology under Chang'an is settled: Ningde times will hold about 24%!
Query es page subscript exceeds 10000
二级造价工程师考前必备15个知识点来了!祝你旗开得胜!
大不列颠泰迪熊加入PUBG 手游
校园跑腿管理端APP—陕西格创
6-1 二叉搜索树的操作集
[database] SQL Server quickly creates tables to simulate departments, courses, teachers, students and scores
RealNetworks vs. Microsoft: the battle in the early streaming media industry
Lesson 023 and 024: recursion: these little bunnies, Hanoi Tower after class test questions and answers