|
root@wizard[/home/web/mysql/bin]#ls
comp_err mysql_find_rows mysqld_multi
isamchk mysql_fix_extensions mysqld_safe
isamlog mysql_fix_privilege_tables mysqldump
make_win_binary_distribution mysql_install mysqldumpslow
make_win_src_distribution mysql_install_db mysqlhotcopy
msql2mysql mysql_secure_installation mysqlimport
my_print_defaults mysql_setpermission mysqlmanager-pwgen
myisam_ftdump mysql_tableinfo mysqlmanagerc
myisamchk mysql_waitpid mysqlshow
myisamlog mysql_zap mysqltest
myisampack mysqlaccess pack_isam
mysql mysqladmin perror
mysql_config mysqlbinlog replace
mysql_convert_table_format mysqlbug resolve_stack_dump
mysql_explain_log mysqlcheck resolveip
root@wizard[/home/web/mysql/bin]#mysql
mysql: Command not found.
root@wizard[/home/web/mysql/bin]#./mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
能看看吗?输入http://localhost/phpmyadmin/时出现:
Welcome to phpMyAdmin 2.5.7-pl1
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
Error
MySQL said:
#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
一样的错误是吧。为什么呢?密码,用户不对?我什么都没有设置。
还有,我以前用ports装过mysql,不过删除掉了,而且手动删除了它自动安装的目录和文件。不知有何影响。 |
|