当前位置:网站首页>install mysql using script
install mysql using script
2022-07-29 22:16:00 【little brother】
1. Delete the previously installed Mysql
1. Check the running status of the MySQL service:
service mysql status
2. View mysql service
ps -ef|grep mysql
3. Close the mysql service
service mysql stop
4. Check the storage location of mysql installation package
5. Delete the above folder
rm -rf /etc/selinux/targeted/active/modules/100/mysql6. Check again to see if it is deleted
2. Install
1. Give permission to script
chmod 777 -R MySQL_Install.sh
2. Execute the script and wait for installation
./MySQL_Install.shSuccessful installation, remember the default password
3. Modify the default password of the database
At this time, we found an error when connecting to mysql, because mysql was not started
View mysql status through service mysqld status
service mysqld status
Start mysql
service mysqld start
Connect to mysql again, the login is successful at this time
4. Modify mysql default password
SET PASSWORD = PASSWORD('new password');ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;FLUSH PRIVILEGES;
5. Set all hosts to access the server's mysql through the root account
grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;flush privileges;
6. The development port 3306 can be accessed externally
firewall-cmd --permanent --zone=public --add-port=3306/tcp4. External connection test

边栏推荐
- 【CVPR2022】A Unified Query-based Paradigm for Point Cloud Understanding
- [HDLBits brush questions] Verilog Language (4) Procedures and More Verilog Features section
- 5 V booster charge 8.4 V chip
- 一 JS中Promise用法、二闭包的概念与用法、三对象创建的四种方式与区区别、四 如何声明一个类
- 酷客导航助你商场轻松购物,业务办理不迷茫
- 无文件落地免杀的初尝试思考(上)
- 刚重装的win7系统不能上网(深度系统安装步骤)
- 人社部公布“数据库运行管理员”成新职业,OceanBase参与制定职业标准
- The cornerstone of distributed: reliability - What a tangled web we weave
- 容器网络硬核技术内幕 (23) 权利,知识与责任
猜你喜欢

官宣!苏州吴江开发区上线电子劳动合同平台

第3章业务功能开发(线索关联市场活动,插入数据并查询)

240. Searching 2D Matrix II

ALBERT:A Lite BERT for Self-supervised Learning of Language Representations

《nlp入门+实战:第七章:pytorch中数据集加载和自带数据集的使用》

初识网络的简单概念

applet preview pdf

WeChat Mini Program 30 Customizing Templates and Obtaining User Login Credentials

爽朗的一天

SAP ABAP OData 服务 Data Provider Class 的 GET_ENTITYSET 方法实现指南试读版
随机推荐
Dry goods!Cooperative Balance in Federated Learning
【点云】M3DeTR: Multi-representation, Multi-scale, Mutual-relation 3D Object Detection with Transformers
容器网络硬核技术内幕 (小结-下)
什么是数据安全性?
数组和List互转
Huawei Enjoy 50 Pro evaluation: HarmonyOS blessing is smoother and safer
相亲信息
Fully automated machine learning modeling!The effect hangs the primary alchemist!
WeChat Mini Program 30 Customizing Templates and Obtaining User Login Credentials
02-SDRAM:自动刷新
1. Promise usage in JS, 2. The concept and usage of closures, 3. The difference between the four methods and areas of object creation, 4. How to declare a class
最小jvm源码分析
LeetCode--single linked list--146.LRU cache
AI全流程开发难题破解之钥
无文件落地免杀的初尝试思考(上)
MySQL Data Query - Simple Query
leetcode122. Best Time to Buy and Sell Stock II 买卖股票的最佳时机 II(简单)
【数据库】mysql日期格式转换
The sword refers to Offer II 097. Number of subsequences
解决报错 WARNING: IPv4 forwarding is disabled. Networking will not work.