当前位置:网站首页>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边栏推荐
- Tupu digital twin 3D wind farm, offshore wind power of smart wind power
- Lamp architecture that your girlfriend can read
- Query the size of each table in the database
- Is your PCB ground wire right? Why should we have a master land?
- 相机电源受干扰案例分析,严重影响画质
- Answer 02: why can Smith circle "allow left string and right parallel"?
- Mobile cloud jointly builds the capability base of information innovation cloud and helps the development of China's information innovation industry
- 千呼万唤,5G双卡双通到底有多重要?
- Case analysis of camera power supply disturbed, seriously affecting image quality
- 手机开户股票开户需要多久?在线开户安全么?
猜你喜欢

Intranet penetration token stealing

ctfshow php的特性

Online communication - the combination of machine learning and knowledge reasoning in trusted machine learning (Qing Yuan talk, issue 20, Li Bo)

QT布局管理器【QVBoxLayout,QHBoxLayout,QGridLayout】

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

The company recruited a tester with five years' experience and saw the real test ceiling

qYKVEtqdDg

Identify and stop the process that's listening on port 8080 or configure this application

接口的所有权之争

使用Jmeter进行性能测试及性能监控平台搭建
随机推荐
Codeforces Round #620 (Div. 2)ABC
华为手机通过adb安装APK提示“签名不一致,该应用可能已被修改”
MySQL事务及其特性与锁机制
Hapoxy-集群服务搭建
相机电源受干扰案例分析,严重影响画质
电感参数有哪些?怎么选择电感?
Hapoxy cluster service setup
一文读懂麦克风典型应用电路
Troubleshooting of datanode entering stale status
MySQL事务提交流程
查数据库中每张表的大小
Talk about the difference between redis cache penetration and cache breakdown, and the avalanche effect caused by them
What can the accelerated implementation of digital economy bring to SMEs?
Three minutes to learn how to retrieve the MySQL password
hands-on-data-analysis 第二单元 第四节数据可视化
数据库 实验二 查询
【网络通信 -- WebRTC】WebRTC 源码分析 -- 接收端带宽估计
ctfshow php的特性
Jetpack compose and material you FAQs
时间戳90K是什么意思?