---
title: "Discussion on \"How to set up connection to MySQL database through SSH Tunnel in Laravel Sail\" | Hashnode"
description: "Discussion on \"How to set up connection to MySQL database through SSH Tunnel in Laravel Sail\". Step-by-step guide on setting up MySQL via SSH tunnel in Laravel Sail for secure database access, with focus on Docker config adjustments."
url: "https://hashnode.com/posts/how-to-set-up-connection-to-mysql-database-through-ssh-tunnel-in-laravel-sail/65fd8cb96a7cf93da76a5b37"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to set up connection to MySQL database through SSH Tunnel in Laravel Sail](https://annissimo.com/how-to-set-up-connection-to-mysql-database-through-ssh-tunnel-in-laravel-sail?utm_source=hashnode&utm_medium=feed)

Step-by-step guide on setting up MySQL via SSH tunnel in Laravel Sail for secure database access, with focus on Docker config adjustments.

Mar 22, 2024 · 6 min read · annissimo.com  
Updated Apr 25, 2024  
Read the article

-   [#laravel-sail](https://hashnode.com/tag/laravel-sail)
-   [#laravel](https://hashnode.com/tag/laravel)
-   [#mysql](https://hashnode.com/tag/mysql)
-   [#ssh-tunneling](https://hashnode.com/tag/ssh-tunneling)
-   [#docker](https://hashnode.com/tag/docker)

## Written by

[Amadeusz Annissimo](https://hashnode.com/@amade)

@amade · Tallinn, Estonia

  
[View profile](https://hashnode.com/@amade)

Technical Co-Founder

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
