簡體   English   中英

無法從Netbeans連接到XAMPP MySQL

[英]Unable to connect to XAMPP MySQL from Netbeans

我是Windows 7用戶,但MySQL和XAMPP出現問題。

我使用XAMPP隨附的MySQL。 我已經使用XAMPP的安全性頁面更改了MySQL的根密碼。 然后,我嘗試通過Netbeans連接到MySQL服務器。

為了嘗試連接,我在服務窗格的數據庫下拉菜單中單擊了MySQL服務器選項,為此我進行了一些設置:

server host name:localhost
username:root
port:3306
password:(my sql password)
path to admin module:(http:'//')localhost/phpmyadmin
sql start path:D:\D-drive\xampp-portable\mysql\bin\mysqld.exe(also tried mysql_start.bat)
sql stop path:</b>D:\D-drive\xampp-portable\mysql\bin\mysqladmin.exe(also tried sql_stop.bat)

然后,我在本地主機[root]上的MySQL服務器上單擊鼠標右鍵,然后選擇“連接”,這是當我收到錯誤消息時:

Unable to connect to the MySQL server:
org.netbeans.api.db.explorer.DatabaseException: org.netbeans.api.db.explorer.DatabaseException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server..
The server may not be running or your MySQL connection properties may not be set correctly.  Do you want to edit your MySQL connection properties?

將localhost更改為127.0.0.1也不起作用。 我也有jdbc驅動程序。

對我有用的修復方法如下:

請注意,netbeans是防火牆以及防病毒軟件中允許的程序

去檢查:

如果netbeans啟動頁面顯示“無法連接到互聯網”,則必須更改防火牆和/或防病毒設置以允許它

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM