問題描述
有一些相關的帖子,但我仍然無法弄清楚.我已經安裝了 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模板網!