LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4061|回复: 2

MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) ( 2002 )

[复制链接]
发表于 2007-6-28 18:51:04 | 显示全部楼层 |阅读模式
MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) ( 2002 )


MySQL Server Error:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) ( 2002 )

出错日记

谁能帮我看看哪里错误和解决方法啊...
谢谢了

每次出错都是重启才可以...
救命啊....

  1. 070622 17:16:52 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=ns25500-bin' to avoid this problem.
  2. 070622 17:16:52 [Note] /usr/sbin/mysqld: ready for connections.
  3. Version: '5.0.21-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  Gentoo Linux mysql-5.0.21
  4. mysqld got signal 11;
  5. This could be because you hit a bug. It is also possible that this binary
  6. or one of the libraries it was linked against is corrupt, improperly built,
  7. or misconfigured. This error can also be caused by malfunctioning hardware.
  8. We will try our best to scrape up some info that will hopefully help diagnose
  9. the problem, but since we have already crashed, something is definitely wrong
  10. and this may fail.

  11. key_buffer_size=16777216
  12. read_buffer_size=258048
  13. max_used_connections=16
  14. max_connections=100
  15. threads_connected=1
  16. It is possible that mysqld could use up to
  17. key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 92783 K
  18. bytes of memory
  19. Hope that's ok; if not, decrease some variables in the equation.

  20. thd=0x42709820
  21. Attempting backtrace. You can use the following information to find out
  22. where mysqld died. If you see no messages after this, something went
  23. terribly wrong...
  24. Cannot determine thread, fp=0x42272468, backtrace may not be correct.
  25. Stack range sanity check OK, backtrace follows:
  26. 0x817b070
  27. 0x40182e87
  28. 0x8210ea8
  29. 0x82178c5
  30. 0x8217ec4
  31. 0x8217b61
  32. 0x821c8b5
  33. 0x81cf8b0
  34. 0x81d706f
  35. 0x81dcf51
  36. 0x81dd5f9
  37. 0x819213f
  38. 0x81983b0
  39. 0x8198b43
  40. 0x8199904
  41. 0x819a364
  42. 0x4017cd51
  43. 0x403c3e2a
  44. New value of fp=(nil) failed sanity check, terminating stack trace!
  45. Please read [url]http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html[/url] and follow instructions on how to resolve the stack trace. Resolved
  46. stack trace is much more helpful in diagnosing the problem, so please do
  47. resolve it
  48. Trying to get some variables.
  49. Some pointers may be invalid and cause the dump to abort...
  50. thd->query at 0x872a4b8 = SELECT DISTINCT t.tid FROM pw_posts t WHERE t.fid NOT IN (-999,3,63) AND ifcheck=1 AND t.authorid IN(1181) ORDER BY tid DESC LIMIT 500
  51. thd->thread_id=25150
  52. The manual page at [url]http://www.mysql.com/doc/en/Crashing.html[/url] contains
  53. information that should help you find out what is causing the crash.
  54. 070625 13:20:12 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=ns25500-bin' to avoid this problem.
  55. 070625 13:20:12 [Note] /usr/sbin/mysqld: ready for connections.
  56. Version: '5.0.21-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  Gentoo Linux mysql-5.0.21
  57. mysqld got signal 11;
  58. This could be because you hit a bug. It is also possible that this binary
  59. or one of the libraries it was linked against is corrupt, improperly built,
  60. or misconfigured. This error can also be caused by malfunctioning hardware.
  61. We will try our best to scrape up some info that will hopefully help diagnose
  62. the problem, but since we have already crashed, something is definitely wrong
  63. and this may fail.

  64. key_buffer_size=16777216
  65. read_buffer_size=258048
  66. max_used_connections=10
  67. max_connections=100
  68. threads_connected=1
  69. It is possible that mysqld could use up to
  70. key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 92783 K
  71. bytes of memory
  72. Hope that's ok; if not, decrease some variables in the equation.

  73. thd=0x42300480
  74. Attempting backtrace. You can use the following information to find out
  75. where mysqld died. If you see no messages after this, something went
  76. terribly wrong...
  77. Cannot determine thread, fp=0x42272468, backtrace may not be correct.
  78. Stack range sanity check OK, backtrace follows:
  79. 0x817b070
  80. 0x40182e87
  81. 0x8210ea8
  82. 0x82178c5
  83. 0x8217ec4
  84. 0x8217b61
  85. 0x821c8b5
  86. 0x81cf8b0
  87. 0x81d706f
  88. 0x81dcf51
  89. 0x81dd5f9
  90. 0x819213f
  91. 0x81983b0
  92. 0x8198b43
  93. 0x8199904
  94. 0x819a364
  95. 0x4017cd51
  96. 0x403c3e2a
  97. New value of fp=(nil) failed sanity check, terminating stack trace!
  98. Please read [url]http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html[/url] and follow instructions on how to resolve the stack trace. Resolved
  99. stack trace is much more helpful in diagnosing the problem, so please do
  100. resolve it
  101. Trying to get some variables.
  102. Some pointers may be invalid and cause the dump to abort...
  103. thd->query at 0x8772958 = SELECT DISTINCT t.tid FROM pw_posts t WHERE t.fid NOT IN (-999,3,63,82) AND ifcheck=1 AND ((t.subject LIKE '%少男少女%' OR t.content LIKE '%少男少女%') ) ORDER BY tid DESC LIMIT 500
  104. thd->thread_id=6936
  105. The manual page at [url]http://www.mysql.com/doc/en/Crashing.html[/url] contains
  106. information that should help you find out what is causing the crash.
  107. 070625 22:10:35 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=ns25500-bin' to avoid this problem.
  108. 070625 22:10:35 [Note] /usr/sbin/mysqld: ready for connections.
  109. Version: '5.0.21-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  Gentoo Linux mysql-5.0.21
  110. mysqld got signal 11;
  111. This could be because you hit a bug. It is also possible that this binary
  112. or one of the libraries it was linked against is corrupt, improperly built,
  113. or misconfigured. This error can also be caused by malfunctioning hardware.
  114. We will try our best to scrape up some info that will hopefully help diagnose
  115. the problem, but since we have already crashed, something is definitely wrong
  116. and this may fail.

  117. key_buffer_size=16777216
  118. read_buffer_size=258048
  119. max_used_connections=10
  120. max_connections=100
  121. threads_connected=1
  122. It is possible that mysqld could use up to
  123. key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 92783 K
  124. bytes of memory
  125. Hope that's ok; if not, decrease some variables in the equation.

  126. thd=0x42414720
  127. Attempting backtrace. You can use the following information to find out
  128. where mysqld died. If you see no messages after this, something went
  129. terribly wrong...
  130. Cannot determine thread, fp=0x42272468, backtrace may not be correct.
  131. Stack range sanity check OK, backtrace follows:
  132. 0x817b070
  133. 0x40182e87
  134. 0x8210ea8
  135. 0x82178c5
  136. 0x8217ec4
  137. 0x8217b61
  138. 0x821c8b5
  139. 0x81cf8b0
  140. 0x81d706f
  141. 0x81dcf51
  142. 0x81dd5f9
  143. 0x819213f
  144. 0x81983b0
  145. 0x8198b43
  146. 0x8199904
  147. 0x819a364
  148. 0x4017cd51
  149. 0x403c3e2a
  150. New value of fp=(nil) failed sanity check, terminating stack trace!
  151. Please read [url]http://dev.mysql.com/doc/mysql/en/Using_stack_trace.html[/url] and follow instructions on how to resolve the stack trace. Resolved
  152. stack trace is much more helpful in diagnosing the problem, so please do
  153. resolve it
  154. Trying to get some variables.
  155. Some pointers may be invalid and cause the dump to abort...
  156. thd->query at 0x8774350 = SELECT DISTINCT t.tid FROM pw_posts t WHERE t.fid NOT IN (-999,3,63,82) AND ifcheck=1 AND ( (t.subject LIKE '%花样少男少女%' OR t.content LIKE '%花样少男少女%') ) ORDER BY tid DESC LIMIT 500
  157. thd->thread_id=428
  158. The manual page at [url]http://www.mysql.com/doc/en/Crashing.html[/url] contains
  159. information that should help you find out what is causing the crash.
  160. 070625 22:47:09 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=ns25500-bin' to avoid this problem.
  161. 070625 22:47:09 [Note] /usr/sbin/mysqld: ready for connections.
  162. Version: '5.0.21-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  Gentoo Linux mysql-5.0.21
复制代码
发表于 2007-7-2 10:58:27 | 显示全部楼层
应该是你的mysqld服务没有打开,可以使用以下两种方法:
1、service mysqld start
2、/etc/init.d/mysqld start
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-3 05:02:35 | 显示全部楼层
谢谢楼上得回答..
我知道 是这个没有运转了 这样开启..
我发出错日记上来 是想问一下 怎么解决出错得地方..
因为每次出错 都要去重启数据 狠麻烦..
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表