分类 MySQL 下的文章

MySQL5.1 升级到 Percona Server 5.5

1.下载

从Percona 的官网下载 http://www.percona.com

最新的版本:percona-server-5.5.36-34.2


[root@server3 ~]# wget http://www.percona.com/downloads/Percona-Server-5.5/LATEST/source/tarball/percona-server-5.5.36-34.2.tar.gz

2.编译安装

注意:事先要把cmake安装好


[root@server3 ~]# tar xf percona-server-5.5.36-34.2.tar.gz
[root@server3 ~]# cd percona-server-5.5.36-34.2
[root@server3 percona-server-5.5.36-34.2]# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/percona-server-5.5.36-34.2 \
> -DMYSQL_DATADIR=/usr/local/mysql/data \
> -DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
> -DDEFAULT_CHARSET=utf8 \
> -DDEFAULT_COLLATION=utf8_general_ci \
> -DWITH_EXTRA_CHARSETS:STRING=all \
> -DWITH_INNOBASE_STORAGE_ENGINE=1 \
> -DWITH_READLINE=1 \
> -DENABLED_LOCAL_INFILE=1  \
> -DWITH_DEBUG=0 \
> -DMYSQL_TCP_PORT=3306 \
> -DWITH_SSL=system \
> -DWITH_ZLIB=system \
> -DWITH_LIBWRAP=0

-DMYSQL_DATADIR=/usr/local/mysql/data 在这里指定了原来Mysql5.1所在的数据目录,不过不指定也可以,安装完后也可以在my.cnf里面指定


[root@server3 percona-server-5.5.36-34.2]# make && make install
[  0%] Built target INFO_BIN
Scanning dependencies of target INFO_SRC
[  0%] Built target INFO_SRC
Scanning dependencies of target abi_check
[  0%] Built target abi_check
Scanning dependencies of target readline
[  0%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/readline.c.o
[  1%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/funmap.c.o
[  1%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/keymaps.c.o
[  1%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/vi_mode.c.o
[  1%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/parens.c.o
[  1%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/rltty.c.o
[  1%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/complete.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/bind.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/isearch.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/display.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/signals.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/util.c.o
[  2%] Building C object cmd-line-utils/readline/CMakeFiles/readline.dir/kill.c.o

- 阅读剩余部分 -