由于我的vps上面跑的是老版本的mysql 5.1.33,最近打算升级到最新版本.
5.1 支线是官方推荐的稳定版,最新的是刚刚发布的 5.1.41 吧。不过我这个人比较喜欢尝鲜,于是自己下载了最新的开发版分支5.4的最新beta 版--5.4.3.
解压,编译.
我的configure:
It was created by configure, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --prefix=/usr/local/mysql --with-charset=gbk --with-extra-charsets=all --with-system-type --with-machine-type --with-unix-socket-path=/var/mysql.sock --with-mysqld-user=my_sql --with-zlib-dir=bundled --with-error-inject --with-embedded-server --with-embedded-privilege-control
值得注意的事,如果你的mysql上要跑像 discuz! 等社区论坛,用到了gbk,gb2312编码,那得像我一样加上 --with-charset=gbk 参数,不然导入数据时候,会报错...
mysql编译有点慢,得等等.机器配置好另当别论
5.1 支线是官方推荐的稳定版,最新的是刚刚发布的 5.1.41 吧。不过我这个人比较喜欢尝鲜,于是自己下载了最新的开发版分支5.4的最新beta 版--5.4.3.
解压,编译.
我的configure:
It was created by configure, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --prefix=/usr/local/mysql --with-charset=gbk --with-extra-charsets=all --with-system-type --with-machine-type --with-unix-socket-path=/var/mysql.sock --with-mysqld-user=my_sql --with-zlib-dir=bundled --with-error-inject --with-embedded-server --with-embedded-privilege-control
值得注意的事,如果你的mysql上要跑像 discuz! 等社区论坛,用到了gbk,gb2312编码,那得像我一样加上 --with-charset=gbk 参数,不然导入数据时候,会报错...
mysql编译有点慢,得等等.机器配置好另当别论