[按教程为什么仍无法修复?]无法连接mysql,请检查mysql是否
[url=http://www.wdlinux.cn/bbs/viewthread.php?tid=585]http://www.wdlinux.cn/bbs/viewthread.php?tid=585[/url] 按照这个教程如下操作,仍然修复不了。过程如下:
[code]
[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 ~]#
[/code]
db.inc.php的数据如下:
[code] <?
$dbhost = 'localhost';
$dbuser = 'wdcp';
$dbpw = 'XgQj5oOo';
$dbname = 'wdcpdb';
$pconnect = 0;
$dbcharset = 'gbk';
?>
[/code]
请教为什么还不行?我只不过设置了一下内存优化为“innodb配置”。 我是 内存优化 点过后出现问题,使用教程修复好了,然后又选择了一个优化后再也修复不了。
页:
[1]