一起使用 XAMPP 和 Mysql Workbench

时间:2023-02-28
本文介绍了一起使用 XAMPP 和 Mysql Workbench的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

有一些相关的帖子,但我仍然无法弄清楚.我已经安装了 XAMPP(最新版本)和 MySQL Workbench 8.0.17 的工作安装.我只想将 Workbench 与 XAMPP 安装附带的 MySQL 一起使用.

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.

在最新版本的 XAMPP 中,它首先设置了一个 IP 地址,然后我才能启动 apache 和 mysql.MySQL 似乎在端口 3307 上运行.

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.

这是用于建立新连接的工作台屏幕.XAMPP 在 localhost 上运行 - 这应该是我的主机名吗?

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

如果我尝试使用端口为 3307(我认为 XAMPP 的 MySQL 所在的位置)的 localhost 或 127.0.0.1 主机名,我会收到此弹出式警报.如果我继续,我仍然没有在主屏幕上看到我的任何数据库.

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.

推荐答案

这是我用来将 MySQL Workbench 连接到 Xampp MySQL 的方式.

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

01) 点击加号图标.

01) Click on the Plus icon.

02) 检查 Xampp MySQL 端口号.

02) Check the Xampp MySQL port number.

03) 输入连接名称并使用您的 Xampp MySql 端口号检查端口号.

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

04) 点击仍然继续"按钮.

04) Click on the "Continue Anyway" button.

05) 然后点击确定"按钮保存连接.

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

06) 现在您可以看到您刚刚创建的连接并单击它以连接到 MySQL 数据库.

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

07) 如果正确连接到 Xampp Mysql,请尝试运行一些 SQL 代码.

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

这篇关于一起使用 XAMPP 和 Mysql Workbench的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:如何使用monotouch以编程方式在sqlite中创建数据库和表? 下一篇:xampp mysql 不在端口 3306 上运行

相关文章

最新文章