- 论坛徽章:
- 0
|
主机系统是win2k,apache2+php4.3.1+mysql3
出现连接过多的提示,我打算提高mysql的最大连接数
我打开c:\winnt\my.ini
文件如下:
#This File was made using the WinMySQLAdmin 1.4 Tool
#2003-1-26 2:52:01
#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions[mysqld]
basedir=C:/mysql
#bind-address=202.123.123.123
datadir=E:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user=adfsdfn
password=54564654
我将此文件改为:
#This File was made using the WinMySQLAdmin 1.4 Tool
#2003-1-26 2:52:01
#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions
[mysqld]
basedir=C:/mysql
#bind-address=202.123.123.123
datadir=E:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
max-connections=1000
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user=adfsdfn
password=54564654
重新启动mysql
出现自动关闭,我打开错误文件一下,如下:
MySql: ready for connections
Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
If you do not want to use transactional InnoDB tables, add a line
skip-innodb
to the [mysqld] section of init parameters in your my.cnf
or my.ini. If you want to use InnoDB tables, add to the [mysqld]
section, for example,
innodb_data_file_path = ibdata1:10M:autoextend
But to get good performance you should adjust for your hardware
the InnoDB startup options listed in section 2 at
http://www.innodb.com/ibman.html
030325 21:35:42 MySql: Normal shutdown
030325 21:35:42 MySql: Shutdown Complete
到了这里,我不知道怎么解决了?主机上是否有innodb这个类型的db,我该如何判断?有的话,怎么设置?没有的话怎么设置? |
|