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

Introduction to installation of MySQL

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

Share

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

This article introduces the relevant knowledge of "introduction to the installation of MySQL". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

MySQL installation

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

Install 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

Second, install the cmake compiler

Cmake version: cmake-3.1.1.

1. Download address: http://www.cmake.org/files/v3.1/cmake-3.1.1.tar.gz

$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

Third, install MySQL

MySQL version: mysql-5.6.15.

1. Download address: http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.15.tar.gz

$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 introduction to the installation of MySQL. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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