dosubot[bot] commented on issue #7808:
URL: 
https://github.com/apache/incubator-devlake/issues/7808#issuecomment-2263614462

   <!-- Answer -->
   The issue you're encountering is likely due to a port conflict on your 
localhost, as port 3306 is already in use. You can resolve this by using a 
different local port for the port forwarding. Here’s how you can do it:
   
   1. **Use a Different Local Port**:
      Forward the MySQL service port (3306) in the Kubernetes cluster to a 
different port on your localhost, such as 3307:
   
      ```sh
      kubectl -n devlake port-forward devlake-mysql-0 3307:3306
      ```
   
   2. **Connect to the MySQL Database**:
      Once the port forwarding is set up, connect to the MySQL database using 
the new local port (3307):
   
      ```sh
      mysql -u merico -pmerico -h 127.0.0.1 -P 3307 lake
      ```
   
   This way, you avoid the port conflict on your localhost and can access the 
MySQL database running in the Kubernetes cluster 
<sup>[[1]](https://github.com/apache/incubator-devlake-website/blob/main/docs/GettingStarted/DockerComposeSetup.md)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to