当前位置:网站首页>Installing MySQL version 5.5 database for Linux (centos6)
Installing MySQL version 5.5 database for Linux (centos6)
2022-06-12 01:50:00 【I tested it first】
Environmental preparation
Linux(CentOS)、 install MySQL5.5, I have found a lot of information on the Internet , All need to be verified one by one , Is the installation successful ,
Also welcome to verify and correct my installation steps ;
1、 To mysql Download from the official website mysql Compiled binary installation package , On the download page Select Platform: Option selection linux-generic, Then pull the page to the bottom ,64 Bit system download Linux - Generic (glibc 2.5) (x86, 64-bit),32 Bit system download Linux - Generic (glibc 2.5) (x86, 32-bit)
2、 decompression 64 position mysql Binary installation files : tar -xvf mysql-5.5.52-linux2.6-x86_64.tar.gz;
3、 Copy the decompressed mysql Directory to the local software directory of the system : Carry out orders :cp mysql-5.6.17-linux-glibc2.5-i686 /usr/local/mysql -r
Be careful : Don't add /
4、 Add system mysql Group and mysql user : Carry out orders :groupadd mysql and useradd -r -g mysql mysql
5、 mount this database :
Enter the installation mysql Software Directory : Carry out orders cd /usr/local/mysql
Modify the current directory owner as mysql user : Carry out orders chown -R mysql:mysql ./
mount this database : Carry out orders ./scripts/mysql_install_db --user=mysql
Modify the current directory owner as root user : Carry out orders chown -R root:root ./
Modify the current data Directory owner is mysql user : Carry out orders chown -R mysql:mysql data
6、 start-up mysql Service and add startup mysql service :
Add startup : Carry out orders cp support-files/mysql.server /etc/init.d/mysql, Put the startup script in the boot initialization directory
start-up mysql service : Carry out orders service mysql start
Carry out orders :ps -ef|grep mysql notice mysql Service description started successfully , Pictured 
7、 modify mysql Of root User password ,root The initial password is empty : Carry out orders :./bin/mysqladmin -u root password ‘ password ’
8、 hold mysql The client is placed in the default path :ln -s /usr/local/mysql/bin/mysql /usr/local/bin/mysql
Be careful : It is recommended to use soft chain in the past , Don't copy package files directly , Easy to install multiple versions of mysql
9_、 Use command , Give Way windows The remote access linux-MySQL database _
mysql>grant all privileges on *.* to [email protected]“%” identified by “root”;
// Make changes effective
mysql>FLUSH PRIVILEGES;
边栏推荐
- In 2022, the internal promotion of the "MIHA Tour" golden, silver and silver social recruitment started in April and march! Less overtime, good welfare, 200+ posts for you to choose, come and see!
- Introduction to SVM
- Google 搜索广告系列设置前有哪些准备工作?
- Is the bidding price fixed for each click?
- Software engineering - system flow chart
- Database
- Operation of simulated examination platform of diazotization process examination question bank in 2022
- Huawei, this is too strong
- Various error reporting solutions encountered by Kali during Empire installation
- 括号生成(回溯)
猜你喜欢

Entity class dto to VO is converted through plug-in

"C'est plus sûr d'apprendre une technologie!" Hangzhou Campus Little Brother transfer software test, Hi - Ti 10K + double break!

Redis startup and shutdown commands

Is the bidding price fixed for each click?

Ce soir - là, j'ai battu mon collègue...

pca从0到1

"It's safer to learn a skill!" The little brother of Hangzhou campus changes to software testing, and likes to mention 10k+ weekend!

商城开发知识点

What are the advantages of adaptive search advertising?

Three main factors determining advertising quality
随机推荐
Freshman year: learning summary
Redis實現消息隊列的4種方案
MySQL高级部分知识点
2022 tool fitter (Advanced) recurrent training question bank and online simulation examination question bank source: YiDianTong official account of safety production simulation examination
Loop loop and CX
How to automatically color cells in Excel
Several visualization methods of point cloud 3D object detection results (second, pointpillars, pointrcnn)
如何让杀毒软件停止屏蔽某个网页?以GDATA为例
Invert words in a string (split, double ended queue)
[从零开始学习FPGA编程-20]:快速入门篇 - 操作步骤4-2-Altera Quartus II工具的快速使用(modelSim联合仿真、程序下载到Altera开发板)
php安全开发 12博客系统的 系统模块信息的修改
Redis cluster + sentinel mode + replicas
如何最大化的利用各种匹配方式? ——Google SEM
Why should a redis cluster use a reverse proxy? Just read this one
Operating mechanism of Google ads bidding
MySQL training report [with source code]
Data system provider Jidao technology joins dragon lizard community
“还是学一门技术更保险!”杭州校区小哥哥转行软件测试,喜提10K+双休!
Google Ads 的优势
LeetCode Algorithm 1791. Find the central node of the star chart