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

A brief introduction to the compilation and installation method of mysql5.6

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

Share

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

Next, let's learn about the compilation and installation method of mysql5.6. I believe you will benefit a lot after reading it. The text is not much in essence. I hope the compilation and installation method of mysql5.6 is what you want.

Mysql wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.33.tar.gz

Tar-zxvf mysql-5.6.33.tar.gz

Download the compilation tool wget http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz

Tar-zxvf cmake-2.8.5.tar.gz

Cd cmake-2.8.5

Install the compilation tool. / bootstrap-- prefix=/usr/local/cmake

Sudo gmake & & sudo gmake install

Make a soft chain as the global variable ln-s / usr/local/cmake/bin/cmake / usr/bin

Download the Boost library wget http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz

Tar-zxvf boost_1_59_0.tar.gz

Mkdir / usr/local/boost

Mv boost_1_59_0/* / usr/local/boost

Sudo groupadd mysql

Sudo useradd-g mysql mysql

Cd mysql-5.6.33

Install the necessary tools yum-y install ncurses-devel

Compile and install mysql cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-DMYSQL_DATADIR=/usr/local/mysql/data-DEXTRA_CHARSETS=all-DDEFAULT_CHARSET=utf8-DDEFAULT_COLLATION=utf8_general_ci-DDEFAULT_COLLATION=utf8_general_ci-DMYSQL_TCP_PORT=3306-DMYSQL_USER=mysql-DWITH_MYISAM_STORAGE_ENGINE=1-DWITH_INNOBASE_STORAGE_ENGINE=1-DWITH_ARCHIVE_STORAGE_ENGINE=1-DWITH_BLACKHOLE_STORAGE_ENGINE=1-DWITH_MEMORY_STORAGE_ENGINE=1-DWITH_BOOST=/usr/local/boost

Compilation error requires deletion of rm CMakeCache.txt recompilation

Sudo make & & sudo make install mysql installation is complete

Cd / usr/local/mysql/scripts/

Sudo. / mysql_install_db-user=mysql-basedir=/usr/local/mysql-datadir=/usr/local/mysql/data

Modify configuration sudo vi / usr/local/mysql/my.conf

Basedir = / usr/local/mysql datadir = / usr/local/mysql/data

Socket = / tmp/mysql.sock

Cd / usr/local/mysql/support-files

Sudo cp mysql.server / etc/rc.d/init.d/mysqld

Add chkconfig started with the system-- add mysqld

Start and complete sudo service mysqld start

After reading this article on how to compile and install mysql5.6, many readers will want to know more about it. For more industry information, you can follow our industry information section.

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