Results 1 to 4 of 4

Thread: [RESOLVED] Accessing a database on another server

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    280

    Resolved [RESOLVED] Accessing a database on another server

    Its an SQL problem but I am writing in PHP so my apologies to Admin and feel free to move this if you think it would be better located.

    I have some working code to access the database on the same server but if I try to change it to the database on a separate server it will not work. Surely this can be done or am I wasting my time and remaining hair?

    Many thanks for your help.
    Slower than a crippled Vista
    More buggy than a fresh XP install
    Look! Down the road, some 50 miles behind the drunken snail.
    It's Ubuntu!

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: Accessing a database on another server

    Others can correct me if I'm wrong, but I believe remote access is disabled by default for MySQL (are we even talking about MySQL?). If you have permission, you can enable it and grant access to remote IPs. Here's a step by step walkthrough of the process.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Accessing a database on another server

    Depends... you should just be able to change the server name, make sure the login info is correct and that's that.... BUT it depends on a number of things.

    Perhapse you can start by telling us what the problem is - are you getting an error message or something? If so what is it EXACTLY? Also what kind of database are you currently connecting to, what kind of database are you trying to connect to? And what does your code look like?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    280

    Re: Accessing a database on another server

    Sorry guys. I really should have said MySQL shouldn't I. However I am working with a programmer in a very different time zone so I could get you more information. Just not right now but I think SambaNeko has just given us the information we needed. Thanks mate and I think this one is resolved. Credits given.
    Slower than a crippled Vista
    More buggy than a fresh XP install
    Look! Down the road, some 50 miles behind the drunken snail.
    It's Ubuntu!

Posting Permissions

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



Click Here to Expand Forum to Full Width