操作系统: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 distributionCopyright (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 licenseSegmentation fault

解决方案 »

  1.   

    执行 /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 distributionCopyright (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 licenseSegmentation fault就退出mysql命令了。
      

  2.   

    没遇到过    先重启下mysql服务