当前位置:网站首页>Setting up a cluster environment under Linux (2) -- installing MySQL under Linux
Setting up a cluster environment under Linux (2) -- installing MySQL under Linux
2022-06-26 00:12:00 【Daily log of the great demon king】
1. Check if... Is installed mysql
Run the command :rpm -qa | grep mysql
The first installation will show :mysql-libs-5.1.71-1.el6.i686
2. Unload the system mysql
Run the command :rpm -e --nodeps mysql-libs-5.1.71-1.el6.i686
3. Upload mysql
Recommend a tool (FileZilla) You can directly drag
4. stay /usr/local/ Create a mysql
Run the command :mkdir mysql
5. Copy mysql To mysql Under the table of contents
Run the command :cp /root/Mysql-XXX.gz ./mysql
6. decompression tar
Run the command :tar -xvf Mysql-XXX
After decompression, there will be several rpm file
7. install
install mysql Server side of
Run the command :rpm -ivh MySQL-server-XXX-XXX.rpm
Be careful : First login mysql There is no time without a password In the future
install mysql The client of
Run the command :rpm -ivh MySQL-client-XXX-XXXX.rpm
8. see mysql Service status of
Run the command :service mysql status
start-up mysql
Run the command :service mysql start
stop it mysql
Run the command :service mysql stop
9. modify mysql Of root Password
Sign in :mysql -uroot
Change Password :
Run the command :use mysql;
Run the command :update user set password = password('1234') where user = 'root';
Run the command :flush privileges;( Refresh means )
Log back in :mysql -uroot -p
10. Turn on Remote Access
Run the command :grant all privileges on *.* to 'root' @'%' identified by '1234';
Run the command :flush privileges;
11. Open the firewall port 3306 sign out mysql
3306 Port release
Run the command :/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
Add this setting to the rules of the firewall
Run the command :/etc/rc.d/init.d/iptables save
It can be used navicat premium stay Windows Remote access test under the environment
12: Set up mysql The service of starts with the start of the system
Add to system services :
Run the command :chkconfig --add mysql
Auto start :
Run the command :chkconfig mysql on
边栏推荐
- 10.4.1、數據中臺
- Explain in detail the three types of local variables, global variables and static variables
- ffmpeg 版本切换
- Hand made pl-2303hx USB to TTL level serial port circuit_ Old bear passing by_ Sina blog
- 被新冠后遗症困住15个月后,斯坦福学霸被迫缺席毕业典礼,现仍需每天卧床16小时:我本该享受20岁的人生啊...
- Prototype chain test questions in JS --foo and getname
- redux工作流程+小例子的完整代码
- no_ Expand and use_ concat
- Shenzhen Taipower: the way of "communication" of the United Nations
- Network connection verification
猜你喜欢

文獻調研(三):數據驅動的建築能耗預測模型綜述

(Reprint) visual explanation of processes and threads

Circuit de fabrication manuelle d'un port série de niveau USB à TTL pour PL - 2303hx Old bear passing Sina blog

深圳台电:联合国的“沟通”之道

How postman tests interfaces that require login

Literature research (III): overview of data-driven building energy consumption prediction models

安装PSU的时候/usr/bin/ld:warning: -z lazyload ignore
![Bit Compressor [蓝桥杯题目训练]](/img/d5/231d20bf4104cc2619b2a4f19b605c.png)
Bit Compressor [蓝桥杯题目训练]

EBS R12.2.0升级到R12.2.6

yolov5 提速多GPU训练显存低的问题
随机推荐
ffmpeg 版本切换
Rocket message storage
7. common instructions (Part 2): common operations of v-on, v-bind and V-model
Transformation of communication protocol between Siemens S7-200PLC and Danfoss inverter_ Old bear passing by_ Sina blog
Mysql5.7 is in the configuration file my Ini[mysqld] cannot be started after adding skip grant tables
19c安装psu 19.12
My blog is 2 years old and 167 days old today. I received the pioneer blogger Badge_ Old bear passing by_ Sina blog
Recommended system design
Read CSV file data in tensorflow
(Reprint) visual explanation of processes and threads
Introduction to anchor free decision
Detailed explanation of redis
贴片加工厂家讲解__ICT是什么?主要测试什么?ICT测试的优缺点?
Lazy people teach you to use kiwi fruit to lose 16 kg in a month_ Old bear passing by_ Sina blog
Rocket之消息存储
Use Coe_ load_ sql_ profile. SQL fixed execution plan
Smt贴片机保养与维护要点
redis之详解
Topic36——53. Maximum subarray and
什么是微服务