bitscn.com
解压mysql到d:/mysql,编辑my.ini
[mysqld]
port=3306
basedir=d:/mysql/
datadir=d:/mysql/data/
tmpdir=d:/mysql/tmp/
default-character-set=utf8
default-storage-engine=myisam
skip-bdb
skip-innodb
skip-locking
key_buffer=16m
max_allowed_packet=1m
table_cache=128
thread_cache=8
join_buffer_size=512k
sort_buffer=512k
record_buffer=512k
max_connections=500
wait_timeout=120
interactive_timeout=120
max_connect_errors=3000
long_query_time=1
max_heap_table_size=16m
tmp_table_size=8m
thread_concurrency=8
myisam_sort_buffer_size=8m
myisam_sort_buffer_size=4m
low_priority_updates=1
ft_min_word_len=1
编辑两个批处理
安装
d:
cd d:/mysql/bin
mysqld-nt.exe --install mysql --defaults-file=d:/mysql/my.ini
net start mysql
pause
卸载
d:
cd d:/apm/mysql/bin
net stop mysql
mysqld-nt.exe --remove mysql
pause
添加一个mysql启动用户,设置此用户为guest组,
设置d:/mysql目录为administrators组、system、新加的用户完全权限。
设置mysql服务的启动帐户为新加的用户,重新启动mysql服务。
设置拒绝本地登陆。
bitscn.com