Search found 3 matches
- Thu Sep 30, 2021 3:29 pm
- Forum: General Discussion
- Topic: Issue connecting to MySQL from PHP
- Replies: 6
- Views: 16503
Re: Issue connecting to MySQL from PHP
Tried making a new user : grant all on admin_wp.* to 'web'@'%' identified by 'c3cg5yTqXNsJzcq9'; (don't worry, it's a temp password) +---------------+-----------+ | user | host | +---------------+-----------+ | admin_default | % | | admin_wp | % | | web | % | | web | 127.0.0.1 | | admin_default | lo...
- Thu Sep 30, 2021 3:09 pm
- Forum: General Discussion
- Topic: Issue connecting to MySQL from PHP
- Replies: 6
- Views: 16503
Re: Issue connecting to MySQL from PHP
Also, I tried this :
mysql -u admin_wp -p
And that worked. So no idea why it's not working from my simple PHP script.
mysql -u admin_wp -p
And that worked. So no idea why it's not working from my simple PHP script.
- Thu Sep 30, 2021 3:05 pm
- Forum: General Discussion
- Topic: Issue connecting to MySQL from PHP
- Replies: 6
- Views: 16503
Issue connecting to MySQL from PHP
Hi, I created a database and a user. Database name is admin_wp (entered wp), username is the same. Password is xyz (not really :) ) Then I do this : $db = new mysqli('localhost', 'admin_wp', 'admin_wp', 'xyz'); And I get this error : Fatal error: Uncaught mysqli_sql_exception: Access denied for user...