Initializing database mysql ошибка

Beginning configuration step: Initializing Database
Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 8.0.11...
Starting process with command: C:Program FilesMySQLMySQL Server 8.0binmysqld.exe --defaults-file="C:ProgramDataMySQLMySQL Server 8.0my.ini" --console --initialize-insecure=on...
2018-06-26T08:44:42.036600Z 0 [ERROR] [MY-011071] [Server] Unknown suffix '.' used for variable 'lower_case_table_names' (value '0.0')
2018-06-26T08:44:42.036600Z 0 [ERROR] [MY-011071] [Server] C:Program FilesMySQLMySQL Server 8.0binmysqld.exe: Error while setting value '0.0' to 'lower_case_table_names'
2018-06-26T08:44:42.036600Z 0 [ERROR] [MY-010119] [Server] Aborting
2018-06-26T08:44:42.036600Z 0 [Note] [MY-010120] [Server] Binlog end
Process for mysqld, with ID 3232, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.11.
Database initialization failed.
Ended configuration step: Initializing Database

I am having this error in log during the installing of MySQL on the application configuration part.

Dheeraj Vepakomma's user avatar

asked Jun 26, 2018 at 8:45

Chain Cross's user avatar

2

Resolved following these steps:
— Rollback installation until initial page and choose remove mysql server
— Uninstall from add/remove programs mysql community installer
— reboot
— install version mysql-installer-web-community-5.7.22.1 and select update when it asks.
— done

answered Jul 21, 2018 at 1:31

Rafael Souza's user avatar

1

First you have to uninstall mysql:

Step 1. control panel->programs and then uninstall whole mysql.

Step 2. delete folder MySQL from the following path.

  1. C:Program FilesMySQL
  2. C:Program Files (x86)MySQL
  3. C:ProgramDataMySQL (your programdata folder is hidden so you have to unhide from c drive->views->options->view ->show hidden files)
    4.C:Usershp(your pc name)AppDataRoamingMySQL

Step 3. windows+r write regedit.exe enter and follow the path and delete mysql ComputerHKEY_LOCAL_MACHINESYSTEMControlSet001Services

Step 4. control panel->administrative tool->services then find mysql copy name then open cmd run as administrative write (sc Delete «mysql name that you copied»)enter.

Now you can install MySQL

J. M. Arnold's user avatar

J. M. Arnold

5,9983 gold badges20 silver badges38 bronze badges

answered May 22, 2021 at 20:11

krishna's user avatar

The only way to get rid of this error is by allowing MySQL Installer to update when it prompts to do so at the beginning of the installation. Please note that you will get this error if you didn’t allow the installer to update.

Updating lower_case_table_names = 0 in my.ini doesn’t fix this because MySql will re-initialize it to 0.0 everytime before running the scripts.

If you didn’t allow updates, you will need to uninstall all components of MySql and run the installer again and let it update.

answered Jul 8, 2018 at 5:41

Abhijay Kumar's user avatar

Update the installer for mysql-installer-web-community-5.7.22.1 file during the installation from the web . I encountered the same problem, after updating the installer it works correctly.

answered Jul 19, 2018 at 10:49

Abdulwahid's user avatar

AbdulwahidAbdulwahid

3373 silver badges14 bronze badges

When I downgrade MySQL from 8.0.11 to 5.7.22, I encountered this error. Spend a lot of time to fix the bug. Finally, I fix this problem by the following steps:

  1. uninstall all the related features with MySql( use Control Panel > Programs and Features)
  2. go to C: drive, make all hidden files visible(view > hidden items), find ProgramData file
  3. delete the MySql file inside hidden ProgramData file manually.
    Make sure all the MySQL files are deleted, reinstall MySQL. It works for me. I successfully installed MySQL 5.7.22 without any problem.

My Guess: This error probably will happen if you are second or third time to install MySql server. It seems like the error happens because the old MySql files are not deleted completely. Usually, we all think that after we uninstall the application, the files are deleted from program files, it is clean, everything was done. However, there still some files hidden from us. We have to delete them by ourselves.

answered Jul 25, 2018 at 21:40

Elena's user avatar

ElenaElena

213 bronze badges

On bug page, last comment states that the latest installer solves this problem.
For me not. The following steps made me a clean install (after get the latest installer):

When it fails on database initialization step just cancel it back to the installer’s main page where you can see installed MySQL server with a reconfigure option.

Now edit the my.ini and set the

"lower_case_table_names=0.0"

to

"lower_case_table_names=0"

Click on reconfigure and now it goes over on this problem.

Hope it helps.

Jithin Scaria's user avatar

answered Jul 4, 2018 at 12:11

elbee's user avatar

I faced the same problem with 1.4.25 installer and resolved that by doing the following steps [without updating the installer]

  1. There is a folder MySQL Installer for WindowsManifestTemplates
  2. In Templates folder there are few text files which are there to be used as a template during my.ini generation. I have commented out the line lower_case_table_names=

Now I execute the configuration process using installer and it executes without any error.Also I add the variable later and restart the server.

answered Jul 24, 2018 at 20:28

Chandan's user avatar

When I installed mysql server, wizard of installation was stooped at the point initializing database (if necessary) for that I did.

  1. remove mysql folder from ‘C:ProgramData’ folder. Note: ProgramData is hidden. You need to make it visible.
  2. Uninstall mysql server if it was in the list of installed programs in control panel.
  3. Download mysql-installer-web-community-8.0.13.0 and install it again.

roschach's user avatar

roschach

8,25013 gold badges74 silver badges120 bronze badges

answered Dec 19, 2018 at 23:01

Deven Chavda's user avatar

Uninstall all mySql from the machine. It can be simply done from the control panel.
This might not solve the problem completely, so remove the mySql data from your machine. To do this, you need to delete from programdata folder. To access it press windows + r buttons and type %programdata% then press Enter. In there, you should find the mySql folder and delete it.

After completing above steps you completely deleted mySql 😀

You can now reinstall it

OTHER CASE

If this error occurs: installation missing VCRUNTIME140.dll and MSVCP140.dll missing in machine, then install it from this link, then run it again.

😀 Problem solved!

Aymendps's user avatar

Aymendps

1,3013 silver badges20 bronze badges

answered Jun 11 at 16:58

Chaitanya Nalam's user avatar

I had the same problem, tried to change my.ini did’t work, so I uninstalled the SQL server, then I google my operating system + Install MySQL videos (In my case «Install MySQL on Windows 8»), then I installed MySQL 5.6.26 then worked.
I think the newer MySQL doesn’t support certain old operating system.

answered Dec 30, 2022 at 11:01

Kevin's user avatar

KevinKevin

915 bronze badges

1

hi,

i try to install MySQl Server but an error appear during the configurations at this step «Initializing Database».b

this is the log:

Beginning configuration step: Stopping Server [if necessary]
Ended configuration step: Stopping Server [if necessary]

Beginning configuration step: Writing configuration file
Ended configuration step: Writing configuration file

Beginning configuration step: Updating firewall
Attempting to create firewall rule with command: netsh.exe  firewall delete portopening protocol=TCP port=3306 profile=ALL
Adding firewall rule for MySQL57 on port 3309.
Attempting to create firewall rule with command: netsh.exe  firewall add portopening protocol=TCP port=3309 profile=ALL name=MySQL57 mode=ENABLE scope=ALL
Successfully added firewall rule.
Ended configuration step: Updating firewall

Beginning configuration step: Adjusting Windows service [if necessary]
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows service [if necessary]

Beginning configuration step: Initializing Database [if necessary]
Deleting the data directory from a previous (failed) configuration...
Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 5.7.21...
Starting process with command: C:Program FilesMySQLMySQL Server 5.7binmysqld.exe --defaults-file="C:ProgramDataMySQLMySQL Server 5.7my.ini" --console --initialize-insecure=on...
2019-12-27T11:53:44.894282Z 0 [Warning] option 'read_buffer_size': unsigned value 0 adjusted to 8192
2019-12-27T11:53:44.894326Z 0 [Warning] option 'read_rnd_buffer_size': unsigned value 0 adjusted to 1
2019-12-27T11:53:44.894358Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-12-27T11:53:44.894366Z 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.
mysqld: File 'C:UsersPublicDocumentsWondershareCreatorTempib9E78.tmp' not found (Errcode: 13 - Permission denied)
2019-12-27T11:53:44.902762Z 0 [ERROR] InnoDB: Unable to create temporary file; errno: 13
2019-12-27T11:53:44.903251Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2019-12-27T11:53:44.903343Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2019-12-27T11:53:44.903439Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2019-12-27T11:53:44.903516Z 0 [ERROR] Failed to initialize builtin plugins.
2019-12-27T11:53:44.903597Z 0 [ERROR] Aborting
Process for mysqld, with ID 17160, was started successfully and exited with code 1.
Database initialization failed.
Ended configuration step: Initializing Database [if necessary]

What I have tried:

i uninstalled it & restart the computer also i deleted all MySQL files in the application data and program files then i tried to install it again but the same error appear.


Quote:

i try to install MySQl Server but an error appear during the configurations at this step «Initializing Database».

You should try to ask their support service.
Chances are that they know better than us.

File 'C:UsersPublicDocumentsWondershareCreatorTempib9E78.tmp' not found (Errcode: 13 - Permission denied)

There is the issue.

If I were confronted to this problem, I would try to install MySql using genuine original channel, and avoid using some sort of app installer (namely: wondershare) which may install God-knows-what onto my system:
MySql Community Downloads[^]

I changed my computer name from Chinese to English and it worked!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject,
20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8
+1 (416) 849-8900

9 ответов

Решено после следующих шагов:
— Откат установки до начальной страницы и удаление сервера mysql
— Удалить из программы установки/удаления программы mysql community installer
— перезагружать
— установите версию mysql-installer-web-community-5.7.22.1 и выберите обновление при запросе.
— сделанный

Rafael Souza
21 июль 2018, в 03:28

Поделиться

Единственный способ избавиться от этой ошибки — это позволить MySQL Installer обновить, когда он предложит сделать это в начале установки. Обратите внимание, что вы получите эту ошибку, если вы не позволили установщику обновиться.

Обновление lower_case_table_names = 0 в my.ini не исправляет это, потому что MySql будет повторно инициализировать его до 0.0 каждый раз перед запуском скриптов.

Если вы не разрешили обновления, вам нужно будет удалить все компоненты MySql и снова запустить установщик и обновить его.

Abhijay Kumar
08 июль 2018, в 07:10

Поделиться

Это ошибка в установщике 8.0.11. Изменения в переменной lower_case_table_names в новой версии. Увидеть:

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-11.html

Никто не может это исправить. Если вы устанавливаете сервер, configfile пишет перед новым. Каждый раз. Поэтому, если вы исправите это 0.0 до 0 в my.ini, изменения будут перезаписаны.

Кто-то должен сообщить об этой ошибке MySql.

EDIT: я сообщаю об ошибке для оракула: https://bugs.mysql.com/bug.php?id=91539

user6266369
03 июль 2018, в 16:18

Поделиться

Когда я понижаю MySQL с 8.0.11 до 5.7.22, я столкнулся с этой ошибкой. Потратьте много времени, чтобы исправить ошибку. Наконец, я исправляю эту проблему следующими шагами:

  1. удалите все связанные функции с помощью MySql (используйте Панель управления> Программы и компоненты)
  2. перейти на C: диск, сделать все скрытые файлы видимыми (просмотреть> скрытые элементы), найти файл ProgramData
  3. удалите файл MySql внутри скрытого файла ProgramData вручную. Убедитесь, что все файлы MySQL удалены, переустановите MySQL. Меня устраивает. Я успешно установил MySQL 5.7.22 без каких-либо проблем.

My Guess: Вероятно, эта ошибка произойдет, если вы установите второй сервер в MySql второй или третий раз. Похоже, что ошибка происходит, потому что старые файлы MySql не удаляются полностью. Обычно мы все думаем, что после удаления приложения файлы удаляются из файлов программ, все чисто, все сделано. Тем не менее, есть еще некоторые файлы, скрытые от нас. Мы должны удалить их сами.

Elena
25 июль 2018, в 21:50

Поделиться

Обновите установщик для файла mysql-installer-web-community-5.7.22.1 во время установки из Интернета. Я столкнулся с той же проблемой, после обновления программы установки он работает правильно.

Abdulwahid
19 июль 2018, в 12:44

Поделиться

Когда я установил сервер MySQL, мастер установки остановился в точке инициализации базы данных (если необходимо), что я и сделал.

  1. удалите папку mysql из папки «C:ProgramData». Примечание. ProgramData скрыта. Вы должны сделать это видимым.
  2. Удалите сервер mysql, если он был в списке установленных программ на панели управления.
  3. Загрузите mysql-installer-web-community-8.0.13.0 и установите его снова.

Deven Chavda
19 дек. 2018, в 23:46

Поделиться

Я столкнулся с такой же проблемой с установщиком 1.4.25 и решил, что выполнив следующие шаги [без обновления установщика]

  1. Существует папка MySQL Installer для WindowsManifestTemplates
  2. В папке » Шаблоны » имеется несколько текстовых файлов, которые должны использоваться в качестве шаблона во время генерации my.ini. Я прокомментировал строку lower_case_table_names=

Теперь я запускаю процесс настройки с помощью установщика, и он выполняется без ошибок. Также я добавляю эту переменную позже и перезапускаю сервер.

Chandan
24 июль 2018, в 21:58

Поделиться

На странице с ошибкой в последнем комментарии говорится, что последний установщик решает эту проблему. Для меня нет. Следующие шаги сделали меня чистой установкой (после получения последней установки):

Когда это не удается на этапе инициализации базы данных, просто отмените ее обратно на главную страницу установщика, где вы можете увидеть установленный сервер MySQL с параметром перенастройки.

Теперь отредактируйте my.ini и установите

"lower_case_table_names=0.0"

в

"lower_case_table_names=0"

Нажмите на переконфигурирование, и теперь это происходит по этой проблеме.

Надеюсь, поможет.

elbee
04 июль 2018, в 12:29

Поделиться

Ещё вопросы

  • 0Как вернуть слово с заглавной первой буквой
  • 1Listbox DataTemplate очистить текстовое поле при выборе
  • 1Python3: Как мне импортировать таблицу Excel в проект Python? (Я использую сайт repl.it для изучения python3)
  • 1Выполнить программу на Python из командной строки без файла скрипта
  • 1Как поставить приложение в фоновом режиме?
  • 1Использование ViewRenderer для рендеринга PartialView в ответе SignalR?
  • 1Добавление цветовой карты поверх плитки карты с помощью Bokeh
  • 0CHtml :: link () не создает ссылку
  • 0Как использовать React JSX внутри угловой директивы
  • 1Запустите пользовательский скрипт перед генерацией статического HTML с помощью Pelican
  • 0Получение электронной почты из Facebook GraphObject
  • 1Никакое исключение типа AuthenticationException не может быть брошено JAVA
  • 0Сохранить результат в Map в C ++, затем повторить и распечатать?
  • 1Замена определенного текста во всех сторонах ppt с использованием python-pptx
  • 1JavaScript. Ссылка на переменную, которая создается динамически
  • 1Как исправить ошибку Layoutinflator not found?
  • 1Объедините кучу разных данных в одну группу с несколькими столбцами
  • 0Передача переменной в скрипт действия формы
  • 0Добавить строку только если нет
  • 0Невозможно скомпилировать программу с twitcurl
  • 1Прочитать сообщение NDEF из тега два раза одним касанием (без перемещения телефона)
  • 0Большой массив удаления указателей
  • 0sqlsrv драйвер для Windows PHP PDO SQL сервер
  • 1Метод, который дал два целых числа, возвращает значение, которое ближе всего к 1000
  • 0Утверждение рейтинга звезд jquery
  • 0Управление конфликтом событий в родительско-дочернем div
  • 1оператор if, включая hover () и ширину окна
  • 1Удалите некоторые значения массива для утверждения (транспортир)
  • 1Java — длина буфера для записи файла
  • 1Request.ServerVariables.AllKeys не содержит все ключи
  • 0Вложенный / Рекурсивный класс в C ++
  • 1C # изменить порядок событий
  • 1Quartz.net 2.2.3 — Невозможно запустить службу Windows
  • 0Использование контроллеров, добавленных маршрутами, для объявления переменных $ scope в Angular JS?
  • 0Рекомендации JQuery: запускайте эффекты между элементами в последовательности
  • 0анимация ngAnimate не отображается
  • 0ссылки в tinyMce
  • 0Учебное пособие по Google Blobstore App Engine
  • 1Фильтрация слов в элементах списка по текстовому полю
  • 0Неверные разрешения при локальном запуске PHP-проекта Heroku с помощью Foreman в Ubuntu
  • 1Получить количество строк в изображении, используя AForge или OpenCV
  • 0Письма к числам с C ++ символами
  • 3ImportError: нет модуля с именем ‘yaml’
  • 1Android: сохранить соотношение для полной ширины и неопределенной высоты ImageView в ConstraintLayout?
  • 1iLNumerics не отображает мой 3D-график — график остается 2d
  • 1Создать «курсор» в середине слова
  • 0Javascript не работает, когда echo’d по php
  • 0Холст (Three.js) сценарий с Angular
  • 1INotifyPropertyИзмененное странное NullRefereneException

Initializing Database failure during installation.

Been all over the place to successfully install the MySQL server. This is the first time I encountered this problem. I would really love to get some help with this one. This the log file.

    Beginning configuration step: Writing configuration file

Saving my.ini configuration file...
Saved my.ini configuration file.
Ended configuration step: Writing configuration file

Beginning configuration step: Updating Windows Firewall rules

Adding a Windows Firewall rule for MySQL57 on port 3306.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 3306" protocol=TCP localport=3306 dir=in action=allow
Ok.


Successfully added the Windows Firewall rule.
Ended configuration step: Updating Windows Firewall rules

Beginning configuration step: Adjusting Windows service

Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows service

Beginning configuration step: Initializing database (may take a long time)

Deleting the data directory from a previous (failed) configuration...
Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 5.7.28...
Starting process with command: C:Program Files (x86)MySQLMySQL Server 5.7binmysqld.exe --defaults-file="C:ProgramDataMySQLMySQL Server 5.7my.ini" --console --initialize-insecure=on --lower-case-table-names=1...
2020-01-25T18:50:04.922896Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-01-25T18:50:04.922975Z 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.
2020-01-25T18:50:05.176935Z 0 [ERROR] InnoDB: Operating system error number 87 in a file operation.
2020-01-25T18:50:05.177911Z 0 [ERROR] InnoDB: File .ib_logfile101: 'aio write' returned OS error 187. Cannot continue operation
2020-01-25T18:50:05.178160Z 0 [ERROR] InnoDB: Cannot continue operation.
Process for mysqld, with ID 4568, was run successfully and exited with code 3.
Failed to start process for MySQL Server 5.7.28.
Database initialization failed.
Ended configuration step: Initializing database (may take a long time)

Thank you very much in advance.

The right side, ie /var/lib/mysql, is relative to the file system in the container, not the VM. So using your compose file will mount the /media/windows-share/docker-sonar-volume/var/lib/mysql directory as /var/lib/mysql in the container, so its contents are very relevant. It should either be empty so that starting the MySQL container will fill it with its initial database files, or it should be already populated by a previous MySQL server (the MySQL server major/minor version, like «5.7», should be the same, though there are ways to upgrade between versions).

It should look something like the following. The database file that we look for in the entrypoint script to determine if the folder already contains an initialized database is mysql.

root@39ae6038c8e2:/# ls -l /var/lib/mysql
total 188476
-rw-r----- 1 mysql mysql       56 Apr 28 23:04 auto.cnf
-rw------- 1 mysql mysql     1679 Apr 28 23:04 ca-key.pem
-rw-r--r-- 1 mysql mysql     1074 Apr 28 23:04 ca.pem
-rw-r--r-- 1 mysql mysql     1078 Apr 28 23:04 client-cert.pem
-rw------- 1 mysql mysql     1679 Apr 28 23:04 client-key.pem
-rw-r----- 1 mysql mysql     1321 Apr 28 23:04 ib_buffer_pool
-rw-r----- 1 mysql mysql 50331648 Apr 28 23:04 ib_logfile0
-rw-r----- 1 mysql mysql 50331648 Apr 28 23:04 ib_logfile1
-rw-r----- 1 mysql mysql 79691776 Apr 28 23:04 ibdata1
-rw-r----- 1 mysql mysql 12582912 Apr 28 23:04 ibtmp1
drwxr-x--- 2 mysql mysql     4096 Apr 28 23:04 mysql
drwxr-x--- 2 mysql mysql     4096 Apr 28 23:04 performance_schema
-rw------- 1 mysql mysql     1675 Apr 28 23:04 private_key.pem
-rw-r--r-- 1 mysql mysql      451 Apr 28 23:04 public_key.pem
-rw-r--r-- 1 mysql mysql     1078 Apr 28 23:04 server-cert.pem
-rw------- 1 mysql mysql     1675 Apr 28 23:04 server-key.pem
drwxr-x--- 2 mysql mysql    12288 Apr 28 23:04 sys

Возможно, вам также будет интересно:

  • Initializeatkacpidevice returns false как исправить ошибку
  • Inpagecofire код состояния ошибки c0000185
  • Inpa ошибки при диагностике
  • Inpa ошибки на русском
  • Inpa ошибка sys 0005

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии