-1

I recently downloaded and installed MySQL Server 5.6 Community Edition for Windows 7. I verified that all of the following was installed:

MySQL Workbench 6.0 CE MySQL Connector 6.7.4 MySQL Connector Python MySQL Connector Installer MySQL Notifier 1.1.4 MySQL Server 5.6 MySQL Utilties

To run MySQL Server for the first time I used the instructions at:

http://dev.mysql.com/doc/refman/5.6/en/windows-server-first-start.html

and the command:

"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld"

It was unable to start and I was given the following error. * Corrected, see further below *

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)

* From the command prompt *

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

I'm not sure what this means or where to turn to on fixing it. I checked the similar questions located on the right side of my screen before I sent this and none of them address this. The closest question similar to mine is this:

but it doesn't help.

Thoughts?

4

1 回答 1

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_dirand innodb_log_group_home_dir)语句来更改数据位置,或者只是将 MySql 安装到其他文件夹(对于第一次测试可能更容易)或关闭 UAC。

编辑:添加 UAC 以更好地解释情况

于 2013-09-13T07:01:20.110 回答