当前位置:网站首页>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
边栏推荐
- Simply use the pagoda to build WordPress
- Customization of openfeign
- 新版kali切换最高账户
- 【LeetCode】23. Merge K ascending linked lists
- [OWT] OWT client native P2P E2E test vs2017 build 2: test unit construction and operation
- JS array de duplication, removing the same value
- Official announcement! The Hong Kong Zhuhai Macao Bridge is finally here!
- Even if you don't learn gradle, these common development operations are worth mastering
- 【owt】owt-client-native-p2p-e2e-test vs2017构建 4 : 第三方库的构建及链接p2pmfc.exe
- Form submit onclick and onsubmit
猜你喜欢

1-1VMware介绍
![[OWT] OWT client native P2P E2E test vs2017 build 2: test unit construction and operation](/img/b0/4ea8069a88ce19ca7dbfa67ac9fcba.png)
[OWT] OWT client native P2P E2E test vs2017 build 2: test unit construction and operation

【曾书格激光SLAM笔记】Gmapping基于滤波器的SLAM

选择排序法

新版kali切换最高账户

mysql常用指令

Jmeter- (V) simulated user concurrent login for interface test

mysql 数据恢复 (.ibdata1, bin log)

Analysis on the development of China's satellite navigation industry chain in 2021: satellite navigation is fully integrated into production and life, and the satellite navigation industry is also boo

The first batch of job hunting after 00: don't misread their "different"
随机推荐
Firewall and IP security policy configuration
Gx3001q UI instructions for upgrading 8-bit color to 16 bit color
January 17, 2022: word rule II. Give you a pattern and a character
Tcapulusdb Jun · industry news collection (V)
How to print array contents
Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]
[OWT] OWT client native P2P E2E test vs2017 build 2: test unit construction and operation
R tree of search tree
MySQL common instructions
SwiftUI 组件大全之使用 ScrollView 和 GeometryReader 创建动画 3D卡片 滚动效果
Apicloud native module, H5 module and multi terminal component tutorial
[OWT] OWT client native P2P E2E test vs2017 build 3: no test unit comparison, manually generate vs projects
The compatibility of remotefx schemes is related to multiple factors
An implementation of universal interface caching Middleware
Even if you don't learn gradle, these common development operations are worth mastering
Initialize MySQL Gorm through yaml file
What are the advantages and difficulties of introducing AI into ISP Technology
线上MySQL的自增id用尽怎么办?
Which insurance company is the most cost-effective for purchasing serious illness insurance?
[leetcode] sum of two numbers II