mysql如何安装cluster
小编给大家分享一下MySQL如何安装cluster,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
创新互联建站主要从事网站设计、成都网站制作、网页设计、企业做网站、公司建网站等业务。立足成都服务康平,10年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:18982081108
rpm -ef mysql-4.1.12-3.RHEL4.1 freeradius-mysql-1.0.1-3.RHEL4.i386 mysql-devel-4.1.12-3.RHEL4.1.i386 mysql-server-4.1.12-3.RHEL4.1.i386 mysql-bench-4.1.12-3.RHEL4.1.i386 mysql-server-4.1.12-3.RHEL4.1.i386 freeradius-mysql-1.0.1-3.RHEL4.i386 mysql-server-4.1.12-3.RHEL4.1.i386 perl-DBD-MySQL-2.9004-3.1.i386 dovecot-0.99.11-2.EL4.1.i386 cyrus-sasl-sql-2.1.19-5.EL4.i386 php-mysql-4.3.9-3.8.i386 mod_auth_mysql-2.6.1-2.2.i386 mysqlclient10-3.23.58-4.RHEL4.1 mysqlclient10-devel-3.23.58-4.RHEL4.1.i386 MySQL-python-1.0.0-1.RHEL4.1.i386 qt-MySQL-3.3.3-9.3.i386 MyODBC-2.50.39-21.RHEL4.1.i386 MySQL-python-1.0.0-1.RHEL4.1.i386 libdbi-dbd-mysql-0.6.5-10.RHEL4.1.i386
groupadd mysql
useradd -g mysql mysql
CFLAGS="-O3 -mpentiumpro" CXX=gcc CXXFLAGS="-O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti"
./configure --prefix=/usr/local/mysql --sysconfdir=/etc
--localstatedir=/srv/mysql --with-unix-socket-path=/var/run/mysql/mysql.sock
--enable-thread-safe-client
--with-named-thread-libs=-lpthread
--enable-local-infile --with-charset=utf8
--with-extra-charsets=utf8 --enable-assembler
--with-plugin-ndbcluster --with-plugin-partition
--without-ndb-debug
--without-debug --without-bench --without-readline
--libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cp support-files/mysql.server /etc/init.d/mysql
chmod 755 /etc/init.d/mysql
chkconfig --add mysql
chkconfig --level 2345 mysql on
PATH=/usr/local/mysql/bin:$PATH
echo "PATH=/usr/local/mysql/bin:$PATH" >> /etc/profile
PATH=/usr/local/mysql/bin:$PATH
export PATH
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
chgrp -R mysql .
以上是“mysql如何安装cluster”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!
网页题目:mysql如何安装cluster
URL网址:http://scjbc.cn/article/jsshop.html