• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forumsVisit Corsair.com

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications

    Operating systems & applications Looking for that application for Windows? needing advice with your Linux setup? - ask here! Add RSS Feed

    Reply
     
    LinkBack Thread Tools
    Old 23-11-2007, 05:27 PM   #1 (permalink)
    Ғо ѕніzzLє му піzzLє
     
    chicken's Avatar
     
    Join Date: Nov 2005
    Location: Kent
    Posts: 1,573
    Thanks: 28
    Thanked 51 Times in 42 Posts
    Help connecting to a remote MySQL server...

    This situation is a bit difficult to explain, but basically I am trying to connect to a separately hosted MySQL server from a Windows server but I'm running into difficulty getting the connection string right.
    • Server 1: Where the main page resides, this server normally uses MSSQL
      I have FTP access and Remote Desktop access to this server but no installation rights for the ODBC driver.
      -
    • Server 2: Secondary site with a MySQL database containing some info I need to reference
      I have FTP and normal web-based control over this one with full admin rights right up to the reseller account above the site-admin.

    I make pages for Server 1 on a regular basis, but now I need to access some info from Server 2's SQL database for a page on Server 1.

    Server 2 is set up to allow remote SQL access to Server 1's IP (I have tested this using my IP and MySQL Query Browser to connect and it works).

    My problem seems to be the connection string. I can't seem to get it right because either Server 1 doesn't have the MySQL ODBC driver installed or Server 2 isn't responding to the only requests Server 1 seems to work with because they're for a MSSQL connection.

    This seemed to be the most promising:
    Code:
    Provider=MS Remote;
    Remote Provider=sqloledb;
    Data Source=webxx.extendcp.co.uk;
    Server=webxx.extendcp.co.uk;
    Port=3306;
    Database=webxx-ppd;
    Uid=xxxxxx;
    Pwd=xxxxxxx;
    
    But brought back:
    Code:
    RDSServer.DataFactory error '80070005'
    
    RDS Server Error: The server has denied access to the default RDS Handler used to access this page. See the Server Administrator for more information about server security settings.
    


    Give me actual SQL to do and I'm fine but I'm not too hot on the details of the connections so any suggestions would be very helpful!

    1.21 GIGAWATTS!!!!!
    chicken is offline   Reply With Quote
    Old 24-11-2007, 03:06 PM   #2 (permalink)
    Gentoo Ricer
     
    Join Date: Jan 2005
    Location: /var/portage
    Posts: 5,619
    Thanks: 57
    Thanked 256 Times in 239 Posts
    aidanjt's system
    Re: Help connecting to a remote MySQL server...

    You need the MySQL ODBC driver installed on server 1, you also might check if server 1 is accepting connections from server 2 with a mysql client or GUI tools on that machine.

    Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...
    Server Box -> Asus P5B-E Plus | C2D E6320 | 2x2GB GieL PC2-6400 | 6x500GB (md-raid5) | nVidia 7300LE | Ubuntu Server 9.10 (for now)
    Test Box -> P4E 3.2Ghz Rev. E0 | Asus P4C800-E Deluxe | 2x1GB PC3200 | 2x160Gb | nVidia TNT 2 | Gentoo (X86)

    Currently breaking: eINIT
    aidanjt is offline   Reply With Quote
    Old 24-11-2007, 11:34 PM   #3 (permalink)
    Seething Cauldron of Hatred
     
    Join Date: Aug 2005
    Posts: 7,917
    Thanks: 105
    Thanked 367 Times in 280 Posts
    Re: Help connecting to a remote MySQL server...

    Whats the app/platform your trying too connect from?

    also remeber that mysql is an utter waste of space of a server, and like clamidia is spreading vastly un-controlled and too far with the 'less aware' generations. It also suddenly becomes insainly expensive when you get into really big DB teritory. Its dog slow, and barely has any features. I can't stand it. There are so many better FREE and free to use packages on the market. Why the hell use it?

    It just fails on all grounds.

    throw new ArgumentException (String, String, Exception)
    TheAnimus is offline   Reply With Quote
    Old 25-11-2007, 02:17 AM   #4 (permalink)
    Senior Member
     
    ajbrun's Avatar
     
    Join Date: Apr 2004
    Location: York, England
    Posts: 4,840
    Thanks: 4
    Thanked 25 Times in 13 Posts
    Re: Help connecting to a remote MySQL server...

    It's late and I'm tired, so forgive me if I misunderstand .

    Try this test your connection info and get a correct connection string at the end of it:

    * Create a new file somewhere with a .udl extension, then open it.
    * Select the appropriate DB connection in the providers tab.
    * Enter your server information, username and password in the connection tab.
    * Select the database from the list.
    * Click test connection. Assuming your information is correct, it should connect fine.
    * Click OK.
    * Open your .udl file in wordpad/notepad/similar. This should show you your connection string.
    ajbrun is offline   Reply With Quote
    Old 25-11-2007, 02:01 PM   #5 (permalink)
    Gentoo Ricer
     
    Join Date: Jan 2005
    Location: /var/portage
    Posts: 5,619
    Thanks: 57
    Thanked 256 Times in 239 Posts
    aidanjt's system
    Re: Help connecting to a remote MySQL server...

    Originally Posted by TheAnimus View Post
    Whats the app/platform your trying too connect from?

    also remeber that mysql is an utter waste of space of a server, and like clamidia is spreading vastly un-controlled and too far with the 'less aware' generations. It also suddenly becomes insainly expensive when you get into really big DB teritory. Its dog slow, and barely has any features. I can't stand it. There are so many better FREE and free to use packages on the market. Why the hell use it?

    It just fails on all grounds.
    That is utter clap.. O'Reilly media, Ticketmaster, Redhat, Forrester Research, Google, etc, all have really tiny databases I'm sure. And few sites are faster than Google, too.

    Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...
    Server Box -> Asus P5B-E Plus | C2D E6320 | 2x2GB GieL PC2-6400 | 6x500GB (md-raid5) | nVidia 7300LE | Ubuntu Server 9.10 (for now)
    Test Box -> P4E 3.2Ghz Rev. E0 | Asus P4C800-E Deluxe | 2x1GB PC3200 | 2x160Gb | nVidia TNT 2 | Gentoo (X86)

    Currently breaking: eINIT
    aidanjt is offline   Reply With Quote
    Old 25-11-2007, 09:53 PM   #6 (permalink)
    Seething Cauldron of Hatred
     
    Join Date: Aug 2005
    Posts: 7,917
    Thanks: 105
    Thanked 367 Times in 280 Posts
    Re: Help connecting to a remote MySQL server...

    yes because google use mysql. Only they don't.

    They use a highly modified version, for only some tasks. So that means it must be the dogs bollocks dosen't it?

    Ticketmaster site is hardly a good example of a well run smooth fast website is it?

    If the best adovacy you can come up with is someones using it? how do you know which is the best, all vendor DBs are used, even column store and datawarehouse packages, that dosen't mean there good.

    throw new ArgumentException (String, String, Exception)
    TheAnimus is offline   Reply With Quote
    Old 26-11-2007, 12:06 PM   #7 (permalink)
    Gentoo Ricer
     
    Join Date: Jan 2005
    Location: /var/portage
    Posts: 5,619
    Thanks: 57
    Thanked 256 Times in 239 Posts
    aidanjt's system
    Re: Help connecting to a remote MySQL server...

    Originally Posted by TheAnimus View Post
    yes because google use mysql. Only they don't.

    They use a highly modified version, for only some tasks. So that means it must be the dogs bollocks dosen't it?
    No, they write tools to work with the engine, they don't have a 'highly modified version', nor do they need to. And they use it a lot.

    Originally Posted by TheAnimus View Post
    Ticketmaster site is hardly a good example of a well run smooth fast website is it?
    Works fine for me, graphics are a tad slow to load, everything else is fine, not that it has anything to do with the database, unless they load all their graphics from database, which they don't. Their site hosts a lot of data, it's another example of why your sweaping statement is false.

    Originally Posted by TheAnimus View Post
    If the best adovacy you can come up with is someones using it? how do you know which is the best, all vendor DBs are used, even column store and datawarehouse packages, that dosen't mean there good.
    Nice strawman there, very good. I didn't give arbitrary names of companies that use it, I gave names of big companies with very big data storage needs for their sites.

    Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...
    Server Box -> Asus P5B-E Plus | C2D E6320 | 2x2GB GieL PC2-6400 | 6x500GB (md-raid5) | nVidia 7300LE | Ubuntu Server 9.10 (for now)
    Test Box -> P4E 3.2Ghz Rev. E0 | Asus P4C800-E Deluxe | 2x1GB PC3200 | 2x160Gb | nVidia TNT 2 | Gentoo (X86)

    Currently breaking: eINIT
    aidanjt is offline   Reply With Quote
    Old 26-11-2007, 12:34 PM   #8 (permalink)
    mush-mushroom
     
    b0redom's Avatar
     
    Join Date: Oct 2005
    Location: Shepperton
    Posts: 1,409
    Thanks: 18
    Thanked 49 Times in 44 Posts
    b0redom's system
    Re: Help connecting to a remote MySQL server...

    Originally Posted by aidanjt View Post
    That is utter clap.. O'Reilly media, Ticketmaster, Redhat, Forrester Research, Google, etc, all have really tiny databases I'm sure. And few sites are faster than Google, too.
    and Yahoo...
    b0redom is offline   Reply With Quote
    Old 26-11-2007, 12:36 PM   #9 (permalink)
    mush-mushroom
     
    b0redom's Avatar
     
    Join Date: Oct 2005
    Location: Shepperton
    Posts: 1,409
    Thanks: 18
    Thanked 49 Times in 44 Posts
    b0redom's system
    Re: Help connecting to a remote MySQL server...

    Anyway, returning to the matter at hand....

    How are you trying to connect? PHP?
    b0redom is offline   Reply With Quote
    Old 27-11-2007, 10:00 AM   #10 (permalink)
    Ғо ѕніzzLє му піzzLє
     
    chicken's Avatar
     
    Join Date: Nov 2005
    Location: Kent
    Posts: 1,573
    Thanks: 28
    Thanked 51 Times in 42 Posts
    Re: Help connecting to a remote MySQL server...

    Wow, sorry to have started a DB Server fight! Heheh! Thanks for all the replies anyway guys!

    In reply to some of the questions:

    I'm using ASP and don't have a choice of PHP.

    I'd love to install the ODBC driver but I can't install anything from that login. I have tried to do it manually but although the driver registering exe reported a success it doesn't work, I think this is to do with the files being outside the default folder, or possibly it just needs a reboot (which I can't do). I'd ask the host for help but they barely help us at the best of times and currently there are some high-up politics going on regarding that that I really don't want to get involved in.

    I know the MySQL server accepts remote connections from predefined IP addresses as I have tested it from my own PC.

    I just thought it would be fairly straight forward to do this, I guess not.
    Maybe I should just leave it for now and get looking into better hosting... Has anyone here used Rackspace?



    (Going to investigate ajbrun's idea before I totally give in though...)

    1.21 GIGAWATTS!!!!!
    chicken is offline   Reply With Quote
    Old 27-11-2007, 10:52 AM   #11 (permalink)
    Seething Cauldron of Hatred
     
    Join Date: Aug 2005
    Posts: 7,917
    Thanks: 105
    Thanked 367 Times in 280 Posts
    Re: Help connecting to a remote MySQL server...

    If the ODBC driver dosen't exist on the box, and you don't have rights to install it... your not going to have a nice time.

    throw new ArgumentException (String, String, Exception)
    TheAnimus is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Operating systems & applications


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On


    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    VPN Server 2003 and DG834GT pcpower Networking and Broadband 1 21-08-2007 07:37 PM
    Microsoft Small Business Back Office Server 2000 Pazza SCAN.care@HEXUS 3 17-06-2006 11:32 AM
    Quick question about DHCP server in Win Server 2003 latrosicarius Networking and Broadband 8 24-05-2006 05:07 PM
    Semi Debate/Open Chat/Questions - a True Server.... DR HEXUS.hardware 8 28-06-2005 11:51 AM
    Connecting to the [GSV] Dedicated server through the Hyperlobby.... Tumble HEXUS.wargames 6 16-10-2003 11:10 AM



    All times are GMT. The time now is 08:47 AM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned. HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.

    Hosted Exchange

    Powered by vBulletin® Version 3.8.4
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.3.2
    © Copyright 2009 HEXUS® Limited. All rights reserved. Unauthorised reproduction strictly prohibited.