Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL not a valid win32 application

I'm running mysqldump.exe with needed parameters from cmd and this all works fine.

Then, all of the sudden, it started to give me a popup "Not a valid win32 application" and in the console it's saying 'Access is denied...'

What's causing this?

Thanks in advance.

like image 402
eddyuk Avatar asked Jan 18 '12 14:01

eddyuk


People also ask

What is .exe is not a valid Win32 application?

The message "winzipxxx.exe is not a valid win32 application" indicates that the EXE file did not download completely. When Windows then tries to run what appears to be an executable file, it finds that it is not a valid Windows 32-bit application file due to the incomplete download.

What is Win32 application?

What's a Win32 Application? Win32 is Microsoft's name for the programming interface for the 32-bit versions of Windows, meaning programs access data in blocks of 32 binary digits and can use the same amount of space to refer to sections of memory.

What does Win32 error mean?

A Win32 error is a standard computer error that occurs mainly on computers using Windows versions 95, 98 and 2000 and often during Internet usage. When your computer gets a Win32 error, the application that the error occurred in ceases to work and you are unable to use the function on your computer.


1 Answers

CAUSE This issue may occur if the path of the executable file for the service contains spaces.

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

  • The path of a service’s executable file contains spaces.
  • There is a file or folder on your computer’s hard disk that has the same name as a file or folder in the path to the service's executable file.

Windows may locate and try to run the file or folder before it locates and runs the executable file for the service.

For example, if the path of the executable file for a service is C:\Program Files\MyProgram\MyService.exe, and if a folder that is named C:\Program also exists on your hard disk, Windows locates the C:\Program folder on your hard disk before the

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

file, and then tries to run it. RESOLUTION WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. To resolve this issue, add quotation marks around the following value in the Windows registry, where is the name of the service:

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

The ImagePath value contains the other serviceable file for the service. To add quotation marks around the ImagePath value for a service:

  1. Click Start, and then click Run.
  2. In the Open box, type regedit, and then click OK.
  3. Locate, and then click 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 named MyService, locate the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService key.
  4. In the right pane, double-click ImagePath.
  5. In the Value data box, add quotation marks around the complete path of the executable file for the service.

For example, if the path of the MyService service is

 C:\Program 
Files\MyProgram\MyService.exe

, change the entry in the Value data box for the MyService service to the following

"C:\Program Files\MyProgram\MyService.exe" 6. Click OK, and then quit Registry Editor./

So, create a new folder and installed services. BAM! It worked. I have a C:\Web Dev\ folder I was using for testing and the space between web and dev was the problem.

like image 175
A.D. Avatar answered Sep 23 '22 18:09

A.D.