In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Next, let's learn about the detailed steps of CentOS 6.5 system minimizing compilation and installation of mysql 5.5.35. I believe you will benefit a lot after reading it. The text is not much in essence. I hope that CentOS 6.5 system minimizes the detailed steps of compiling and installing mysql 5.5.35. This short article is what you want.
1. Turn off the firewall
[root@mysql ~] # service iptables stopiptables: Setting chains to policy ACCEPT: filter [OK] iptables: Flushing firewall rules: [OK] iptables: Unloading modules: [OK] [root@mysql ~] # chkconfig iptables off [root@mysql ~] # chkconfig iptables-listiptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
2. Close selinux
[root@mysql ~] # setenforce 0 [root@mysql ~] # vim / etc/sysconfig/selinux
Modify the following line
SELINUX=disabled [root@mysql ~] # getenforce Permissive
3. Install mysql dependency packages and compilation tools
[root@mysql ~] # yum install-y ncurses-devel [root@mysql] # yum install-y gcc gcc-c++ [root@mysql ~] # yum install-y cmake
4. Prepare before installation
4.1. Installation path
[root@mysql ~] # mkdir / usr/local/mysql
4.2. Database path
[root@mysql ~] # mkdir / data/mysql-p
4.3. Create users and user groups
[root@mysql ~] # groupadd mysql [root@mysql ~] # useradd-r-g mysql-s / bin/false mysql
4.4. Give permission to the data storage directory
[root@mysql] # chown mysql:mysql-R / data/mysql
5. Compile and install mysql 5.5.35
5.1.Compiler and install mysql 5.5.35
[root@mysql] # yum install-y lrzszroot@mysql ~] # mkdir / package [root@mysql ~] # cd / package/ [root@mysql package] # tar xf mysql-5.5.32.tar.gz [root@mysql package] # cd mysql-5.5.32 [root@mysql mysql-5.5.32] # cmake. -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-DMYSQL_UNIX_ADDR=/data/mysql/mysql.sock-DDEFAULT_CHARSET=utf8-DDEFAULT_COLLATION=utf8_general_ci-DWITH_EXTRA_CHARSETS:STRING=utf8,gbk-DWITH_INNOBASE_STORAGE_ENGINE=1-DWITH_READLINE=1-DENABLED_LOCAL_INFILE=1-DMYSQL_DATADIR=/data/mysql/-DMYSQL_USER=mysql-DMYSQL_TCP_PORT= 3306 [root @ mysql mysql-5.5.32] # make & & make install
5.2. Copy the configuration file
[root@mysql mysql-5.5.32] # cp support-files/my-small.cnf / etc/my.cnf cp: overwrite `/ etc/my.cnf'? Yes
5.3. Enter the installation directory
[root@mysql mysql-5.5.32] # cd / usr/local/mysql/ [root@mysql mysql] # ll scripts/total 16-rwxr-xr-x. 1 root root 14816 Aug 2 00:13 mysql_install_db
5.4. Initialize the database
[root@mysql mysql] # scripts/mysql_install_db-user=mysql-basedir=/usr/local/mysql-datadir=/data/mysql/
5.5. Create a script to manage the database and add it to the list of services
[root@mysql mysql] # cp support-files/mysql.server / etc/init.d/mysqld [root@mysql mysql] # chmod + x! $chmod + x / etc/init.d/mysqld [root@mysql mysql] # chkconfig-- add mysqld [root@mysql mysql] # chkconfig mysqld-listmysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
6. Installation completed
6.1. Start the database
[root@mysql mysql] # / etc/init.d/mysqld startStarting MySQL.. SUCCESS!
6.2. Log in to the database
[root@mysql mysql] # / usr/local/mysql/bin/mysql
After reading this article on how to minimize the compilation and installation of CentOS 5.5.35, 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.
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.