---
title: "Discussion on \"Connect  Windows (XAMPP) MySQL from WSL2 Ubuntu\" | Hashnode"
description: "Discussion on \"Connect  Windows (XAMPP) MySQL from WSL2 Ubuntu\". Install MySQL client on WSL Ubuntu.\nsudo apt install mysql-client-core-8.0\n\nBack yo Windows, run:\nmysql -u root -p\n\nEnter this command to enable root account for any host:\n> CREATE USER 'root'@'%' IDENTIFIED BY 'root'; GRANT ALL PRIVILEGES ON *.* TO ..."
url: "https://hashnode.com/posts/connect-windows-mysql-from-wsl2/66ec55130bad8c62bbf2ea3b"
---

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

Discussion

# [Connect Windows (XAMPP) MySQL from WSL2 Ubuntu](https://lab.simular.co/connect-windows-mysql-from-wsl2?utm_source=hashnode&utm_medium=feed)

Install MySQL client on WSL Ubuntu. sudo apt install mysql-client-core-8.0 Back yo Windows, run: mysql -u root -p Enter this command to enable root account for any host: > CREATE USER 'root'@'%' IDENTIFIED BY 'root'; GRANT ALL PRIVILEGES ON \*.\* TO ...

Sep 19, 2024 · 1 min read · lab.simular.co  
Read the article

-   [#mysql](https://hashnode.com/tag/mysql)
-   [#wsl](https://hashnode.com/tag/wsl)
-   [#wsl2](https://hashnode.com/tag/wsl2)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)

## Written by

[Simon Asika](https://hashnode.com/@asika32764)

@asika32764

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
