在Redhat系统中,在/usr/local/mysql/bin目录下使用./mysql -ppyrmaid命令,出现如下错误:
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
怎么解决...可能会是哪些问题...
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
怎么解决...可能会是哪些问题...
[code=BatchFile][root@hhhhh ~]# ps -aux|grep mysqld
Bad syntax, perhaps a bogus '-'?
root 19721 0.0 0.1 4236 1232 ? S Apr10 0:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf
mysql 19748 0.0 1.7 123412 18244 ? S Apr10 0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --socket=/var/lib/mysql/mysql.sock
root 27863 0.0 0.0 2612 464 pts/1 S 04:53 0:00 grep mysqld
[root@hhhhh ~]#
[/code]
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 2399 0.0 0.0 3856 564 pts/0 S+ 00:58 0:00 grep mysqld
使用命令后,显示如上...
[root@vampire bin]# service mysqld start
mysqld: unrecognized service
怎么说不认识这个服务啊...
# bin/mysqld_safe &
-bash: cd: mysql_installation_directory: No such file or directory
找不到这个文件,我用find / -name mysql_installation_directory在系统里面找,还是找不到这个文件
很奇怪,mysql_installation_directory是一个目录吗?
mysql_installation_directory 是指你的mysql安装后的目录。你自己搜索一下 mysqld_safe 在哪个目录下。