当前位置:网站首页>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;
边栏推荐
- Is the bidding price fixed for each click?
- Design practice of rongyun Im on electron platform
- Quatre schémas de mise en file d'attente des messages pour redis
- Applets 111111
- 联调这夜,我把同事打了...
- Tabulation v.s. Recursion With Memory (Dynamic Programming)
- pca从0到1
- 感知机从0到1
- php安全开发 12博客系统的 系统模块信息的修改
- Fatal error in launcher: unable to create process using
猜你喜欢

PyGame alien invasion

Wechat applet - a case of comparing the size of numbers

如何让杀毒软件停止屏蔽某个网页?以GDATA为例

Spiral matrix (skill)

The establishment and introduction of the announcement module of PHP development blog system

Operating mechanism of Google ads bidding

Point cloud perception algorithm interview knowledge points (I)

Subject knowledge and educational ability of information technology in the first half of 2019 – subjective questions

Redis实现消息队列的4种方案

Data system provider Jidao technology joins dragon lizard community
随机推荐
括号生成(回溯)
How to access the traifik proxy dashboard using the rancher desktop
Applets 111111
php安全开发 12博客系统的 系统模块信息的修改
LeetCode LCP 07. Deliver information
Blog recommended | bookkeeper - Apache pulsar high availability / strong consistency / low latency storage implementation
Tiobe - programming language ranking in June 2022
华为联运游戏或应用审核驳回:应用检测到支付serviceCatalog:X6
You don't need to show your talent. The method is here. You earn 9844 in 31 days as an we media
Operating mechanism of Google ads bidding
Three line code solution - Maximum sub segment and - DP
MySQL实训报告【带源码】
Introduction to SVM
决定广告质量的三个主要因素
Simulated 100 questions and simulated examination for safety management personnel of metal and nonmetal mines (small open pit quarries) in 2022
"C'est plus sûr d'apprendre une technologie!" Hangzhou Campus Little Brother transfer software test, Hi - Ti 10K + double break!
The resignation of the chief oracle engineer was furious: MySQL is a terrible database, so it is recommended to consider PostgreSQL!
Simulated 100 questions and simulated examination for safety management personnel of metal and nonmetal mines (small open pit quarries) in 2022
Pyinstaller packaging Exe (detailed tutorial)
How to automatically color cells in Excel