可以到安装目录的bin下面,
cd D:/programs/mysql-5.1.52-win32/bin
执行命令
mysqld --console
看到类似
101121 16:21:59 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
101121 16:21:59 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
101121 16:22:00 InnoDB: Started; log sequence number 0 44233
101121 16:22:00 [Note] Event Scheduler: Loaded 0 events
101121 16:22:00 [Note] mysqld: ready for connections.
Version: '5.1.52-community' socket: '' port: 3306 MySQL Community Server (GPL)
就可以了。
建议:
可以把路径(我的是D:/programs/mysql-5.1.52-win32/bin)加到环境变量path里。这样就可以直接在命令行里执行
mysqld --console
而不用到目录下了。
当然,建议你建一个文本文件(start_mysql_server.txt)写入
mysqld --console
把后缀改为bat(start_mysql_server.bat,批处理文件).。将该文件保存到桌面,这样要启动mysql服务就可以双击运行该文件了。