四虎影视在线影院在线观看,小s货再浪些再咬紧点h,国产精品水嫩水嫩,97精产国品一二三产区

Board logo

標(biāo)題: [求助] 無法連接mysql,請(qǐng)檢查mysql是否已啟動(dòng)及用戶密碼是否設(shè)置正確!: [打印本頁]

作者: vnlife3    時(shí)間: 2013-1-19 14:04     標(biāo)題: 無法連接mysql,請(qǐng)檢查mysql是否已啟動(dòng)及用戶密碼是否設(shè)置正確!:

本帖最后由 vnlife3 于 2013-1-19 14:10 編輯

各位大牛好

系統(tǒng):WDLINUX OS 1.0 32bit
問題發(fā)生原因:

我點(diǎn)擊了MYSQL管理中的MYSQL設(shè)置。將默認(rèn)值更改為分類的“一般”
然后點(diǎn)擊確定。


然后點(diǎn)擊了重啟mysql就提示“無法連接mysql,請(qǐng)檢查mysql是否已啟動(dòng)及用戶密碼是否設(shè)置正確!:

我百度了一下運(yùn)行了tools下的sh腳本,并沒有作用。
重啟mysqld服務(wù)提示:Starting MySQL. ERROR! Manager of pid-file quit without updating file.

還望各位指教 謝謝。 我很喜歡wdlinux也很需要它。
作者: wulali    時(shí)間: 2013-1-19 14:18

把/www/wdlinux/etc/my.cnf文件里的設(shè)置還原一下,然后在SSH里執(zhí)行service mysqld restart即可

以下是my.cnf文件的默認(rèn)設(shè)置
  1. # mysql conf /etc/my.cnf
  2. # Created by http://cd-genova.com
  3. # Last Updated 2010.06.01

  4. [client]
  5. port                = 3306
  6. socket                = /tmp/mysql.sock
  7. [mysqld]
  8. port                = 3306
  9. socket                = /tmp/mysql.sock
  10. skip-external-locking
  11. key_buffer_size = 128M
  12. max_allowed_packet = 1M
  13. table_open_cache = 256
  14. sort_buffer_size = 1M
  15. read_buffer_size = 1M
  16. read_rnd_buffer_size = 2M
  17. myisam_sort_buffer_size = 8M
  18. thread_cache_size = 8
  19. query_cache_size= 16M
  20. thread_concurrency = 8
  21. max_connections = 300
  22. wait_timeout = 30
  23. interactive_timeout = 30
  24. max_connect_errors = 9
  25. long_query_time = 1
  26. tmp_table_size = 16M
  27. #log-bin=mysql-bin
  28. #binlog_format=mixed
  29. #server-id        = 1
  30. [mysqldump]
  31. quick
  32. max_allowed_packet = 8M
  33. [mysql]
  34. no-auto-rehash
  35. [myisamchk]
  36. key_buffer_size = 12M
  37. sort_buffer_size = 1M
  38. read_buffer = 1M
  39. write_buffer = 1M
  40. [mysqlhotcopy]
  41. interactive-timeout
復(fù)制代碼

作者: vnlife3    時(shí)間: 2013-1-19 14:22

回復(fù) 2# wulali


   error: Found option without preceding group in config file: /etc/my.cnf at line: 1Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
ERROR! MySQL manager or server PID file could not be found!
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
Starting MySQL. SUCCESS!
[root@fs1 etc]# service mysqld restart
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
Shutting down MySQL. SUCCESS!
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
error: Found option without preceding group in config file: /etc/my.cnf at line: 1
Fatal error in defaults handling. Program aborted
Starting MySQL. SUCCESS!
作者: vnlife3    時(shí)間: 2013-1-19 14:23

修復(fù)完成了! 謝謝 wulali 的幫助!
作者: speedking    時(shí)間: 2013-1-19 20:53

也碰到這個(gè)問題  按照帖子的方法弄好了
作者: hhxxttxs    時(shí)間: 2013-1-20 19:22

烏班圖 安裝一鍵 訪問 8080 之后出現(xiàn)   無法連接mysql,請(qǐng)檢查mysql是否已啟動(dòng)及用戶密碼是否設(shè)置正確!:
按照帖子 還原 重啟,還是顯示 無法連接mysql,請(qǐng)檢查mysql是否已啟動(dòng)及用戶密碼是否設(shè)置正確!:
作者: chen7413    時(shí)間: 2013-3-6 09:20

后臺(tái)都進(jìn)不去怎么弄!。。。。
作者: qq514408389    時(shí)間: 2013-3-27 10:12

用工具sh /www/wdlinux/tools/mysql_wdcp_chg.sh
作者: omaman    時(shí)間: 2013-6-16 09:35

這個(gè)問題我也遇到了,看了所有的幫助都沒有解決問題。后來我發(fā)現(xiàn)是root密碼當(dāng)初修改的時(shí)候我使用了".",重啟mysql正常,但是就是出現(xiàn)請(qǐng)檢查密碼的錯(cuò)誤。只要修改root密碼為數(shù)字字母就行了。
作者: 板栗籽雞    時(shí)間: 2013-7-29 14:33

怎么解決,第一次接觸linux,我也出現(xiàn)了這樣的問題。。。
作者: zhqs425    時(shí)間: 2013-8-6 16:11

用工具sh /www/wdlinux/tools/mysql_wdcp_chg.sh
作者: nano    時(shí)間: 2013-12-6 11:17

本帖最后由 nano 于 2013-12-6 11:22 編輯

centos 6.5 最小化安裝
用 sh /www/wdlinux/tools/mysql_wdcp_chg.sh 后出現(xiàn)
Running..., Please Wait...
err
求解
作者: nano    時(shí)間: 2013-12-6 12:40

#sh /www/wdlinux/tools/mysql_root_chg.sh

Running..., Please Wait...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Change root password is OK
Current root password is:66JswiWp


是不是數(shù)據(jù)庫密碼問題?執(zhí)行這個(gè)shell還是不行。
作者: nano    時(shí)間: 2013-12-6 12:41

# /etc/rc.d/init.d/mysqld status
ERROR! MySQL is not running, but lock exists
作者: nano    時(shí)間: 2013-12-6 12:59

重裝系統(tǒng)試試看行不行,可能是我以前安裝過mariadb沒卸載干凈的原因。
作者: nano    時(shí)間: 2013-12-6 13:51

經(jīng)測試,重新安裝系統(tǒng)后,正常。原來是系統(tǒng)原因。




歡迎光臨 WDlinux官方論壇 (http://cd-genova.com/bbs/) Powered by Discuz! 7.2