question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Database Restore failed in Windows 10 64 bit

See original GitHub issue

System information:

  • Operating system (distribution) and version: Windows 10 64 bit (version: 20H2)
  • DBeaver version: 21.0.5.202105160657
  • Java version: JDK 11
  • Additional extensions

Connection specification:

  • Database name and version: MariaDB 10.5.10
  • Driver name: MariaDB
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you’re observing:

Restore database always has errors.

Error executing process
  Cannot run program "C:\Users\Tom\AppData\Roaming\DBeaverData\drivers\clients\mysql\win\mysql.exe" (in directory "C:\Users\Tom\AppData\Roaming\DBeaverData\drivers\clients\mysql\win"): CreateProcess error=193, %1 is not a valid Win32 application
  Cannot run program "C:\Users\Tom\AppData\Roaming\DBeaverData\drivers\clients\mysql\win\mysql.exe" (in directory "C:\Users\Tom\AppData\Roaming\DBeaverData\drivers\clients\mysql\win"): CreateProcess error=193, %1 is not a valid Win32 application
    CreateProcess error=193, %1 is not a valid Win32 application
    CreateProcess error=193, %1 is not a valid Win32 application

Steps to reproduce, if exist:

  1. Backup a database by tools dump: Right-click on the database → Tools → Dump Database → example.sql
  2. Restore another database by tools restore: Right-click on the database → Tools → Restore Database → Choose the example.sql script
  3. A window to show errors

Include any warning/errors/backtraces from the logs

dbeaver-restore-error

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kseniiaguzeevacommented, May 28, 2021

Nice to hear)

0reactions
tomnguyen0811commented, May 27, 2021

Seems files were not downloaded properly. Could you delete them (you can see the way to the files in your error message) and then perform backup/restore? The files will be downloaded again by DBeaver.

Security policy in your company can be another reason. It can restrict to run some .exe files. Could you go to the file directory and try to run .exe file manually?

Hi @kseniiaguzeeva, you are right. I went to the file directory and try to run .exe file manually, it can’t run. I was deleted the C:\Users\Tom\AppData\Roaming\DBeaverData\drivers\clients\mysql\win\mysql.exe file and ran restore again. It’s working. Thanks for your support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Error Solved] SQL Database Restore failed, database in use
Summary: This blog will describe solutions to fix the 'SQL database restore failed, database in use' error.
Read more >
SQL Server backup and restore operation issues
This article troubleshoots SQL Server backup and restore operation issues, such as the operation taking a long time, issues between ...
Read more >
6 Ways to Fix SQL Server Restore Failed Database in Use
6 Ways to Fix SQL Server Restore Failed Database in Use · 1. Press Win + R and enter “services.msc” in the text...
Read more >
Fix System Restore Failed and Did Not Complete Successfully ...
Another reason for System Restore failed and did not complete successfully error is system file corruption. You can try to run sfc to...
Read more >
Error restoring database backup - sql server - Stack Overflow
Sounds like the backup was taken on a machine whose paths do not match yours. Try performing the backup using T-SQL instead of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found