CentOS6.5 install sysbench to test mysql

1. Download and install sysbench:

1. Go to https://github.com/akopytov/sysbench

2. We download the zip format

3. Upload to the CentOS system (/usr/local/), decompress it, enter /usr/local/ and execute: unzip sysbench-master.zip

4. Create a sysbench installation directory folder: mkdir -p /usr/local/sysbench/

5. Enter /usr/local/sysbench-master/ and execute: ./autogen.sh


6. Execute the following commands (partial screenshots): ./configure --prefix=/usr/local/sysbench --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/ local/mysql/lib/;


7. Execute: make

8. Execute: make install

10. Enter the sysbench installation directory (cd /usr/local/sysbench/bin), and check whether the installation is complete (/usr/local/sysbench/bin/sysbench --version), if the version information is displayed, the installation is complete


11. If an error occurs: (sysbench: error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory), add: export LD_LIBRARY_PATH=/usr to (vim /etc/profile) /local/mysql/lib/)


12. Execute again: source /etc/profile to reload the profile file


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324495957&siteId=291194637