Bug #103053 mysql: [ERROR] Failed to open required defaults file
Submitted: 22 Mar 2021 2:22 Modified: 23 Mar 2021 2:11
Reporter: Raj Padnani Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:8.0.18 OS:Windows (Microsoft Windows 10 Home)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[22 Mar 2021 2:22] Raj Padnani
Description:
----[For better reports, please attach the log file after submitting. You can find it in C:\Users\Raj Padnani\AppData\Roaming\MySQL\Workbench\log\wb.log]

Hi, I am seriously stuck here, please help.

Every time I try to do File -> Run SQL Script, I get this error on the workbench screen:

mysql: [ERROR] Failed to open required defaults file: c:\users\raj
mysql: [ERROR] Fatal error in defaults handling.

In wb.log, I see the following:

22:05:54 [INF][run_script.py:work:135]: Executing C:\Users\Raj Padnani\Downloads\si.sql...
22:05:54 [INF][client_utils.py:import_script:277]: Feeding data from C:\Users\Raj Padnani\Downloads\si.sql to "mysql.exe" --defaults-extra-file=c:\users\raj padnani\appdata\local\temp\tmpvq3qcw.cnf --protocol=tcp --port=3306 --host=localhost --user=root icwtestfull (cwd=C:\Users\Raj Padnani\Downloads)
22:05:54 [INF][client_utils.py:import_script:369]: Task stdout: mysql: [ERROR] Failed to open required defaults file: c:\users\raj

22:05:54 [INF][run_script.py:report_output:86]: mysql: [ERROR] Failed to open required defaults file: c:\users\raj
22:05:54 [INF][client_utils.py:import_script:369]: Task stdout: mysql: [ERROR] Fatal error in defaults handling. Program aborted!

22:05:54 [INF][run_script.py:report_output:86]: mysql: [ERROR] Fatal error in defaults handling. Program aborted!
22:05:54 [INF][client_utils.py:import_script:383]: mysql tool exited with code 1
22:05:54 [INF][run_script.py:work:140]: Run script finished

How to repeat:
From workbench Menu, choose File -> Run SQL Script
[22 Mar 2021 2:23] Raj Padnani
wb.log attached

Attachment: wb.log (application/octet-stream, text), 8.55 KiB.

[22 Mar 2021 12:23] MySQL Verification Team
Hello Raj Padnani,

Thank you for the bug report.
Imho this is duplicate of Bug #103026, please see Bug #103026.
Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the original bug instead.

Thank you for your interest in MySQL.

Regards,
Ashwini Patil
[22 Mar 2021 13:21] Raj Padnani
Hi Ashwini,

Thanks for your update. Please note that the issue here is with a different version of WB CE. I have now downgraded to 8.0.18 and I am seeing this new issue. The error messages are completely different. IMHO this should be a much simpler issue for you to resolve.

This issue is similar to https://bugs.mysql.com/bug.php?id=93699, the only difference is I am on Windows 10, they were on a custom Linux version.

Thanks.
Raj
[23 Mar 2021 2:11] Raj Padnani
Hello Ashwini,

This issue is really troubling me - CAN YOU PLEASE PROVIDE A RESOLUTION!!!!!!!!!!

Once again, to reiterate, Every time I do File -> Run SQL Script I get error similar to below:

Preparing...
Importing t2.sql...
Finished executing script
mysql: [ERROR] Failed to open required defaults file: c:\users\raj
mysql: [ERROR] Fatal error in defaults handling. Program aborted!
Operation failed with exitcode 1