設為首頁

收藏本站

導覽首頁 | 新登場    ◇聯盟溫泉 | 民宿 | 人力銀行 | 女性 |

類型:mysql_article

遠程MySql無法調用解決方案
$host = "111.111.111.111"; // your MySQL host i.e. the server on which the database is, usually localhost
$user = "用戶名"; // your MySQL username
$pass = "密碼"; // your MySQL password
$db = "資料庫名"; // the database to which you're trying to connect to

如果無法遠程聯繫,須從資料庫所在伺服器進行以下設定。
mysql --user=root -p
mysql> use mysql
mysql> GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO dbname@111.111.111.111 identified by '密碼';
mysql> FLUSH PRIVILEGES;


主旨:

內容:




104休閒信箱 2.3.0 © 104mm.com 2001 - 2017. 您尚未登錄
Page generated in 0.00705481 seconds with 3 Queries