1)将下面两个安装文件以二进制方式FTP到linux主机的/tmp目录
MySQL-client-community-5.0.45-0.rhel4.i386.rpm
MySQL-server-community-5.0.45-0.rhel4.i386.rpm
2)以root用户登录linux主机,进入/tmp目录,在shell下执行下列命令:
rpm –vih MySQL-server-community-5.0.45-0.rhel4.i386.rpm
rpm –vih MySQL-client-community-5.0.45-0.rhel4.i386.rpm
3)调整InnoDB数据库引擎缺省表空间和日志空间大小,调整步骤如下:
在shell下执行service mysql stop命令,停止MySQL服务
删除/var/lib/mysql目录下的ibdata1、ib_logfile0、ib_logfile1三个文件
在/etc目录新建my.cnf文件,使之包含如下内容:
[mysqld]
default-character-set=utf8
default-storage-engine=INNODB
transaction-isolation=READ-COMMITTED
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=200
query_cache_size=32M
query_cache_type=1
table_cache=512
tmp_table_size=16M
thread_cache_size=22
myisam_max_sort_file_size=1G
myisam_max_extra_sort_file_size=1G
myisam_sort_buffer_size=8M
key_buffer_size=8M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=208K
innodb_data_file_path=ibdata1:100M:autoextend
innodb_autoextend_increment=20M
innodb_log_file_size=20M
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=0
innodb_log_buffer_size=1M
innodb_buffer_pool_size=64M
innodb_thread_concurrency=8
[client]
default-character-set=utf8
在shell下执行service mysql start命令,启动MySQL服务
4)导入aps脚本
mysql -u root -p < callback.sql
阅读(1307) | 评论(0) | 转发(0) |