Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: remote mysql database access questions

  1. #1
    Senior Member
    Join Date
    May 2004
    Posts
    103

    remote mysql database access questions

    Hi All,

    This seems to be a simple question, but I cannot find the answer after looking on google and yahoo search.

    Most of php scripts that use mysql database use localhost as their server. If my database is on other server, can I access the database using php scripts? How?

    Thanks in advance for any info.

    Regards,
    Sjarief

  2. #2
    WebProWorld MVP danlefree's Avatar
    Join Date
    Jun 2005
    Posts
    414
    The PHP mysql_connect() command should cover everything for you - just include the domain name or IP address of your MySQL server and you're set.

    Check out the PHP mysql_connect() Manual for detailed information and code samples.
    Dan LeFree | Owner/Operator (Web development, marketing)

  3. #3

    use domain or IP

    Where it says 'localhost' replace it with 'www.yourcompany.com' or the 'IP address' of the MySQL host computer.

    Good look.

    Dreamweaver handles PHP connections well. (Although it is a bit meagre on other controls.)
    Government without personal responsibility is evil--- http://www.node-net.com/

  4. #4
    Senior Member
    Join Date
    May 2004
    Posts
    103

    Re: use domain or IP

    Quote Originally Posted by node-net
    Where it says 'localhost' replace it with 'www.yourcompany.com' or the 'IP address' of the MySQL host computer.

    Good look.

    Dreamweaver handles PHP connections well. (Although it is a bit meagre on other controls.)
    Thanks, it works now...

Similar Threads

  1. Replies: 24
    Last Post: 03-01-2011, 09:25 AM
  2. REMOTE ACCESS - someone controls my life - please help
    By kefir in forum Internet Security Discussion Forum
    Replies: 3
    Last Post: 09-16-2008, 08:08 AM
  3. remote access software suggestions??
    By gellnsh in forum Accessibility and Usability Forum
    Replies: 3
    Last Post: 08-09-2005, 07:36 PM
  4. Getting MS Access data into MySQL database
    By Dragonsi in forum Database Discussion Forum
    Replies: 1
    Last Post: 04-06-2005, 12:52 AM
  5. Remote or local Database - benefits snd problems ?
    By carju1 in forum Database Discussion Forum
    Replies: 7
    Last Post: 08-23-2004, 06:51 AM

Posting Permissions

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