簡體   English   中英

如何設置Windows Server 2008以實現MySQL遠程數據庫連接?

[英]How to setup Windows Server 2008 for MySQL remote database connectivity?

我對這種服務器設置和數據庫連接性很陌生。 我在谷歌上搜索了很多,但找不到解決方案。我正在開發一個需要將數據發布到遠程數據庫的android應用程序。 完成了

現在,我必須在新的Windows Server 2008設置MySQL Database 我已經安裝並設法獲得root用戶的訪問權限(這可以)。 現在,我想從本地計算機[這是iMac ]訪問此數據庫。 我已經通過以下鏈接設置了權限。 當我嘗試從Web應用程序運行時,顯示以下錯誤。

 Error: unable to connect to database. Host 'xx.xx.xxx.x' is not allowed to connect to this MySQL server

這是我的問題

1.)如何從任何計算機訪問遠程MySQL數據庫?

2.)如何在服務器中運行Web應用程序?像是Web Hosting,即我是否需要設置ftp帳戶並將文件放在那里?( For Eg: testhost.com/connecttodatabase.php通過執行For Eg: testhost.com/connecttodatabase.php ,它將執行任何代碼在testhost服務器中。但是我不知道如何為我的服務器執行該操作。

任何幫助深表感謝。

或者,您也可以嘗試...

use the_database_name;

GRANT ALL PRIVILEGES ON 
the_database_name.* 
TO 
'the_user_in_php_code'@'%' 
IDENTIFIED BY 
'password_of_the_user_in_php_code';

FLUSH PRIVILEGES;

來源: http : //forums.devshed.com/mysql-help-4/host-is-not-allowed-to-connect-to-this-mysql-server-366908.html

暫無
暫無

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

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