PHP mysqli 無法連上資料庫 (1045) Access denied for user

你好, 各位高手:

本人是PHP新手, 之前因把PORT 轉了3307, 正想用PHP (mysqli) 連接datatbase, 現出現了這個字眼 “Connect Error (1045) Access denied for user ‘root’@‘localhost’ (using password: YES)” 在網頁. 試過寫成如下, 但沒有反應. 請各位高手指教一下.

$mysqli = new mysqli ('localhost', 'my_user', 'my_password', 'my_db', '3307');

https://imageshack.com/i/pn3kdRq0j
Sign In or Register to comment.