尝试修复由于达到max_connections限制而导致的错误我使用mysqltuner修复了一些其他内容并且显然搞砸了其他非常糟糕的事情。
我尝试切换到127.0.0.1:3306,但是这不起作用我开始得到相同的错误,但最后得到(111)。
此外,每当我收到此错误并且在我得到此消息之后我重新启动了mysql"错误!无法找到MySQL服务器PID文件! " 错误(2)表示文件丢失,但肯定存在,我进行了搜索。
文件会以某种方式被删除吗?
我在其他同样的问题上看了很多,但我找不到修复方法。 我只是一个新手,所以没有多少经验。
旁注, 我还启用了APC并开始将其与W3 Total cache一起使用。
另外这里是mysqltuner的当前输出,我编辑my.cnf文件后临时表也增加了很多,但是我没有备份!
>> MySQLTuner 1.4.0 - Major Hayden >> Bug reports, feature requests, and downloads at http://mysqltuner.com/ >> Run with '--help' for additional options and output filtering [OK] Currently running supported MySQL version 5.6.23 [!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM -------- Storage Engine Statistics ------------------------------------------- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM [--] Data in MyISAM tables: 109M (Tables: 159) [--] Data in InnoDB tables: 168M (Tables: 71) [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 52) [!!] Total fragmented tables: 9 -------- Security Recommendations ------------------------------------------- [OK] All database users have passwords assigned -------- Performance Metrics ------------------------------------------------- [--] Up for: 8m 30s (44K q [86.443 qps], 953 conn, TX: 4B, RX: 5M) [--] Reads / Writes: 96% / 4% [--] Total buffers: 345.0M global + 1.8M per thread (100 max threads) [OK] Maximum possible memory usage: 526.2M (22% of installed RAM) [OK] Slow queries: 0% (0/44K) [OK] Highest usage of available connections: 34% (34/100) [OK] Key buffer size / total MyISAM indexes: 16.0M/21.7M [OK] Key buffer hit rate: 99.9% (2M cached / 3K reads) [OK] Query cache efficiency: 76.3% (29K cached / 39K selects) [OK] Query cache prunes per day: 0 [OK] Sorts requiring temporary tables: 1% (47 temp sorts / 3K sorts) [!!] Temporary tables created on disk: 39% (389 on disk / 997 total) [OK] Thread cache hit rate: 89% (96 created / 953 connections) [OK] Table cache hit rate: 97% (325 open / 332 opened) [OK] Open file limit used: 3% (380/10K) [OK] Table locks acquired immediately: 99% (9K immediate / 9K locks) [OK] InnoDB buffer pool / data size: 185.0M/169.0M [OK] InnoDB log waits: 0
>> MySQLTuner 1.4.0 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[OK] Currently running supported MySQL version 5.6.23
[!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 109M (Tables: 159)
[--] Data in InnoDB tables: 168M (Tables: 71)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 52)
[!!] Total fragmented tables: 7
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 1m 59s (30K q [259.672 qps], 426 conn, TX: 2B, RX: 3M)
[--] Reads / Writes: 99% / 1%
[--] Total buffers: 345.0M global + 1.8M per thread (100 max threads)
[OK] Maximum possible memory usage: 526.2M (22% of installed RAM)
[OK] Slow queries: 0% (0/30K)
[OK] Highest usage of available connections: 28% (28/100)
[OK] Key buffer size / total MyISAM indexes: 16.0M/22.1M
[OK] Key buffer hit rate: 99.7% (947K cached / 2K reads)
[OK] Query cache efficiency: 88.4% (25K cached / 28K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 1% (13 temp sorts / 1K sorts)
[!!] Temporary tables created on disk: 46% (193 on disk / 415 total)
[OK] Thread cache hit rate: 83% (69 created / 426 connections)
[OK] Table cache hit rate: 94% (114 open / 121 opened)
[OK] Open file limit used: 1% (101/10K)
[OK] Table locks acquired immediately: 100% (3K immediate / 3K locks)
[OK] InnoDB buffer pool / data size: 185.0M/169.0M
[OK] InnoDB log waits: 0