安裝MYSQL5.5
檢查是否已經安裝mysql
rpm -qa|grep mysql
如果安裝則卸載
rpm -e mysql-libs –nodeps
增加repo:
rpm -Uvh http://mirror.steadfast.net/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
安裝
yum --enablerepo=remi,remi-test install mysqlmysql-server
遠程登錄賦權
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%'IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
安裝sysbench
爲了進行oltp,首先安裝
yum install mysql-devel
yum install m4 autoconf automake libtool
./autogen.sh
./configure --prefix=/usr/local/sysbench--with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib
Mysqlinclude和mysqllib通過whereismysql均可查看