MySQL is not a valid win32 application

I am running mysqldump.exe with the necessary parameters from cmd and it all works just fine.

Then, all of a sudden, he started giving me a pop-up window "Invalid win32 application", and on the console he said: "Access is denied ..."

What causes this?

Thanks in advance.

+6
source share
1 answer

CAUSE This problem may occur if the path to the executable for the service contains spaces.

When Windows starts the service, it analyzes the service path from left to right. If both of the following conditions are true:

  • The service executable path contains spaces.
  • Your computer has a file or folder with the same name as the file or folder in the path to the service executable.

Windows can find and try to run the file or folder before it finds and runs the executable for the service.

For example, if the path to the executable for the service is C:\Program Files\MyProgram\MyService.exe , and if the specified C:\Program folder also exists on your hard drive, Windows detects C:\Program on your hard drive before

 C:\Program Files\MyProgram\My Service.exe 

and then try to run it. Solution WARNING. If you use the registry editor incorrectly, serious problems can arise that may require reinstalling the operating system. Microsoft does not guarantee that you can resolve problems resulting from improper use of the registry editor. Use the registry editor at your own risk. To resolve this issue, add quotation marks around the following value in the Windows registry, where the service name is:

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ServiceName>\ImagePath 

The ImagePath value contains another service file for the provision of services. To add quotes around the ImagePath value for a service:

  • Click "Start" and select "Run."
  • In the Open box, type regedit and click OK.
  • Locate and select the following registry entry, where <ServiceName> is the name of the service: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ServiceName> . For example, if the service is called MyService, find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService key .
  • In the right pane, double-click ImagePath.
  • In the Value field, add quotation marks around the full path of the executable for this service.

For example, if the path to the MyService service

  C:\Program Files\MyProgram\MyService.exe 

change the entry in the Value field. for MyService for the following

" C:\Program Files\MyProgram\MyService.exe " 6. Click OK, and then close the registry editor. /

So, create a new folder and installed services. Bam! It worked. I have a C:\Web Dev\ folder that I used for testing and the space between the network and the developer was a problem.

0
source

Source: https://habr.com/ru/post/906309/


All Articles