之前,我在Windows Server 2003、2008和2012中使用过不同版本的EasyPHP,并且没有任何问题。现在,我已经在Windows Server 2008 R2中安装了EasyPHP DevServer 17(包括MySQL 5.7.17)。我不修改my.ini。当我运行MySQL(在EasyPHP仪表板中)时,会导致以下情况:
2018-08-06T08:08:57.999834Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-08-06T08:08:57.999834Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2018-08-06T08:08:57.999834Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2018-08-06T08:08:57.999834Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-08-06T08:08:57.999834Z 0 [Note] ...\eds-dbserver.exe (mysqld 5.7.17-log) starting as process 3980 ...
2018-08-06T08:08:58.046634Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2018-08-06T08:08:58.046634Z 0 [Note] InnoDB: Uses event mutexes
2018-08-06T08:08:58.046634Z 0 [Note] InnoDB: Memory barrier is not used
2018-08-06T08:08:58.046634Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-08-06T08:08:58.046634Z 0 [Note] InnoDB: Number of pools: 1
2018-08-06T08:08:58.046634Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2018-08-06T08:08:58.046634Z 0 [Note] InnoDB: Initializing buffer pool, total size = 20M, instances = 1, chunk size = 20M
2018-08-06T08:08:58.046634Z 0 [Note] InnoDB: Completed initialization of buffer pool
2018-08-06T08:08:58.062235Z 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
2018-08-06T08:08:58.062235Z 0 [ERROR] InnoDB: Operating system error number 3 in a file operation.
2018-08-06T08:08:58.062235Z 0 [ERROR] InnoDB: The error means the system cannot find the path specified.
2018-08-06T08:08:58.062235Z 0 [ERROR] InnoDB: If you are installing InnoDB, remember that you must create directories yourself, InnoDB does not create them.
2018-08-06T08:08:58.062235Z 0 [ERROR] InnoDB: File ${path}\binaries\mysql\data\ibdata1: 'create' returned OS error 103. Cannot continue operation
2018-08-06T08:08:58.062235Z 0 [ERROR] InnoDB: Cannot continue operation.
我检查了文件夹,但我认为问题不在于安装文件夹或任何子文件夹的权限(但我不确定100%)。
我在“ File $ {path)...”行中注意,现在EasyPHP版本不创建此路径(创建“ eds-binaries \ dbserver \ mysql5717 ...”)。所以我尝试将my.ini修改为以下行添加到文件末尾:
innodb_data_home_dir = "...path/mysql5717x86xrandomnumber/data/"
innodb_data_file_path = ibdata1:12M:autoextend
innodb_log_group_home_dir = "...path/mysql5717x86xrandomnumber/data/"
此行显示在EasyPHP DevServer 14.1的my.ini中。如果我现在运行MySQL,它可以工作,但是在日志文件中会出现很多警告和错误,其中许多警告与错误有关,无法打开某些从属表以及某些performance_schema表的错误定义。
它无法成功运行,例如更改数据库的用户选项。
感谢前进。