提示信息"can not start the server jdbc error 0"这是怎么回事啊?我选择的是server machine模式。

解决方案 »

  1.   

    到你的datadir中看一下xxxxx.err日志文件内容。贴出来大家一起看一下。
      

  2.   

    没找到大哥说的那个错误日志的位置,当我选择developer machine 时就可以通过。真到底是什么意思?
      

  3.   

    在你的mysql安装目录中先找一下my.ini文件,打开后找一下log的存放位置,如果没有默认是在datadir这个选项中。
      

  4.   

    InnoDB: The first specified data file .\ibdata1 did not exist:
    InnoDB: a new database to be created!
    090507  8:08:27  InnoDB: Setting file .\ibdata1 size to 10 MB
    InnoDB: Database physically writes the file full: wait...
    090507  8:08:27  InnoDB: Log file .\ib_logfile0 did not exist: new to be created
    InnoDB: Setting log file .\ib_logfile0 size to 82 MB
    InnoDB: Database physically writes the file full: wait...
    090507  8:08:28  InnoDB: Log file .\ib_logfile1 did not exist: new to be created
    InnoDB: Setting log file .\ib_logfile1 size to 82 MB
    InnoDB: Database physically writes the file full: wait...
    InnoDB: Doublewrite buffer not found: creating new
    InnoDB: Doublewrite buffer created
    InnoDB: Creating foreign key constraint system tables
    InnoDB: Foreign key constraint system tables created
    090507  8:08:30  InnoDB: Started; log sequence number 0 0
    090507  8:08:30 [Note] Event Scheduler: Loaded 0 events
    090507  8:08:30 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: ready for connections.
    Version: '5.1.32-community'  socket: ''  port: 3306  MySQL Community Server (GPL)
    090507 10:26:34 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: Normal shutdown090507 10:26:34 [Note] Event Scheduler: Purging the queue. 0 events
    090507 10:26:34  InnoDB: Starting shutdown...
    090507 10:26:35  InnoDB: Shutdown completed; log sequence number 0 46409
    090507 10:26:35 [Warning] Forcing shutdown of 1 plugins
    090507 10:26:35 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: Shutdown complete090507 10:26:37  InnoDB: Started; log sequence number 0 46409
    090507 10:26:37 [Note] Event Scheduler: Loaded 0 events
    090507 10:26:37 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: ready for connections.
    Version: '5.1.32-community'  socket: ''  port: 3306  MySQL Community Server (GPL)
    090507 10:27:36 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: Normal shutdown090507 10:27:36 [Note] Event Scheduler: Purging the queue. 0 events
    090507 10:27:36  InnoDB: Starting shutdown...
    090507 10:27:37  InnoDB: Shutdown completed; log sequence number 0 46409
    090507 10:27:37 [Warning] Forcing shutdown of 1 plugins
    090507 10:27:37 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: Shutdown complete090507 10:27:38  InnoDB: Started; log sequence number 0 46409
    090507 10:27:38 [Note] Event Scheduler: Loaded 0 events
    090507 10:27:38 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: ready for connections.
    Version: '5.1.32-community'  socket: ''  port: 3306  MySQL Community Server (GPL)
      

  5.   

    从你的日志中看,第一次已经成功了。8:08:27 开始启动,8:08:30已经可以开始接收连接了。090507 10:26:34正常关闭开始。InnoDB: The first specified data file .\ibdata1 did not exist:
    InnoDB: a new database to be created!
    090507  8:08:27  InnoDB: Setting file .\ibdata1 size to 10 MB
    InnoDB: Database physically writes the file full: wait...
    090507  8:08:27  InnoDB: Log file .\ib_logfile0 did not exist: new to be created
    InnoDB: Setting log file .\ib_logfile0 size to 82 MB
    InnoDB: Database physically writes the file full: wait...
    090507  8:08:28  InnoDB: Log file .\ib_logfile1 did not exist: new to be created
    InnoDB: Setting log file .\ib_logfile1 size to 82 MB
    InnoDB: Database physically writes the file full: wait...
    InnoDB: Doublewrite buffer not found: creating new
    InnoDB: Doublewrite buffer created
    InnoDB: Creating foreign key constraint system tables
    InnoDB: Foreign key constraint system tables created
    090507  8:08:30  InnoDB: Started; log sequence number 0 0
    090507  8:08:30 [Note] Event Scheduler: Loaded 0 events
    090507  8:08:30 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: ready for connections.
    Version: '5.1.32-community'  socket: ''  port: 3306  MySQL Community Server (GPL)
    090507 10:26:34 [Note] C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld: Normal shutdown