QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 580|回复: 2

mysql启动不了,我不知道怎么办

[复制链接]
发表于 2003-5-21 00:22:40 | 显示全部楼层 |阅读模式
[root@jiajia root]# cd /usr/bin
[root@jiajia bin]# ./mysql_install_db

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 !
This is done with:
/usr/bin/mysqladmin -u root password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

Please report any problems with the /usr/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 http://www.tcx.se/license.htmy.

[root@jiajia bin]# ./safe_mysqld
Starting mysqld daemon with databases from /var/lib/mysql
mysqld daemon ended
[root@jiajia bin]# ./mysqladmin version
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
我的mysql.sock为空文件。怎么回事,也不在所指的目录。
但用ntsysv可以看到mysql启动了。用ps aux可以看到有mysql启动
我不知道怎么一回事,我是刚学这个的。
发表于 2003-5-22 09:06:01 | 显示全部楼层
那你能进入mysql吗?
回复

使用道具 举报

发表于 2003-5-22 16:51:40 | 显示全部楼层
你的mysql并掼正确启动,而是出错自动结束。可以看一下日志文件,里面一般有出错提示
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 16:56 , Processed in 0.031282 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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