Vesta Control Panel - Forum

Community Forum

Skip to content

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

Cannot connect remote database mysql

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
madip
Posts: 8
Joined: Fri Feb 06, 2015 7:19 am

Cannot connect remote database mysql
  • Quote

Post by madip » Fri Feb 06, 2015 8:30 pm

Hi,
i'm tryng to connect an hosting website to my database on a VPS based on vesta panel.
From my local pc i can connect to remote database on VPS by command line.
But when i try to connect via http protocol (php web site) to remote database the response is
Can't connect to MySQL server on 'xxx.xxx.xxx.xxx'
Can anyone help me?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Cannot connect remote database mysql
  • Quote

Post by skurudo » Sun Feb 08, 2015 1:45 am

May be you need check access to port 3306 first?

And then change your my.cnf files ->
[mysqld]
bind-address = your-server-external-ip

Save and close the file and restart mysql
Top

madip
Posts: 8
Joined: Fri Feb 06, 2015 7:19 am

SOLVED Re: Cannot connect remote database mysql
  • Quote

Post by madip » Wed Feb 11, 2015 7:13 am

thanks it works.
If i create user in phpmyadmin it doesn't work.
If if create user db in vestacp no problems.
thanks
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: SOLVED Re: Cannot connect remote database mysql
  • Quote

Post by skurudo » Sun Feb 15, 2015 5:43 pm

madip wrote: If i create user in phpmyadmin it doesn't work.
If if create user db in vestacp no problems.
I think answer in one word - priviliges
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Database Server”



  • 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