文章列表
1.解压到/usr/local/mysql
groupadd mysql
useradd -g mysql mysql
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
chown -R root .
chown -R mysql data
cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
cp /usr/local/mysql/support-files/my-huge.cnf /etc/my.cnf
2.修改my.cnf
nano /etc/my.cn ...
1.安装DBI
cpan
install DBI
2.安装DBD-mysql
wget http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.013.tar.gz
tar zxvf DBD-mysql-4.013.tar.gz
3.确认my.cnf的socket路径为/tmp/mysql.sock
nano /etc/my.cnf
/tmp/mysql.sock
4.安装
perl Makefile.PL -testdb=test -testuser=root -testpassword="root&qu ...
测试命令
mysqlslap -a --concurrency=100 --number-of-queries 10000 --debug-info -uroot -proot
1.安装MySQL
不要使用apt-get install mysql-server-5.x
使用编译安装或者解压安装MySQL
2.安装配置super-smack
wget http://vegan.net/tony/supersmack/super-smack-1.3.tar.gz
tar zxvf super-smack-1.3.tar.gz
cd super-smack-1.3
3.修改源代码,不然会在安装过程中报错
cd src
nano dictionary.h
添加
#include <cstring>
4.安装flex
apt-get install flex
...