我的mysql数据库无法登陆

lanbaibai 2012-04-10 11:41:06
操作系统:Ubuntu 8.04.4,mysql:源码安装,mysql-5.1.57.tar,
安装没有报错,数据库也启动了,但是无法登陆
在本机用root登陆报错
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.57-log Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Segmentation fault
...全文
90 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
lanbaibai 2012-04-10
  • 打赏
  • 举报
回复
执行 /data/mysql5157src/bin/mysql -uroot -p -S /tmp/mysql.sock后
出现以下内容:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.57-log Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Segmentation fault

就退出mysql命令了。
lanbaibai 2012-04-10
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
检查一下MYSQL的错误日志。
[/Quote]

err日志没有报错。
blueaha 2012-04-10
  • 打赏
  • 举报
回复
报错信息是什么?
ACMAIN_CHM 2012-04-10
  • 打赏
  • 举报
回复
检查一下MYSQL的错误日志。
Rotel-刘志东 2012-04-10
  • 打赏
  • 举报
回复
原来是未编译所引起的。
Rotel-刘志东 2012-04-10
  • 打赏
  • 举报
回复
具体的登录不上数据库的日志文件看一下,从中找到其原因了。
lanbaibai 2012-04-10
  • 打赏
  • 举报
回复
重新编译后解决问题。
rucypli 2012-04-10
  • 打赏
  • 举报
回复
没遇到过 先重启下mysql服务

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧