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

What is the command to install MySQL under Linux

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the relevant knowledge of what is the command to install MySQL under Linux, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Linux command to install MySQL. Let's take a look at it.

MySQL installation

The system platform of this tutorial: CentOS release 6.6 (Final) 64-bit.

Installation of compilation tools and library files yum-y install gcc gcc-c++ make autoconf libtool-ltdl-devel gd-devel freetype-devel libxml2-devel libjpeg-devel libpng-devel openssl-devel curl-devel bison patch unzip libmcrypt-devel libmhash-devel ncurses-devel sudo bzip2 flex libaio-devel II. Installation of cmake compiler

Cmake version: cmake-3.1.1.

1. Download address:

$wget http://www.cmake.org/files/v3.1/cmake-3.1.1.tar.gzmysql1

2. Extract the installation package

$tar zxvf cmake-3.1.1.tar.gz

3. Enter the installation package directory

$cd cmake-3.1.1

4. Compile and install

$. / bootstrap$ make & & make install III. Install MySQL

MySQL version: mysql-5.6.15.

1. Download address:

$wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.15.tar.gzmysql2

2. Extract the installation package

$tar zxvf mysql-5.6.15.tar.gz

3. Enter the installation package directory

$cd mysql-5.6.15

4. Compile and install

$cmake-DCMAKE_INSTALL_PREFIX=/usr/local/webserver/mysql/-DMYSQL_UNIX_ADDR=/tmp/mysql.sock-DDEFAULT_CHARSET=utf8-DDEFAULT_COLLATION=utf8_general_ci-DWITH_EXTRA_CHARSETS=all-DWITH_MYISAM_STORAGE_ENGINE=1-DWITH_INNOBASE_STORAGE_ENGINE=1-DWITH_MEMORY_STORAGE_ENGINE=1-DWITH_INNODB_MEMCACHED=1-DWITH_DEBUG=OFF-DWITH_ZLIB=bundled-DENABLED_LOCAL_INFILE=1-DENABLED_PROFILING=ON-DMYSQL_MAINTAINER_MODE=OFF-DMYSQL_DATADIR=/usr/local/webserver/mysql/data-DMYSQL_TCP_PORT=3306$ make & & make install

5. Check the mysql version:

$/ usr/local/webserver/mysql/bin/mysql-versionmysql3

At this point, the mysql installation is complete.

This is the end of the article on "what is the command to install MySQL under Linux". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what is the command to install MySQL under Linux". If you want to learn more, you are welcome to follow the industry information channel.

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

Development

Wechat

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

12
Report