Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t第一次启动MySQL服务器_Mysql - Fatal编程技术网

Can';t第一次启动MySQL服务器

Can';t第一次启动MySQL服务器,mysql,Mysql,我最近下载并安装了适用于Windows7的MySQL Server 5.6社区版。我已验证是否安装了以下所有设备: MySQL工作台6.0 CE MySQL连接器6.7.4 MySQL连接器Python MySQL连接器安装程序 MySQL通知程序1.1.4 MySQL服务器5.6 MySQL实用程序 为了第一次运行MySQL服务器,我在以下位置使用了说明: 和命令: "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld" 它无法启动,我得到

我最近下载并安装了适用于Windows7的MySQL Server 5.6社区版。我已验证是否安装了以下所有设备:

MySQL工作台6.0 CE MySQL连接器6.7.4 MySQL连接器Python MySQL连接器安装程序 MySQL通知程序1.1.4 MySQL服务器5.6 MySQL实用程序

为了第一次运行MySQL服务器,我在以下位置使用了说明:

和命令:

"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
*从命令提示符*

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
我不知道这意味着什么,也不知道在哪里可以解决它。在发送此邮件之前,我检查了屏幕右侧的类似问题,但没有一个解决此问题。与我类似的最接近的问题是:

但这没用


想法?

我只是猜测一下:

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以更好地解释情况

您给出的日志中没有错误。您需要为端口3306打开防火墙吗?可能是IPv6问题?如果您绑定到127.0.0.1而不是
*
,会发生什么?@Tim我的目标是在本地运行这个程序。我需要为此打开一个端口吗?@Wrikken我不知道怎么做,但如果你告诉我步骤,我会试试。@user4014:nah,现在我们有更多的错误,我们可以看到
C:\Program Files\MySQL\MySQL Server 5.6\data
对于启动
mysqld
的用户来说是不可写的。修复这些权限&你会没事的。忘了我提到的IPv6吧。我是这台计算机的所有者和唯一用户,所以我相信我被认为是管理员。我检查了数据文件夹的属性并单击了安全选项卡,以查看权限和管理员是否已将“允许”列中的所有内容都选中并显示为灰色。好的,我有点不清楚:即使对于管理员用户,写入程序文件的任何进程都必须通过UAC提升。要测试这是否是问题所在,请尝试将mysql安装到另一个文件夹或关闭UAC(仅出于安全原因暂时关闭)。