Mysql permission

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! 12345FOBEY12345 is offline
    MemberRank
    Jul 2007 Join Date
    474Posts

    Mysql permission

    Hi all,

    My DB is hosted locally along with the server and the CMS is hosted on cPanel hosting.

    Just wondering how I add permissions for my CMS to connect to the DB?

    This is the error code I get when I view the site...

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'ip of the VPS' (4) in /home/*****/public_html/cms/app/class.engine.php on line 48
    MySQL Engine - RevCMS:
    Thanks for any help in advance!

    EDIT: I've added the permissions to PhpMyAdmin for the Ip of the do main what I obtained by pinging the domain. Still no luck.


  2. #2
    Account Upgraded | Title Enabled! 12345FOBEY12345 is offline
    MemberRank
    Jul 2007 Join Date
    474Posts

    Re: Mysql permission

    bump.

  3. #3
    Account Upgraded | Title Enabled! MikeDavies is offline
    MemberRank
    Aug 2010 Join Date
    WalesLocation
    629Posts

    Re: Mysql permission

    This makes absolutely no sense, please try and speak proper English.

  4. #4
    Account Upgraded | Title Enabled! 12345FOBEY12345 is offline
    MemberRank
    Jul 2007 Join Date
    474Posts

    Re: Mysql permission

    Quote Originally Posted by MikeDavies View Post
    This makes absolutely no sense, please try and speak proper English.
    Right, My database is being hosted on my VPS along with the EMU.

    The CMS however is hosted on a cPanel. Now, the CMS is unable to connect to the database as I don't get how I add permission for it meaning it is able to connect.

    That better? :S

  5. #5
    Valued Member TPStudios is offline
    MemberRank
    Jul 2012 Join Date
    On Planet EarthLocation
    108Posts

    Re: Mysql permission

    I'll tell you why..

    Now, 100% of the Free Hosting website with CPANELs, DBs and other have their Databases Remote Connection Disabled...
    Which means that only the Website you created can access the Database..
    The solution is to look for a website host with Database Remote Connection Enabled (I guarantee that you won't find one for free) or to look for a Database host with also remote connection enabled (You won't find for free..)

    That's all

  6. #6
    Account Upgraded | Title Enabled! MikeDavies is offline
    MemberRank
    Aug 2010 Join Date
    WalesLocation
    629Posts

    Re: Mysql permission

    Quote Originally Posted by TPStudios View Post
    I'll tell you why..

    Now, 100% of the Free Hosting website with CPANELs, DBs and other have their Databases Remote Connection Disabled...
    Which means that only the Website you created can access the Database..
    The solution is to look for a website host with Database Remote Connection Enabled (I guarantee that you won't find one for free) or to look for a Database host with also remote connection enabled (You won't find for free..)

    That's all
    It's a security risk to hosts with Remote MySQL, so yes as this guy has said, they block it.

  7. #7
    Account Upgraded | Title Enabled! 12345FOBEY12345 is offline
    MemberRank
    Jul 2007 Join Date
    474Posts

    Re: Mysql permission

    Quote Originally Posted by TPStudios View Post
    I'll tell you why..

    Now, 100% of the Free Hosting website with CPANELs, DBs and other have their Databases Remote Connection Disabled...
    Which means that only the Website you created can access the Database..
    The solution is to look for a website host with Database Remote Connection Enabled (I guarantee that you won't find one for free) or to look for a Database host with also remote connection enabled (You won't find for free..)

    That's all
    I pay for my hosting...



Advertisement