VPS侦探论坛

 找回密码
 注册
查看: 5533|回复: 4

军哥进来帮忙下。谢谢。。MYsql重启出错。

[复制链接]
发表于 2013-10-7 15:36:48 | 显示全部楼层 |阅读模式

今天就因为SENDMAIL失效。重新安装的时候。发现有200多个东西没有升级。就输入

apt-get update.
apt-ge
rt upgrade


接下来重启lnmp就出现这种情况了


ot@MyVPS1650:~# ps -ef |grep mysql
root      5021  4961  0 15:16 pts/0    00:00:00 grep mysql
root@MyVPS1650:~# /etc/init.d/mysql start
Starting MySQL
.The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!
root@MyVPS1650:~# ps aux |grep mysq*
root      5704  0.0  0.1   3436   784 pts/0    S+   15:18   0:00 grep mysq*
root@MyVPS1650:~# mv /etc/my.cnf /etc/my.cnf.backup
root@MyVPS1650:~# /etc/init.d/mysql start
Starting MySQL
.The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!

蛋疼。。数据库没有备份。。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-7 17:29:27 | 显示全部楼层

以下是网络上搜索到的所有解决方法。[已经解决]



my.cof:(这个我就不知道了)
  1. # Example MySQL config file for medium systems.
  2. #
  3. # This is for a system with little memory (32M - 64M) where MySQL plays
  4. # an important part, or systems up to 128M where MySQL is used together with
  5. # other programs (such as a web server)
  6. #
  7. # MySQL programs look for option files in a set of
  8. # locations which depend on the deployment platform.
  9. # You can copy this option file to one of those
  10. # locations. For information about these locations, see:
  11. # http://dev.mysql.com/doc/mysql/en/option-files.html
  12. #
  13. # In this file, you can use all long options that a program supports.
  14. # If you want to know which options a program supports, run the program
  15. # with the "--help" option.

  16. # The following options will be passed to all MySQL clients
  17. [client]
  18. #password        = your_password
  19. port                = 3306
  20. socket                = /tmp/mysql.sock

  21. # Here follows entries for some specific programs

  22. # The MySQL server
  23. [mysqld]
  24. port                = 3306
  25. socket                = /tmp/mysql.sock
  26. datadir = /usr/local/mysql/var
  27. skip-external-locking
  28. key_buffer_size = 16M
  29. max_allowed_packet = 1M
  30. table_open_cache = 64
  31. sort_buffer_size = 512K
  32. net_buffer_length = 8K
  33. read_buffer_size = 256K
  34. read_rnd_buffer_size = 512K
  35. myisam_sort_buffer_size = 8M

  36. # Don't listen on a TCP/IP port at all. This can be a security enhancement,
  37. # if all processes that need to connect to mysqld run on the same host.
  38. # All interaction with mysqld must be made via Unix sockets or named pipes.
  39. # Note that using this option without enabling named pipes on Windows
  40. # (via the "enable-named-pipe" option) will render mysqld useless!
  41. #
  42. #skip-networking

  43. # Replication Master Server (default)
  44. # binary logging is required for replication
  45. log-bin=mysql-bin

  46. # binary logging format - mixed recommended
  47. binlog_format=mixed

  48. # required unique id between 1 and 2^32 - 1
  49. # defaults to 1 if master-host is not set
  50. # but will not function as a master if omitted
  51. server-id        = 1

  52. # Replication Slave (comment out master section to use this)
  53. #
  54. # To configure this host as a replication slave, you can choose between
  55. # two methods :
  56. #
  57. # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
  58. #    the syntax is:
  59. #
  60. #    CHANGE MASTER TO MASTER_HOST=, MASTER_PORT=,
  61. #    MASTER_USER=, MASTER_PASSWORD= ;
  62. #
  63. #    where you replace , ,  by quoted strings and
  64. #     by the master's port number (3306 by default).
  65. #
  66. #    Example:
  67. #
  68. #    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
  69. #    MASTER_USER='joe', MASTER_PASSWORD='secret';
  70. #
  71. # OR
  72. #
  73. # 2) Set the variables below. However, in case you choose this method, then
  74. #    start replication for the first time (even unsuccessfully, for example
  75. #    if you mistyped the password in master-password and the slave fails to
  76. #    connect), the slave will create a master.info file, and any later
  77. #    change in this file to the variables' values below will be ignored and
  78. #    overridden by the content of the master.info file, unless you shutdown
  79. #    the slave server, delete master.info and restart the slaver server.
  80. #    For that reason, you may want to leave the lines below untouched
  81. #    (commented) and instead use CHANGE MASTER TO (see above)
  82. #
  83. # required unique id between 2 and 2^32 - 1
  84. # (and different from the master)
  85. # defaults to 2 if master-host is set
  86. # but will not function as a slave if omitted
  87. #server-id       = 2
  88. #
  89. # The replication master for this slave - required
  90. #master-host     =   
  91. #
  92. # The username the slave will use for authentication when connecting
  93. # to the master - required
  94. #master-user     =   
  95. #
  96. # The password the slave will authenticate with when connecting to
  97. # the master - required
  98. #master-password =   
  99. #
  100. # The port the master is listening on.
  101. # optional - defaults to 3306
  102. #master-port     =  
  103. #
  104. # binary logging - not required for slaves, but recommended
  105. #log-bin=mysql-bin

  106. # Uncomment the following if you are using InnoDB tables
  107. innodb_data_home_dir = /usr/local/mysql/var
  108. innodb_data_file_path = ibdata1:10M:autoextend
  109. innodb_log_group_home_dir = /usr/local/mysql/var
  110. # You can set .._buffer_pool_size up to 50 - 80 %
  111. # of RAM but beware of setting memory usage too high
  112. innodb_buffer_pool_size = 16M
  113. innodb_additional_mem_pool_size = 2M
  114. # Set .._log_file_size to 25 % of buffer pool size
  115. innodb_log_file_size = 5M
  116. innodb_log_buffer_size = 8M
  117. innodb_flush_log_at_trx_commit = 1
  118. innodb_lock_wait_timeout = 50

  119. [mysqldump]
  120. quick
  121. max_allowed_packet = 16M

  122. [mysql]
  123. no-auto-rehash
  124. # Remove the next comment character if you are not familiar with SQL
  125. #safe-updates

  126. [myisamchk]
  127. key_buffer_size = 20M
  128. sort_buffer_size = 20M
  129. read_buffer = 2M
  130. write_buffer = 2M

  131. [mysqlhotcopy]
  132. interactive-timeout
复制代码

[ 本帖最后由 winson 于 2013-10-7 17:47 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-10-7 17:30:41 | 显示全部楼层

还有一些什么 把mysql的进程kill掉之类的我都试过了。。。没办法。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-7 17:48:34 | 显示全部楼层



已经解决,更新下MYSQL版本或者重新安装一键包。。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-10-7 17:52:53 | 显示全部楼层

lnmp debian 7 ds VPS 安装错误 ovz的


麻烦各位帮忙看看 lnmp安装日志:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x

军哥运维代购:http://shop63846532.taobao.com/

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

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-26 03:49 , Processed in 0.027745 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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