Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install mysql in binary mode for linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how linux installs mysql using binary. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1. Download the binary file

Download mysql-5.6.36-linux-glibc2.5-i686.tar.gz on the official website.

2. Extract the file and move it to the / usr/local/mysql directory

Tar-zxvf mysql-5.6.36-linux-glibc2.5-i686.tar.gz

3. Create user groups and users and configure

Groupadd mysqluseradd mysql-g mysqlchown-R mysql/ usr/local/mysql/chgrp-R mysql/ usr/local/mysql/

4. Installation and initialization

# install mysql/usr/local/mysql/scripts/mysql_install_db-- user=root# configuration mysql startup file cp / usr/local/mysql/support-files/my-default.cnf / etc/my.cnf# add mysqld service to the system cp / usr/local/mysql/share/mysql/mysql.server / etc/init.d/mysqld# soft link the mysql command to the system command ln-s / usr/local/mysql/bin/mysql / usr/bin/mysql

5. Start the service test

Service mysqld startmysql-u root Thank you for your reading! This is the end of the article on "how to install mysql with binary in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report