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

The method of installing mysql under Linux system

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

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "the method of installing mysql under Linux system". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian slowly and deeply to study and learn "the method of installing mysql under Linux system" together!

In this article, you will learn how to install mysql using the source code:

mysql package, placed in/usr/local/src, assuming my source package is called: .5.1.tar.gz

First create a user group and a user

groupadd mysql //Create mysql user groups

useradd -g mysql mysql //Create mysql account

Here is how to start installing:

1. Unzip the source package

tar -zxvf mysql.5.1.tar.gz

2. Enter the decompression package

Install, configure,make, install

./ configure --prefix=/usr/local/mysql -with-charset=gbk

make clean ;make(where make clean can not be, better to bring)

make install

www.2cto.com

cp support-files/my-medium.cnf /etc/my.cnf //copy my-medium.cnf file to/etc/directory and rename it my.cnf

4. Open my.cnf file with editor, find log-bin=mysql-bin, comment it out

:#log-bin=mysql-bin

5. Enter the installation directory:

bin/mysql_install_db --user=mysql

6. Set directory permissions

chown -R root . //Set directory permission properties

chown -R mysql /usr/local/mysql/var

chgrp -R mysql .

bin/mysqld_safe --user=mysql & //start mysql

The requested URL/usr/local/mysql/bin was not found on this server.

8. Execute mysql -uroot If the login is successful, the installation is successful.

Thank you for reading, the above is the "Linux system installation mysql method" of the content, after the study of this article, I believe we have a deeper understanding of the Linux system installation mysql method, the specific use of the situation also needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

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