我只是按照一些博客,以及遵循很多答案,但我仍然得到錯誤。無法連接CI到google-cloud-sql?
Severity: Warning
Message: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)
Filename: mysqli/mysqli_driver.php
Line Number: 228
Backtrace:
File: C:\inetpub\wwwroot\beta\ECI\application\controllers\Login.php
Line: 6
Function: __construct
File: C:\inetpub\wwwroot\beta\ECI\index.php
Line: 315
Function: require_once
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: C:/inetpub/wwwroot/beta/ECI/system/database/DB_driver.php
Line Number: 436
我有第二代
$db['default']['socket'] = '/cloudsql/abc:us-central1:xxxx';
我已經創建一個實例的實例ID,現在我想這種情況下連接到我的應用程序。我將我的IP地址設置到創建的實例中,但仍然無法從雲端數據庫提取數據。任何人都有想法
感謝您的回覆,但我已設置密碼仍表示相同的錯誤。 –