当前位置:网站首页>MySQL installation, configuration and uninstall
MySQL installation, configuration and uninstall
2022-06-23 17:31:00 【User 7353950】
Mysql Installation configuration ( be based on Centos7)
install mysql database
[[email protected] ~]# wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
[[email protected] ~]# yum -y install mysql57-community-release-el7-9.noarch.rpm
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] ~]# yum -y install mysql-serverStart database
[[email protected] ~]# systemctil start mysqldQuery initialization database password
[[email protected] ~]# grep 'passowrd' /var/log/mysql.log
-- According to the [email protected]: *** Is the initial database login password Log in to the database
[[email protected] ~]# mysql -uroot -p
[[email protected] ~]# password:Set the password
mysql> set password for user name @localhost = password(' New password ');Check password settings
mysql> show variables like 'validate_password%';Change the password level to low
mysql> set global validate_password_policy=LOW;The minimum length of password change is 6 position
mysql> set global validate_password_length=6;Set a new password for the database
mysql> set password for 'root'@'localhost' = password('bigdata');Turn on Remote Access database
mysql> grant all privileges on *.* to 'root'@'%' identified by 'bigdata' with grant option;mysql> flush privileges;Mysql Complete uninstall of ( be based on Centos7)
Query and mysql Relevant rpm package
[[email protected] ~]# rpm -qa |grep -i mysql
mysql57-community-release-el7-9.noarch
mysql-community-client-5.7.32-1.el7.x86_64
mysql-community-libs-5.7.32-1.el7.x86_64
mysql-community-libs-compat-5.7.32-1.el7.x86_64
mysql-community-common-5.7.32-1.el7.x86_64
mysql-community-server-5.7.32-1.el7.x86_64Use yum remove Command to uninstall these packages
[[email protected] ~]# yum remove mysql57-community-release-el7-9.noarch
[[email protected] ~]# yum remove mysql-community-client-5.7.32-1.el7.x86_64
[[email protected] ~]# yum remove mysql-community-libs-5.7.32-1.el7.x86_64
[[email protected] ~]# yum remove mysql-community-libs-compat-5.7.32-1.el7.x86_64
[[email protected] ~]# yum remove mysql-community-common-5.7.32-1.el7.x86_64
[[email protected] ~]# yum remove mysql-community-server-5.7.32-1.el7.x86_64lookup mysql And delete the relevant directories
[[email protected] ~]# find / -name mysql
/etc/selinux/targeted/active/modules/100/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/usr/share/mysqlRemove residue
[[email protected] ~]# rm -rf /etc/selinux/targeted/active/modules/100/mysql
[[email protected] ~]# rm -rf /var/lib/mysql
[[email protected] ~]# rm -rf /var/lib/mysql/mysql
[[email protected] ~]# rm -rf /usr/share/mysqlDelete /var/log/mysqld.log
[[email protected] ~]# rm -rf /var/log/mysqld.log
-- If you don't delete this file , Will result in newly installed mysql Unable to survive new password , Cause you can't log in mysql边栏推荐
- [qsetting and.Ini configuration files] and [create resources.qrc] in QT
- 图扑数字孪生 3D 风电场,智慧风电之海上风电
- Date to localdatetime
- [go] calling Alipay to scan code for payment in a sandbox environment
- Redis cluster operation method
- hands-on-data-analysis 第二单元 第四节数据可视化
- Practice sharing of chaos engineering in stability management of cloud native Middleware
- C. Product 1 Modulo N-Codeforces Round #716 (Div. 2)
- QT layout manager [qvboxlayout, qhboxlayout, qgridlayout]
- Tupu software builds smart city with lightweight modeling
猜你喜欢

Network remote access raspberry pie (VNC viewer)

Tupu digital twin 3D wind farm, offshore wind power of smart wind power

Jetpack compose and material you FAQs

【网络通信 -- WebRTC】WebRTC 源码分析 -- PacingController 相关知识点补充

酒店入住时间和离店时间的日期选择

How to use SQL window functions

接口的所有权之争

I successfully joined the company with 27K ByteDance. This interview notes on software testing has benefited me for life

内网渗透令牌窃取

【30. 串联所有单词的子串】
随机推荐
MySQL transaction and its characteristics and locking mechanism
Interface ownership dispute
bypassuac提权
How to select an oscilloscope? These 10 points must be considered!
Comparison of asemi Schottky diode and ultrafast recovery diode in switching power supply
Get first and last days by year
Here comes the official zero foundation introduction jetpack compose Chinese course!
手机开户股票开户需要多久?在线开户安全么?
Elk log collection system deployment
What does the timestamp 90K mean?
DataNode进入Stale状态问题排查
ABP framework - data access infrastructure (Part 2)
Google Play Academy 组队 PK 赛,火热进行中!
How to choose an account opening broker? Is it safe to open an account online now?
I successfully joined the company with 27K ByteDance. This interview notes on software testing has benefited me for life
[untitled] Application of laser welding in medical treatment
C#与数据库连接
ELK日志收集系统部署
QT布局管理器【QVBoxLayout,QHBoxLayout,QGridLayout】
你的PCB地线走的对吗?为什么要有主地?