Mysql – Using XAMPP and Mysql Workbench together

MySQLmysql-workbenchxampp

There are some related posts to this but I still can't figure this out. I have a working install of XAMPP(latest version) and MySQL Workbench 8.0.17 installed. I just want to be able to use Workbench with the MySQL that ships with the XAMPP install.

In the latest version of XAMPP, it first sets an IP address before I can start apache and mysql. MySQL seems to be running on port 3307.

Here is the Workbench screen to make a new connection. XAMPP is running on localhost – should that be my hostname?

enter image description here

If I try a localhost or 127.0.0.1 hostname with port 3307 (where I think XAMPP's MySQL is) I get this popup alert. If I continue, I still don't see any of my databases listed on the main screen.

enter image description here

Best Answer

This is the way I have used to connecting MySQL workbench to Xampp MySQL.

01) Click on the Plus icon.

Click on plus icon

02) Check the Xampp MySQL port number.

Check the Xampp MySQL port number

03)Type the connection name and check the port number with your Xampp MySql port number.

Type the connection name and check the port number with your Xampp MySql port number

04) Click on the "Continue Anyway" button.

 Click on the "Continue Anyway" button

05) Then click on the "OK" button to save the connection.

Then click on the "OK" button to save the connection

06) Now you can see the connection you just created and click on it to connect to the MySQL database.

Click the newly created connection

07) Just try to run some SQL code to if properly connected to Xampp Mysql.

Just try to run some SQL code