#bdb_max_lock = 100000 default-storage-engine=INNODB # Uncomment the following if you are using InnoDB tables innodb_data_home_dir = /usr/local/eetrust/mysql/var/ innodb_data_file_path = ibdata1:10M:autoextend innodb_log_group_home_dir = /usr/local/eetrust/mysql/var/ innodb_log_arch_dir = /usr/local/eetrust/mysql/var/ # You can set .._buffer_pool_size up to 50 - 80 % # of RAM but beware of setting memory usage too high innodb_buffer_pool_size = 256M innodb_additional_mem_pool_size = 20M # Set .._log_file_size to 25 % of buffer pool size innodb_log_file_size = 64M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50 <!--EndFragment--> www.atcpu.com 进入mysql目录
cd /usr/sid/mysql/mysql-5.0.85 cp support-files/mysql.server /etc/rc.d/init.d/mysql --修改权限 cd /etc/rc.d/init.d chmod +x /etc/rc.d/init.d/mysql --设置自启动 chkconfig --add mysql chkconfig mysql on --将mysql的bin添加到/etc/profile的path中 vi /etc/profile --在path后面加入如下内容 :/usr/local/eetrust/mysql/bin
--应用 source /etc/profile mysql -uroot –psunnyboysac --给mysql的用root用户授权,使其远程可以访问 grant all on *.* to 'root'@'%' identified by 'mysqladmin'; grant all on *.* to 'root'@'%' identified by 'sunnyboysac'; GRANT USAGE ON *.* to root@'%' IDENTIFIED BY 'sunnyboysac'; --刷新 flush privileges; 如果还连不上,关掉防火墙 service iptables stop www.atcpu.com 验证:
service mysql start 退出窗口重新登录 用mysql命令 <!--EndFragment--> <!--EndFragment--> <!--EndFragment-->