Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Connecting to mysql from host

  • Please log in to reply



    - i pwn n00bs -

  • Member
  • PipPipPipPip
  • 1,260 posts

I was wondering if anyone knew how to connect to a mysql database that is not on the localhost

usually i just simply connect to the local host by typing:
shell> mysql -h localhosot -u user -p
Enter password: ******

or php

mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");

@mysql_select_db("$DBName") or die("Unable to select database $DBName");

however, i am creating a site on domain1.com but want it to connect to mysql database I have on domain2.com.

Anyone know what the correct host name would be or anything?

  • 0




    Member 5k

  • Retired Staff
  • 21,285 posts
  • MVP
In all of mine I have not connected to a domain name, rather an IP address.

ScHwErV :tazz:
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP