最近要做mysql集群,今天就准备下载回来装一下.可跑到mysql的官网上看,却怎么也找不到mysql的MAX版本,因为做集群的就要这个版本.奇怪了,以前都有的,怎么现在没有了.难不成mysql不对企业版开源也不发布这个版本了.找了半天都见不到,烦了.网上搜了下也没结果.没办法,只有看官网的说明文档了.只是E文太差,看得比较辛苦
在 MySQL 5.0 Reference Manual 的 16.3.1. Building MySQL Cluster from Source Code 这一节说明如下:
NDB
, the Cluster storage engine, is available in binary distributions for Linux, Mac OS X, and Solaris. We are working to make Cluster run on all operating systems supported by MySQL, including Windows.
If you choose to build from a source tarball or the MySQL 5.0 BitKeeper tree, be sure to use the --with-ndbcluster
option when running configure. You can also use the BUILD/compile-pentium-max build script. Note that this script includes OpenSSL, so you must either have or obtain OpenSSL to build successfully, or else modify compile-pentium-max to exclude this requirement. Of course, you can also just follow the standard instructions for compiling your own binaries, and then perform the usual tests and installation procedure. See Section 2.4.15.3, “Installing from the Development Source Tree”.
You should also note that compile-pentium-max installs MySQL to the directory /usr/local/mysql
, placing all MySQL Cluster executables, scripts, databases, and support files in subdirectories under this directory. If this is not what you desire, be sure to modify the script accordingly.
(原文http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster-building.html)
可以在编译时加个参数,或是自己编译,这样就爽了.今天又学到新知识了.
之前还在想,如果mysql的社区版不支持这个,那不是很麻烦.想做集群也没得做了,要做也只得花M了.呵呵.看来是多虑了
这几天也看了些文章,有的说mysql做集群不稳定,有的说很稳定.看来是要看具体的应用了.不过,要自己测试过就知道是怎样了.