LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 712|回复: 3

源码安装mysql启不来,不知为何。

[复制链接]
发表于 2004-7-27 15:21:45 | 显示全部楼层 |阅读模式
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,不过删除掉了,而且手动删除了它自动安装的目录和文件。不知有何影响。
发表于 2004-7-27 16:54:36 | 显示全部楼层

最终的原因是你的

MYSQL服务没有起动。
 楼主| 发表于 2004-7-27 21:00:13 | 显示全部楼层
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:
#1045 - Access denied for user: 'root@localhost' (Using password: NO)
怎么我在/etc/rc.conf中加入:
/home/web/mysql/bin/mysqld_safe --user=mysql --socket=/tmp/mysql.sock &
使得在开机时启动mysqld。为什么不能打开phpmyadmin呢?已经有mysqld进程在运行哪。应该在/etc/rc.conf中加入什么样的参数?

这是什么问题呢?mysqld已经运行了。。。
发表于 2004-7-28 09:14:21 | 显示全部楼层
最初由 Andy84920 发表
怎么我在/etc/rc.conf中加入:
/home/web/mysql/bin/mysqld_safe --user=mysql --socket=/tmp/mysql.sock &
使得在开机时启动mysqld。为什么不能打开phpmyadmin呢?已经有mysqld进程在运行哪。应该在/etc/rc.conf中加入什么样的参数?

这是什么问题呢?mysqld已经运行了。。。


在配置文件里修改密码了否?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表