我最近下载并安装了适用于Windows 7的MySQL Server 5.6 Community Edition。我确认已安装以下所有内容:
MySQL Workbench 6.0 CE MySQL连接器6.7.4 MySQL Connector Python MySQL连接器安装程序 MySQL Notifier 1.1.4 MySQL Server 5.6 MySQL Utilties
我第一次运行MySQL服务器时使用了以下指令:
http://dev.mysql.com/doc/refman/5.6/en/windows-server-first-start.html
和命令:
"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld"
无法启动,我收到以下错误。 *已更正,请参阅下方*
2013-09-12 22:14:47 10768 [Note] Plugin 'FEDERATED' is disabled.
2013-09-12 22:14:47 10768 [Warning] option 'innodb-autoextend-increment': unsigned value 67108864 adjusted to 1000
2013-09-12 22:14:47 3a14 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2013-09-12 22:14:48 10768 [Note] InnoDB: The InnoDB memory heap is disabled
2013-09-12 22:14:48 10768 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2013-09-12 22:14:48 10768 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-09-12 22:14:48 10768 [Note] InnoDB: Not using CPU crc32 instructions
2013-09-12 22:14:48 10768 [Note] InnoDB: Initializing buffer pool, size = 45.0M
2013-09-12 22:14:48 10768 [Note] InnoDB: Completed initialization of buffer pool
2013-09-12 22:14:49 10768 [Note] InnoDB: Highest supported file format is Barracuda.
2013-09-12 22:14:50 10768 [Note] InnoDB: 128 rollback segment(s) are active.
2013-09-12 22:14:50 10768 [Note] InnoDB: Waiting for purge to start
2013-09-12 22:14:50 10768 [Note] InnoDB: 5.6.13 started; log sequence number 8525811
2013-09-12 22:14:50 10768 [Note] Server hostname (bind-address): '*'; port: 3306
2013-09-12 22:14:50 10768 [Note] IPv6 is available.
2013-09-12 22:14:50 10768 [Note] - '::' resolves to '::';
2013-09-12 22:14:50 10768 [Note] Server socket created on IP: '::'.
2013-09-12 22:14:52 10768 [Note] Event Scheduler: Loaded 0 events
2013-09-12 22:14:52 10768 [Note] C:/Program Files/MySQL/MySQL Server 5.6/bin\mysqld: ready for connections.
Version: '5.6.13' socket: '' port: 3306 MySQL Community Server (GPL)
*从命令提示符*
C:\>"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld"
2013-09-12 23:39:36 0 [Warning] TIMESTAMP with implicit DEFAULT value is depreca
ted. Please use --explicit_defaults_for_timestamp server option (see documentati
on for more details).
2013-09-12 23:39:36 14452 [Warning] Can't create test file C:\Program Files\MySQ
L\MySQL Server 5.6\data\Stinker.lower-test
2013-09-12 23:39:36 14452 [Warning] Can't create test file C:\Program Files\MySQ
L\MySQL Server 5.6\data\Stinker.lower-test
2013-09-12 23:39:36 14452 [Note] Plugin 'FEDERATED' is disabled.
2013-09-12 23:39:36 14452 [Note] InnoDB: The InnoDB memory heap is disabled
2013-09-12 23:39:36 14452 [Note] InnoDB: Mutexes and rw_locks use Windows interl
ocked functions
2013-09-12 23:39:36 14452 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-09-12 23:39:36 14452 [Note] InnoDB: Not using CPU crc32 instructions
2013-09-12 23:39:36 14452 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2013-09-12 23:39:36 14452 [Note] InnoDB: Completed initialization of buffer pool
2013-09-12 23:39:36 14452 [ERROR] InnoDB: .\ibdata1 can't be opened in read-writ
e mode
2013-09-12 23:39:36 14452 [ERROR] InnoDB: The system tablespace must be writable
!
2013-09-12 23:39:36 14452 [ERROR] Plugin 'InnoDB' init function returned error.
2013-09-12 23:39:36 14452 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGI
NE failed.
2013-09-12 23:39:36 14452 [ERROR] Unknown/unsupported storage engine: InnoDB
2013-09-12 23:39:36 14452 [ERROR] Aborting
2013-09-12 23:39:36 14452 [Note] Binlog end
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'partition'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWOR
D'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_METRICS'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESE
T'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_CMPMEM'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_CMP'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_LOCKS'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'INNODB_TRX'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'BLACKHOLE'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'ARCHIVE'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'MRG_MYISAM'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'MyISAM'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'MEMORY'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'CSV'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'sha256_password'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'mysql_old_password'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'mysql_native_password'
2013-09-12 23:39:36 14452 [Note] Shutting down plugin 'binlog'
2013-09-12 23:39:36 14452 [Note] C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld: Shutdown complete
我不确定这意味着什么或在何处转向修复它。在我发送之前,我检查了屏幕右侧的类似问题,但没有人解决这个问题。与我类似的最接近的问题是:
但它没有帮助。
思想?
答案 0 :(得分:0)
从我的角度猜测:
Can't create test file C:\Program Files\MySQL\MySQL Server 5.6\data\Stinker.lower-test
在Windows7中,程序文件文件夹只能由具有管理权限的用户在回答UAC提示符后写入(如果UAC处于活动状态)。因此,当您的数据文件夹位于该文件夹中时,mysqld必须以管理员权限运行,并且该过程必须以某种方式提升。
您可以尝试通过更改.ini文件中的datadir =...
(可能innodb_data_home_dir
和innodb_log_group_home_dir
)语句来更改数据位置,或者只是将MySql安装到其他文件夹(可能更容易进行第一次测试)或关闭UAC。
编辑添加了UAC以更好地解释情况