您好,欢迎访问一九零五行业门户网

mysql - PHP提示PDO failed

有一台mysql服务器,每天上面都会新增数十个新数据库(三十 or 四十),截止到现在,已经有接近三千个数据库。单个数据库的访问量不大,但可能由于数量过多,最近经常性出现 pdo failed (discuz的db模块)错误。查看mysql错误日志又没发现什么有用提示。
想问问,出现类似这样的问题,应该从哪些方面考虑找原因?
下面列出的是部分 my.cnf 内容
key_buffer_size = 32mmax_allowed_packet = 2mtable_open_cache = 256sort_buffer_size = 6mnet_buffer_length = 8kread_buffer_size = 2mread_rnd_buffer_size = 2mmyisam_sort_buffer_size = 4mmyisam_max_sort_file_size = 32mmyisam_max_extra_sort_file_size = 32mquery_cache_size = 128mthread_cache_size = 128max_connections=256tmp_table_size = 100mjoin_buffer_size = 8m

回复内容: 有一台mysql服务器,每天上面都会新增数十个新数据库(三十 or 四十),截止到现在,已经有接近三千个数据库。单个数据库的访问量不大,但可能由于数量过多,最近经常性出现 pdo failed (discuz的db模块)错误。查看mysql错误日志又没发现什么有用提示。
想问问,出现类似这样的问题,应该从哪些方面考虑找原因?
下面列出的是部分 my.cnf 内容
key_buffer_size = 32mmax_allowed_packet = 2mtable_open_cache = 256sort_buffer_size = 6mnet_buffer_length = 8kread_buffer_size = 2mread_rnd_buffer_size = 2mmyisam_sort_buffer_size = 4mmyisam_max_sort_file_size = 32mmyisam_max_extra_sort_file_size = 32mquery_cache_size = 128mthread_cache_size = 128max_connections=256tmp_table_size = 100mjoin_buffer_size = 8m

数据库索引改成innodb的?
不过三千个数据库,各种size才几兆几十兆,似乎配置太低了
其它类似信息

推荐信息