免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2094 | 回复: 1
打印 上一主题 下一主题

最大连接数问题,谢谢浏览 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-25 22:13 |只看该作者 |倒序浏览
主机系统是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,我该如何判断?有的话,怎么设置?没有的话怎么设置?

论坛徽章:
0
2 [报告]
发表于 2003-03-26 08:43 |只看该作者

最大连接数问题,谢谢浏览

add a line
skip-innodb
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP