In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
In this issue, the editor will bring you about how to install mysql5.5 with RedHat 6.4. the article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.
Prepare the rpm package
Yum install-y gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel*
Install cmake
Download cmake on the official website and add environment variables to the green software:
[root@ycr ~] # which cmake
/ u02/cmake-3.6.1-Linux-x86_64/bin/cmake
Install boost
Decompress it after download, enter the decompression directory and run it.
Run after. / booststrap. / b2 this process takes time
Install ncurses-5.9.tar.gz
. / configure
Make
Make install
Extract the installation package mysql-5.5.50
Cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock\
-DDEFAULT_CHARSET=utf8\
-DDEFAULT_COLLATION=utf8_general_ci\
-DWITH_EXTRA_CHARSETS:STRING=utf8,gbk\
-DWITH_MYISAM_STORAGE_ENGINE=1\
-DWITH_INNOBASE_STORAGE_ENGINE=1\
-DWITH_MEMORY_STORAGE_ENGINE=1\
-DWITH_READLINE=1\
-DENABLED_LOCAL_INFILE=1\
-DMYSQL_DATADIR=/var/mysql/data\
-DMYSQL_USER=mysql
Make and make install after running
Chmod + w / usr/local/mysql
Chown-R mysql:mysql / usr/local/mysql
Ln-s / usr/local/mysql/lib/libmysqlclient.so.18 / usr/lib/libmysqlclient.so.18
Cp my-large.cnf / etc/my.cnf
Cp mysql.server / etc/init.d/mysqld
Vi / etc/my.cnf is added as follows
Basedir = / usr/local/mysql
Datadir = / usr/local/mysql should be the same here as below, otherwise an error will be started
Log-error = / usr/local/mysql-5.5.14/mysql_error.log
Pid-file = / usr/local/mysql-5.5.14/data/mysql.pid
Default-storage-engine=MyISAM
User = mysql
Mysql initialization, execute the following command
/ usr/local/mysql/scripts/mysql_install_db\
-- basedir=/usr/local/mysql\ this should be the same as above, otherwise start the error report
-- datadir=/var/mysql/data\
-- user=mysql
Join boot boot mysql
Chmod + x / etc/init.d/mysqld
Vi / etc/init.d/mysqld is added as follows
Basedir=/usr/local/mysql
Datadir=/var/mysql/data
Chkconfig-add mysqld
Chkconfig-level 345 mysqld on
Configure environment variables for MySQL, which are easy to use in the future
# export PATH=/usr/local/mysql/bin:$PATH
Start mysql
Service mysqld start
The above is the editor for you to share how to use RedHat 6.4 source code to install mysql5.5, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.