Results 1 to 4 of 4

Thread: Connecting to MySQL db on different domain

  1. #1
    Join Date
    May 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Connecting to MySQL db on different domain

    I'm trying to connect to a MySQL db on a different domain using:

    mysql_connect('mysql5.servername.lon.periodicnetwo rk.com:3306', 'mysql_user', 'mysql_pass');

    and I've created 'mysql_user' as a new user on the db in Helm, but MySQL is saying:

    Can't connect to MySQL server on 'mysql5.servername.lon.periodicnetwork.com' (10049)

    Could anybody shed light on what I'm doing wrong please?

  2. #2
    Join Date
    May 2007
    Location
    Eauze, France
    Posts
    175
    Thanks
    10
    Thanked 17 Times in 15 Posts

    Default

    If you are trying to do an external connection from outside of the RedFox environment -

    Should the command seperator not be a semicolon?
    Should you not also include ;Database=xxxxxxxx ?

  3. #3
    Join Date
    May 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've just changed it to:

    mysql_connect('servername', 'mysql_user', 'mysql_pass');

    and it's worked okay.

    I'm connecting from inside the RedFox environment, but as it was using a db on a different domain I mistakenly thought I had to use the external string to connect to the server.

    Thanks anyway.

  4. #4
    Join Date
    Mar 2005
    Location
    Hampshire
    Posts
    432
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Default

    Quote Originally Posted by steve_green View Post
    Can't connect to MySQL server on 'mysql5.servername.lon.periodicnetwork.com' (10049)
    I have a funny feeling that you can't use the external connection from the internal network. The plus side of this is that you don't use up any of your bandwidth quota connecting to the database.

    Just chill

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. connecting to Data.SqlClient
    By mambojerry in forum ASP.NET
    Replies: 3
    Last Post: 25th January 2008, 07:11 AM
  2. Replies: 9
    Last Post: 20th February 2007, 08:17 PM
  3. Connecting to MSSQL2000 in ASP.NET 2.0
    By AntonyG in forum MSSQL
    Replies: 5
    Last Post: 5th October 2006, 01:46 PM
  4. Domain Alias for a Sub Domain
    By dv8host in forum Technical Support
    Replies: 3
    Last Post: 23rd June 2005, 03:37 PM
  5. problems connecting to MySQL db
    By terraqueotenaz in forum ASP (VBScript)
    Replies: 8
    Last Post: 10th February 2005, 12:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •