当前位置:网站首页>Centos7 installing MySQL and configuring InnoDB_ ruby
Centos7 installing MySQL and configuring InnoDB_ ruby
2022-06-23 03:40:00 【Frost holding】
Content description : Aliyun server centos 7 Installation on system MySQL And configuration innodb_ruby
Reference material :
Silicon Valley -p99 Linux Lower installation MySQL 5.7 edition
Dark horse -p65 MySQL install Linux edition
Try to install GPG v2 and then fetch the public key:
1. centos7 install MYSQL
1.1 Download address and version
Centos choice Red Hat
Version selection :
rpm package, rpm bundle ,Compressed TAR Archive
among :rpm bundle A version is a collection of all packages , Include server, client etc.
Compressed TAR Archive Source code installation , Need to compile
1.2 The installation process
① download tar After package , Upload to MobaXterm On , Use -xvf decompression
tar -xvf mysql-5.7.38-1.el7.x86_64.rpm-bundle.tar
② adopt ls List the... Under the unzipped directory .rpm file
Install in the following order
rpm -ivh mysql-community-common-5.7.38-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.38-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-compat-5.7.38-1.el7.x86_64.rpm
rpm -ivh mysql-community-devel-5.7.38-1.el7.x86_64.rpm
yum install openssl-devel
rpm -ivh mysql-community-client-5.7.38-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.38-1.el7.x86_64.rpm
install mysql-community-lib When , There may be a mistake
error: Failed dependencies:
mysql-community-common(x86-64) >= 5.7.9 is needed by mysql-community-libs-5.7.38-1.el7.x86_64
mariadb-libs is obsoleted by mysql-community-libs-5.7.38-1.el7.x86_64
reinstall mysql-community-common The same error will be reported
perform yum remove mysql-libs Then again from mysql-community-common Start execution
③ adopt mysqld start-up MySQL The server
systemctl start mysqld
④ adopt mysql Client connection MySQL
mysql -u root -p
After entering the above command , You need to enter a password , But the password has not been set yet , Can be found in mysqld.log View password in
⑤ adopt mysqld.log Check the initial password
cat /var/log/mysqld.log
cat For viewing mysqld.log journal , In the log content [email protected]: The following part is the initial password
After entering the initial password , Can successfully connect MySQL, Next, you have to change the password you set for yourself
⑥ Modify password authentication properties
Come to a conclusion :MySQL There are certain requirements for password strength , Therefore, you need to modify two properties
validate_password_policy and validate_password_length
There's a hole in this place , That's it 5.7 Version and 8.0 There are minor differences in the version here
MySQL5.7 edition :
set global validate_password_policy=0;
set global validate_password_length=1;
and MySQL8.0 edition : The last one _ Instead of .
set global validate_password.policy=0;
set global validate_password.length=1;
According to the show variables like 'validate_password%'; See how these two attributes are written 
⑦ adopt alter Set login password
alter user 'root'@'localhost' identified by 'xxxxxx';
After changing the password ,exit Current connection , Use the new password to verify whether you can successfully log in
⑧ Open cloud server 3306 port
⑨ Create a remote connection root user
[email protected] Only native connections are supported
create user 'root'@'%' identified with mysql_native_password by 'xxxxxx';
2. install innodb_ruby
innodb_ruby I don't know yet , First two links
innodb File analysis tools innodb_ruby
In depth understanding of MySQL–innodb_ruby Tools
If you have any ruby2.2 Environment above version , Execute the following statement to complete the installation
gem install --user-install innodb_ruby
innodb_space --help # A test can show a lot of help
If an error is reported during direct installation
[[email protected] ~]# sudo gem install innodb_ruby
sudo: gem: command not found
I don't know anything about this dish ,ruby
Last reliable link , Close test effectively , My guest, you can move the link
2.1 install ruby
① see ruby edition , And check whether it is installed
ruby -v
② install ruby
yum -y install -y ruby
complete! Successful installation
2.2 ruby Version update
Above installation ruby after , You still need to upgrade the version first , Otherwise, it will report an error
[[email protected] ~]# sudo gem install innodb_ruby
Fetching: bindata-2.4.10.gem (100%)
Successfully installed bindata-2.4.10
Fetching: rake-13.0.6.gem (100%)
ERROR: Error installing innodb_ruby:
rake requires Ruby version >= 2.2.
① install ruby Dependency package
yum install gcc-c++ patch readline readline-devel zlib zlib-devel \
libyaml-devel libffi-devel openssl-devel make \
bzip2 autoconf automake libtool bison iconv-devel sqlite-devel
② Add alicloud's gem Source
gem sources -a http://mirrors.aliyun.com/rubygems/ -- Add alicloud image address
③ To get the key
There was no success in obtaining the key here , It may be a little different from the previous installation of the original blogger
Try to install GPG v2 and then fetch the public key:
according to github On wtmitchell3 commented on 3 Sep 2021 User comments resolved successfully
The next one is connected
④ install rvm
curl -sSL https://get.rvm.io | bash -s stable
The picture below appears , Successful installation 
⑤ send rvm.sh take effect
source /etc/profile.d/rvm.sh
⑥ rvm list known List the available ruby edition

⑦ install ruby 2.7 edition
rvm install 2.7
Last appearance :Install of ruby-2.7.2 - #complete Successful installation
⑧ install innodb_ruby
gem install innodb_ruby
⑨ Verify that the installation was successful
innodb_space --help
summary : Originally planned to install the source code MySQL Of , As a result, I didn't understand it during installation , In addition, the goal of debugging source code is not clear
In addition, I really admire and thank the centos7 install ruby 2.6.3 The author of
install innodb_ruby I want to try to analyze redo_log, Otherwise, let's analyze .ibd file ,
But when I encountered problems during the installation, I was thinking about the unclear solution , Value is not worth the time it takes to continue because the installation failed
After looking for many blogs , At the beginning, I saw the author say that it took 3 Time of day , The brain suddenly became clear , It doesn't matter whether it's worth it or not , It's important to solve the problem
Recent learning MySQL, notice MySQL How it works The author's self mockery is not very outstanding , But to find out MySQL The problem of ,
Resignation writing , It can be inferred from the preface that this period of time will be at least two years
In the process of reading , Can deeply understand the author mentioned In order to speak out , Make it clear , Keep walking back and forth on the ground The kind of painstaking feeling
Really? , Here is the purest spiritual pursuit
边栏推荐
- Flink practice tutorial: advanced 7- basic operation and maintenance
- Easynvr is displayed online after cascading the upper platform, but what is the reason for the video playback timeout?
- WordPress modifying fixed links and pseudo statics
- Heavyweight review: strategies for reliable fMRI measurements
- 1058 multiple choice questions (20 points)
- 第一批00后下场求职:不要误读他们的“不一样”
- [OWT] OWT client native P2P E2E test vs2017 build 2: test unit construction and operation
- Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]
- 【LeetCode】23. 合并K个升序链表
- 【贪心】leetcode991. Broken Calculator
猜你喜欢

JS Part 4

直接插入排序

1058 multiple choice questions (20 points)

【二分】leetcode1011. Capacity To Ship Packages Within D Days

直接插入排序

Svn local computer storage configuration

1-1VMware介绍

Insert sort directly
![Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]](/img/81/4d3cb059f700dd9243645e64023be7.jpg)
Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]
![[Zeng shuge's laser slam notes] gmapping filter based slam](/img/93/b940ad95508d1c0d23642022df37f2.png)
[Zeng shuge's laser slam notes] gmapping filter based slam
随机推荐
Goframe framework: quick creation of static file download web service
RTOS system selection for charging point software design
JSON. Function of the stringify() optional parameter
Build information query applet by using micro build
How to print multiple barcode labels on one sheet of paper
Auto rename when uploading pictures on WordPress media
Know res.send() and res.end() of Express
Which insurance company is the most cost-effective for purchasing serious illness insurance?
Gakataka student end to bundle Version (made by likewendy)
d重载嵌套函数
JS remove first character of string
How to implement collection sorting?
An implementation of universal interface caching Middleware
软件项目管理 8.4.软件项目质量计划
What about the high cost of storage system? The original computer room can save so much money!
JS Part 4
What are the advantages of the completely free and open source flutter? How to learn about flutter?
centos7 安装 MySQL 及配置 innodb_ruby
Parsing the implementation of easygbs compatible token as parameter passing
Fetch request details