Activity Stream
48,167 MEMBERS
6718 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Member

    Default Remote SQL connections

    I have a website and a VPS, I want the website to be able to access the SQL databases (version 5.5.8) running on the VPS.

    I've tried using the GRANT ALL PRIVILEGES command, it didn't seem to do anything.

    command:
    Code: 
    GRANT ALL PRIVILEGES ON *.* TO 'SITE'@'178.239.62.125' IDENTIFIED BY 'MY-PASSWORD';
    Error from the webpage trying to access the databases:

    Error: Unable to connect to MySQL server. MySQL server is offline or you dont have access to connect to it or username/password is wrong.

    MySQL reported: Lost connection to MySQL server at 'reading initial communication packet', system error: 110.

    Suggestions:
    1) Recheck your MySQL username and password in website's config.php file.
    2) Try start MySQL server on your host, maybee there is no connection.
    3) Give 'admin' rights to user (SITE) that you using to connect to MySQL.
    Thanks.
    Time Reviewed by Time on . Remote SQL connections I have a website and a VPS, I want the website to be able to access the SQL databases (version 5.5.8) running on the VPS. I've tried using the GRANT ALL PRIVILEGES command, it didn't seem to do anything. command: GRANT ALL PRIVILEGES ON *.* TO 'SITE'@'178.239.62.125' IDENTIFIED BY 'MY-PASSWORD'; Error from the webpage trying to access the databases: Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Moderator
    NewEraCracker's Avatar
    have you tried phpmyadmin?
    Is port 3306 firewalled?
    Trusted: Dom, l0calh0st, 0ccul7, robert420
    Find all threads started by NewEraCracker

  4.     
    #3
    Member
    Website's:
    oneddl.eu nfomation.net linksafe.me
    You just need to make sure the mysql server on the vps is set to allow connections from external addresses.

    Check mysql.cf, most likely it is only set to bind to localhost.

    You also need to allow anyhost to connect to it and this can be done via phpmyadmin.

  5.     
    #4
    Member
    I've opened up the ports on the firewall.

    I can't seem to find the right mysql.cf file, what directory is it in?

  6.     
    #5
    Respected Member
    /etc/my.cnf

  7.     
    #6
    Member
    Forgot to add, it's a Windows server 2008 VPS.

  8.     
    #7
    Member
    okay.
    Format, install Linux
    This is the staff, you have been banned

  9.     
    #8
    Respected Member
    Look in your mysql folder for a file called my.ini I believe.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VPN working but no internet connections
    By fidai90 in forum Server Management
    Replies: 2
    Last Post: 3rd Oct 2012, 04:02 PM
  2. More as 2 connections (windows 2008 server)
    By Sascha in forum Hosting Discussion
    Replies: 5
    Last Post: 17th Feb 2012, 03:52 PM
  3. Remote Connections Error 4 on VPS using Kloxo
    By desibreaker in forum Server Management
    Replies: 5
    Last Post: 2nd Sep 2011, 02:59 PM
  4. Show off your connections speed
    By WHosting.com in forum General Discussion
    Replies: 21
    Last Post: 8th Aug 2010, 06:42 PM
  5. Apache - Limiting Number of Connections
    By EvilGenius in forum Technical Help Desk Support
    Replies: 3
    Last Post: 5th Jul 2010, 06:48 AM

Tags for this Thread

BE SOCIAL