当前位置:网站首页>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

边栏推荐
- 4. Implementation Guide for GET_ENTITYSET Method of SAP ABAP OData Service Data Provider Class
- 第3章业务功能开发(线索关联市场活动,插入数据并查询)
- 网络通信编程基础,BIO,NIO
- 《nlp入门+实战:第七章:pytorch中数据集加载和自带数据集的使用》
- LeetCode--single linked list--146.LRU cache
- 分析少年派2中的Crypto
- 【CVPR2022】A Unified Query-based Paradigm for Point Cloud Understanding
- VSCode 插件大全
- First thoughts on the first attempt to avoid killing without a file (Part 1)
- ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
猜你喜欢

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

《张卫国的夏天》欢乐来袭,黄磊、刘奕君携手演绎“冤种”兄弟

The Ministry of Human Resources and Social Security announced that "database operation administrator" has become a new occupation, and OceanBase participated in the formulation of occupational standar

OneNote 教程,如何在 OneNote 中做笔记?

2022了你还不会『低代码』?数据科学也能玩转Low-Code啦!

WeChat Mini Program 31 Subcontracting Mechanism

笔记:fgets函数详解

336. Palindromic Pairs

02-SDRAM:自动刷新

品牌广告投放平台的中台化应用与实践
随机推荐
酷客导航助你商场轻松购物,业务办理不迷茫
相亲信息
打破原则!MongoDB 引入 SQL?
微信小程序如何开通支付功能?
数组和List互转
分布式之基石: 可靠性——What a tangled web we weave
《nlp入门+实战:第七章:pytorch中数据集加载和自带数据集的使用》
网络通信编程基础,BIO,NIO
爽朗的一天
240. Searching 2D Matrix II
JS教程之 ElectronJS 自定义标题栏
Second Best PyTorch Beginner Course; Thesis Writing Guide; Using µGo to Develop a Mini Compiler; Super Efficient Use of Transformer's Extension Library; Frontier Papers | ShowMeAI News Daily
The Ministry of Human Resources and Social Security announced that "database operation administrator" has become a new occupation, and OceanBase participated in the formulation of occupational standar
MySQL数据查询 - 联合查询
Qualcomm WLAN framework learning (31) -- Power save
官宣!苏州吴江开发区上线电子劳动合同平台
笔记:fgets函数详解
VSCode 插件大全
First thoughts on the first attempt to avoid killing without a file (Part 1)
VSCode配置终端为系统命令行