问题描述
有一些相关的帖子,但我仍然无法弄清楚.我已经安装了 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)