LinuxSir.cn,穿越时空的Linuxsir!

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

还是装MYSQL的问题

[复制链接]
发表于 2004-8-28 08:37:59 | 显示全部楼层 |阅读模式
我在FC2下装MYSQL,可还是启动不了。
[root@localhost root]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@localhost root]#

我忘了上次我是怎么弄好的了。但还是不行。不过上次弄好的时候,在启动系统时,有显示启动了MYSQL服务。有谁知道如何处理吗?谢谢。
发表于 2004-8-28 09:51:32 | 显示全部楼层
#/etc/init.d/mysql start
不一定适合红帽子 你试试看吧
 楼主| 发表于 2004-8-28 11:46:54 | 显示全部楼层
[root@localhost root]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@localhost root]#

[root@localhost init.d]# ./mysqld start
Timeout error occurred trying to start MySQL Daemon.
启动 MySQL:                                               [失败]
[root@localhost init.d]#

[root@localhost bin]# ./mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
040828 11:47:46  /usr/local/mysql/libexec/mysqld: Shutdown Complete


To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/local/mysql/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

[root@localhost bin]# ./mysqld_safe &
[1] 2831
[root@localhost bin]# Starting mysqld daemon with databases from /home/data
040828 11:48:42  mysqld ended

mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[1]+  Done                    ./mysqld_safe
[root@localhost bin]#
错就是这些。
 楼主| 发表于 2004-8-29 09:30:03 | 显示全部楼层
 楼主| 发表于 2004-8-31 11:21:19 | 显示全部楼层
sdm
 楼主| 发表于 2004-8-31 19:58:15 | 显示全部楼层
sdm
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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