Bug #116337 mysql workbench crashed immediately after clicking on a saved connection
Submitted: 10 Oct 2024 17:48 Modified: 11 Nov 2024 10:16
Reporter: Karen Law Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:8.0.38 OS:MacOS
Assigned to: CPU Architecture:Other (M2)

[10 Oct 2024 17:48] Karen Law
Description:
Started docker mysql, clicked on a saved connection, and workbench crashed immediately.

Although container starts with issue, workbench should not have crashed, a nice error will be nice.

How to repeat:
1. docker-compose up from vscode
*****************
version: '3.4'

services:
  mysql:
    image: mysql/mysql-server:latest
    restart: always
    environment:
      # MYSQL_DATABASE: 'collaborator'
      # So you don't have to use root, but you can if you like
      MYSQL_USER: 'dbuser'
      # You can use whatever password you like
      MYSQL_PASSWORD: 'test'
      # Password for root access
      MYSQL_ROOT_PASSWORD: 'test'
    ports:
      # <Port exposed> : <MySQL Port running inside container>
      - '3306:3306'
    expose:
      # Opens port 3306 on the container
      - '3306'
      # Where our data will be persisted
    volumes:
      # - mysql-data:/var/lib/mysql
      - type: bind
        source: /opt/homebrew/etc/my.cnf
        target: /etc/my.cnf
      - type: bind
        source: /Users/karenlaw/data/mysql
        target: /var/lib/mysql
    
#volumes:
#  mysql-data:
    
******************************
Here is the output in the terminal
********************
 *  Executing task: docker-compose -f "docker-compose.yml" up -d --build 

WARN[0000] /Users/karenlaw/dev/collaborator/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 1/1
 ✔ Network collaborator_default    Created                                        0.1s 
 ⠋ Container collaborator-mysql-1  Creating                                       0.0s 
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /opt/homebrew/etc/my.cnf

 *  The terminal process "/bin/bash '-l', '-c', 'docker-compose -f "docker-compose.yml" up -d --build'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 
*************************

2. Go to workbench, doubled clicked on saved connection.
the connection username is dbuser, everything else is the default.

3. workbench window disappears

Suggested fix:
An error message informing the user something is wrong
[12 Nov 2024 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".