bxcodec / go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
MIT License
9.03k stars 1.19k forks source link

Error Encountered with $ make up Command Leading to MySQL Connection Panic #103

Open MinhWalker opened 4 months ago

MinhWalker commented 4 months ago

Description

When running the $ make up command, I experienced a recurring connection issue with MySQL. The command failed, resulting in a panic due to a "bad connection" error. This issue appears to disrupt the standard workflow for setting up the environment.

Environment

Steps to Reproduce

  1. Clone the repository
  2. Switch to the affected branch git checkout master
  3. Run $ make up
  4. Observe the MySQL connection error in the logs

Expected Behavior

The $ make up command should execute without any connection issues, initializing the environment successfully.

Actual Behavior

The command results in the following MySQL errors:

[mysql] 2022/02/04 19:18:05 packets.go:37: unexpected EOF
[mysql] 2022/02/04 19:18:05 packets.go:37: unexpected EOF
[mysql] 2022/02/04 19:18:05 packets.go:37: unexpected EOF
panic: driver: bad connection

Impact

This issue prevents contributors from being able to set up their development environment seamlessly, potentially affecting all new contributors who are trying to get started.

Proposed Solution

I have created a Pull Request (102) that addresses this issue. The PR includes a fix that resolves the connection error, ensuring a smooth setup experience. I would appreciate it if the maintainers could review the changes and consider merging them to improve the setup process.

Result:

image
MinhWalker commented 4 months ago

hi guy @bxcodec can you help me for review. Thank you so much