环境: centos5.3(x86_64)+mysql5.5+tomcat6.0+jdk1.5(64bit)
下载mysql5.5免安装版本mysql-5.5.0-m2-linux-x86_64-glibc23.tar.gz,找到目录下INSTALL-BINARY文件,打开安装如下:
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .(此步不用操作)
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
修改support-files文件夹下my-huge.cnf文件,设置mysql数据库操作不区分大小写:
[mysqld]
lower_case_table_names=1
(0:区分;1:不区分)
拷贝my-huge.cnf文件至/etc/my.cnf
下次启动mysql数据库通过:/bin/mysql_safe启动.
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12043693/viewspace-1029901/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12043693/viewspace-1029901/