标题:
[求助]
[按教程为什么仍无法修复?]无法连接mysql,请检查mysql是否
[打印本页]
作者:
ahzsb
时间:
2013-7-27 14:54
标题:
[按教程为什么仍无法修复?]无法连接mysql,请检查mysql是否
http://www.wdlinux.cn/bbs/viewthread.php?tid=585
按照这个教程如下操作,仍然修复不了。
过程如下:
[root@localhost ~]# netstat -lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1715/nginx.conf
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1725/pure-ftpd (SER
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1329/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1514/sendmail: acce
tcp 0 0 :::21 :::* LISTEN 1725/pure-ftpd (SER
tcp 0 0 :::22 :::* LISTEN 1329/sshd
tcp 0 0 :::8088 :::* LISTEN 1733/httpd
tcp 0 0 :::88 :::* LISTEN 1698/httpd
[root@localhost ~]# service mysqld restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
[root@localhost ~]# sed -i's/skip-innodb/#skip-innodb/g'/www/wdlinux/etc/my.cnf
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
--follow-symlinks
follow symlinks when processing in place
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
-c, --copy
use copy instead of rename when shuffling files in -i mode
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
--posix
disable all GNU extensions.
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
--version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
[root@localhost ~]# service mysqld restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
[root@localhost ~]# sh /www/wdlinux/tools/mysql_wdcp_chg.sh
Running..., Please Wait...
err[root@localhost ~]#
复制代码
db.inc.php的数据如下:
<?
$dbhost = 'localhost';
$dbuser = 'wdcp';
$dbpw = 'XgQj5oOo';
$dbname = 'wdcpdb';
$pconnect = 0;
$dbcharset = 'gbk';
?>
复制代码
请教为什么还不行?我只不过设置了一下内存优化为“innodb配置”。
作者:
ahzsb
时间:
2013-7-27 15:05
我是 内存优化 点过后出现问题,使用教程修复好了,然后又选择了一个优化后再也修复不了。
欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/)
Powered by Discuz! 7.2