Можно ли в OpenServer как-нибудь изменить папку для хранения БД — как для хранения доменов?
Здравствуйте.
Я хожу на работу с жестким диском и на работе выбираю в OpenServer папку domains - на этом жесткоим диске. Чтобы не перекачивать туда-сюда проекты.
А можно ли сделать что-то подобное с папкой, где лежат БД?
Я поменял datadir на такой: datadir = "I:\\1Develop\\userdata\\%mysql_driver%"
И openserver не запускается. Прикладываю лог. Подскажите, пожалуйста, как сделать, чтобы запускался с измененным datadir.
2019-08-25T21:15:19.106973Z 0 [Note] d:\1develop\modules\database\MySQL-5.7-x64\bin\mysqld.exe (mysqld 5.7.20) starting as process 8148 ...
2019-08-25T21:15:19.119956Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-08-25T21:15:19.119956Z 0 [Note] InnoDB: Uses event mutexes
2019-08-25T21:15:19.119956Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2019-08-25T21:15:19.120957Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2019-08-25T21:15:19.120957Z 0 [Note] InnoDB: Number of pools: 1
2019-08-25T21:15:19.120957Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2019-08-25T21:15:19.125953Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-08-25T21:15:19.133949Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-25T21:15:19.147941Z 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
2019-08-25T21:15:19.151938Z 0 [ERROR] InnoDB: redo log file '.\ib_logfile0' exists. Creating system tablespace with existing redo log files is not recommended. Please delete all redo log files before creating new system tablespace.
2019-08-25T21:15:19.151938Z 0 [ERROR] InnoDB: InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2019-08-25T21:15:19.353815Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2019-08-25T21:15:19.353815Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-08-25T21:15:19.353815Z 0 [ERROR] Failed to initialize plugins.
2019-08-25T21:15:19.353815Z 0 [ERROR] Aborting
2019-08-25T21:15:19.353815Z 0 [Note] Binlog end
2019-08-25T21:15:19.355813Z 0 [Note] Shutting down plugin 'CSV'
2019-08-25T21:15:19.357812Z 0 [Note] d:\1develop\modules\database\MySQL-5.7-x64\bin\mysqld.exe: Shutdown complete