Во время процесса установки MySQL net start mysql не запускался и сообщал об ошибке 2, системе не удалось найти файл.
Ошибка 2, система не может найти файл.
Пуск … Выполнить … regedit Ключ реестра:
HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -? services -> mysql -> ImagePath
«D:MySQLmysql-5.6.24-winx64binmysqld» mysql
Предыдущий путь — это каталог декомпрессии MySQL.
Интеллектуальная рекомендация
Жадный алгоритм
Эта статья относится к книге «Графический алгоритм» Во-первых, прежде чем понимать жадный алгоритм, сначала нужно понятьNP полная проблема Полная проблема NP (проблема NP-C) является одной и…
Многопоточный
Обязательное выполнение не выполняется, как и ожидалось 1. Причиной каждого принуждения является новый NW () поток 2. Он выполняется одновременно перед разрезанием Решите код…
ssh localhost ( )
ssh locahost , , test, test, 1 ssh localhost: $ ssh localhost Вывод выглядит следующим образом: 2 ssh localhost, : $ ssh-keygen -t dsa -P » -f ~/.ssh/id_dsa $ cat ~/.ssh/id_dsa.pub >> ~/.ssh/au…
Вам также может понравиться
Ifeq Multi -Condition в makefile
Ifeq Multi -Condition в makefile 21 августа 2015 г. 20:14:23liwugang43210Количество чтения 42340 Заявление об авторском праве: эта статья является оригинальной статьей блоггеров. Если вы переиздаете, …
socket API(linux)
функция 1.socket (1) определение Роль: Создать сокет (2) Параметры domain Установка домена сети связи, то есть настройки протокола связи: имя имея в виду AF_UNIX, AF_LOCAL Местная связь AF_INET …
https://www.jianshu.com/p/6d8ed7c36e6f
368160;-net start mysql29616;- 38169;- 35823s;
error 2 has occurred. The system cannot find the file specified.
Solution:
run as an administrator and enter the installation path of CD + MySQL bin directory on the command line
C:WINDOWSsystem32>cd C:softerwaresettingmySQLmysql-8.0.11-winx64bin
C:softerwaresettingmySQLmysql-8.0.11-winx64bin>mysqld --remove
Service successfully removed.
C:softerwaresettingmySQLmysql-8.0.11-winx64bin>mysqld --install
Service successfully installed.
C:softerwaresettingmySQLmysql-8.0.11-winx64bin>net start mysql
The MySQL service is starting.
The MySQL service was started successfully.
Read More:
WMix
герр M:)ller
Партнер клуба
-
#2
логи в в системной утилите не знаю как по русски «irgendwelche eventView unter der systemsteuerung (system control)»
win+r eventvwr.msc если еще так
Последнее редактирование: 23 Окт 2013
WMix
герр M:)ller
Партнер клуба
-
#5
если чесно трудно сказать чтонить, возможно не админом запускаешь, или запускать надо не из командной строки а через сервисы.
возможно указаный файл —defaults-file=C:/mysql/my.ini не досигаем (права). да и виндовс не держал уже года 3-4
-
#7
Windows cmd и другие программы нормально кушают правильные слеши. Также и в PHP под Win совсем необязательно мучаться с DIRECTORY_SEPARATOR — слеш канает везде.
Уважаемые форумчане!!!
Не могу никак запустить на чистой системе Windows 7 x64, MySQL сервер из zip-архива.
Помогите разобраться с проблемой. Ставлю связку Apache + PHP + MySQL
Скачал c dev.mysql.com zip-архив и решил сделать ручной запуск без msi-установщика.
Разархивировал содержимое в «C:mysql-5.6.38-winx64»
Настроил my.ini под распакованные файлы сервера. Создал директории logs, data, files, tmp.
Для установки использую cmd.exe от имени Администратора. В ответах консоли ошибок вроде бы нет…
Но фактически ничего не запускается!???
PHP и APACHE поставились вручную и работают в штатном порядке, это просто к слову…
Привожу сводку:
Состав каталога «C:mysql-5.6.38-winx64»
Код
|-- [DIR] bin |-- [DIR] docs |-- [DIR] include |-- [DIR] lib |-- [DIR] share |-- [DIR] mysql-test |-- [DIR] scripts |-- [DIR] sql-bench |-- COPYING |-- my.ini |-- README |-- [DIR] data - [создан вручную] |-- [DIR] files - [создан вручную] |-- [DIR] logs - [создан вручную] |-- [DIR] tmp - [создан вручную]
my.ini
Код
#Распаковано из zip-архива в директорию для сервера C:mysql-5.6.38-winx64 [client] port=3306 socket="C:/mysql-5.6.38-winx64" default-character-set=utf8 [mysqld] default-storage-engine = InnoDB default_tmp_storage_engine = InnoDB character-set-server=utf8 collation-server=utf8_general_ci character-set-server=utf8 collation-server=utf8_general_ci innodb_buffer_pool_size = 512M basedir="C:/mysql-5.6.38-winx64" datadir="C:/mysql-5.6.38-winx64/data" port=3306 socket="C:/mysql-5.6.38-winx64/tmp/mysql.sock log_syslog=0 bind-address=127.0.0.1 skip-external-locking [mysqld-5.7] sql_mode=TRADITIONAL [mysqldump] quick [mysqladmin] force [mysql] no-auto-rehash
Предварительно установлен пакет Microsoft Visual C++ 2010 для решения ошибки MSVCR100.dll (ошибка перестала появляться)
cmd.exe последовательность
Код
C:WindowsSystem32>path PATH=C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:mysql-5.6.38-winx64bin C:WindowsSystem32>mysqld --install Service successfully installed. C:WindowsSystem32>mysqld --install The service already exists! The current server installed: "C:Program FilesMySQLMySQL Server 5.6mysqld" MySQL C:WindowsSystem32>mysqld --initialize--console 2018-01-14 15:16:39 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-01-14 15:16:39 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2018-01-14 15:16:39 0 [Note] mysqld (mysqld 5.6.38) starting as process 1448 ... C:WindowsSystem32>net start mysql Системная ошибка 2. C:WindowsSystem32>mysql.exe ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
И тут первое что бросается в глаза, это: The current server installed: «C:Program FilesMySQLMySQL Server 5.6mysqld»
Откуда берётся такая директория? После
mysqld —install
служба MySQL отображается в списке служб Windows. По указанной причине вызывает ошибку #2 и не может запуститься.
Следующая непонятная аномалия «mysqld (mysqld 5.6.38) starting as process 1448».. но в Диспетчере задач Windows новых процессов не запускается?
Помогите как с этим разобраться и что поможет решить проблему?
KevPerkins
asked on 7/1/2004
I am a total newbie to MySQL. I’m in a position where I need to grasp MySQL and FAST!!!!
I have been really struggling. I was first getting the Error 2003 but after following the advice in one of the Experts Exchange forums it dissappeared…..only to be replaced by :
The MySQL service could not be started.
A system error has ocurred.
System Error 1067 has ocurred.
The process was terminated unexpectedly.
Please could somebody help me. I’m desperate!
MySQL Server
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a
7-Day free trial
and enjoy unlimited access to the platform.
OK, I’ve tried the my.cnf changes and nothing seems to work. When Itry to start the service I get the following:
c:mysqlbin> net start mysql
System error 2 has occurred
The system cannot find the file specified
Should I try and uninstall and start again? If so could you tell me how to uninstall MySQL because every time try it won’t let me do it (even though I have dministrator rights on my machine.
Things are way beyond desperate now…
yes it would be better to reinstall mysql :
— kill the mysqld-nt.exe process with the task manager if it exists.
— delete the directory c:mysql and all subdirectories
— delete c:windowsmy.ini
— reinstall mysql, preferably stable version (4.0.20)
— run c:mysqlbinwinmysqladmin.exe it will ask you a user and a password. enter whatever you want it will not be used
— you should have an icon in the system tray, right click, Winnt / Install the service and net start mysql
— add c:mysqlbin to your path
— try to log to mysql using : mysql -u root
This is a windows installation. The configuration file is in /windows or /winnt and the name is my.ini. Rename my.in and start mysql using winmysqladmin. If you want to reinstall I recommend using the zip to install mysql, not the exe with installer. There is a new version mysql 4.0.20.d for windows.
thanks, i’ll give it try and get back to you.
Hi. You should check the error messages Mysql stored in it’s .err file. This file is either mysqldatamysql.err or mysqldataname.err (where «name» is your machine’s name).
I once had this problem and it was a wrong size in innodb logs. I just deleted the logs and mysql started to work again (I could do that ‘cos I didn’t care for the data…)
good luck,
krahd.
>System Error 1067 has ocurred.
>The process was terminated unexpectedly.
I had the same problem in oracle database. I explored internet much and finaly I found reson.
In my case the problem was in different names my computer — when after I installed oracle database I change name of my computer. When re-establish old name the service started without errors
There are dwo links — mabye will help you…
http://www.orafaq.com/forum/t/43502/0/
http://www.4d.fr/documentation/4DDoc67/CMU/CMU11672.HTM
I had this 1067 error when upgrading from 4.1 to 5.
Once I deleted the old 4.1 directory it worked. Path problem maybe.
I deleted c:mysql and it worked.
I solved this problem!
I had the problem with Oracle.
It failed to start the 2nd service OracleServiceXE
because the path was wrong. I manually fixed it. (using knowledge from the Oracle uninstall manually instructions)
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesOracleJobSchedulerXE
Go there
Ensure image path is
C:oraclexeapporacleproduct10.2.0serverBINextjob.exe XE
probably it will be wrong.
do the same for all the services under
services.msc
start menu—>run—>services.msc —>anything that starts with Oracle and doesnt start.
Have the same problem here and solve it.
Try :
netstat -nab
If you see a line like this :
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING
[mysqld-nt.exe]
That means the mysqld-nt.exe already in listening state on port 3306. So from your Task Manager try to find the program and kill itfirst. Then restart the service. It looks like the program executed not as service after I install it.