I can not do this work for my life I am running an Apache server, but my local sites Are stored in / www / Matthew / wwwroot / and I'm using them in the browser.
MySQL is running on a server called 'Matthew.ADU', which is a user with 'Matthew.ADV' with a user called 'sec-user'.
However, when I'm trying to connect to my database using these credentials, my mistake suggests that the localhost is coming out in drama from somewhere and why I have no clue .
Here's my psl-config.php:
And here's my db_connect.php:
MySqli-> Connect_errno. ")". $ Mysqli- & gt; Connect_error; } Echo $ mysqli-> Host_info "\ N"; ? & Gt;
Error:
WARNING: mysqli :: mysqli (): (HY000 / 1045): User denied 'password' for 'sec_user' @ 'localhost' Use: Yes) /www/sites/Matthew/wwwroot/LetsMakePi/includes/db_connect.php Failed to connect to MySQL on line 4: (1045) User 'sec_user' @ Access denied for 'localhost' (password) Using: Yes) Warning: Main (): / 9 / /
Thanks in advance.
This is trying to connect to the local host.
(Edit: More than the point, maybe, it is trying to connect to localhost.)
Domain name Matthew DW on that host What does it solve? (I have seen lots of / etc / hosts where the local machine is connected with the FQDN 127.0.0.1 (aka localhost).)
For that matter, why not use local folk? This is the same machine, no? Assign the same privileges to sec_user@Matthew.dev
for sec_user @ localhost
.
No comments:
Post a Comment