Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index
  • Search

Search found 3 matches

Go to advanced search

Advanced search
Search found 3 matches • Page 1 of 1
by Mudloop
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...
  • Jump to post
by Mudloop
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.
  • Jump to post
by Mudloop
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...
  • Jump to post

Search found 3 matches • Page 1 of 1

Go to advanced search



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password