Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

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

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-28-2004, 03:08 AM   #1
Andy
Confirmed User
 
Join Date: Jan 2001
Location: A nice little folder on some C drive inside a huge server ;)
Posts: 460
MySQL connection question ...

I have just one little question .. I use MySQL on my site and I want to use the same database on other site that is on different server .. is it possible to make connection to that database from my second site ?
thanks
__________________
Submit Your Movie Galleries Trade Movie Traffic: 43559081
Andy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 03:09 AM   #2
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
yes... the MySQL networking has to be enabled (I think it is by defult) and you have t oset up the permissions correctly.


GOOGLE GOD DAMNIT!!!! WHy do poeple ask shit like this here.
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 03:10 AM   #3
Andy
Confirmed User
 
Join Date: Jan 2001
Location: A nice little folder on some C drive inside a huge server ;)
Posts: 460
Quote:
Originally posted by - Jesus Christ -
yes... the MySQL networking has to be enabled (I think it is by defult) and you have t oset up the permissions correctly.


GOOGLE GOD DAMNIT!!!! WHy do poeple ask shit like this here.
sorry mate .. I wanted to post some useful thread here .. got overloaded with bang ones and stuff
__________________
Submit Your Movie Galleries Trade Movie Traffic: 43559081
Andy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 03:13 AM   #4
Andy
Confirmed User
 
Join Date: Jan 2001
Location: A nice little folder on some C drive inside a huge server ;)
Posts: 460
oki .. found
in case someone want to know

The mysql_connect function lets you specify any server you want. Just
insert the name of the host your MySQL Database is on, e.g
$conn=mysql_connect("www.yourhost.com","user","pas swd");

easy shit .. I though it could be like this
__________________
Submit Your Movie Galleries Trade Movie Traffic: 43559081
Andy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-28-2004, 03:45 AM   #5
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
Make sure you add permissions in the user or hosts tables of the 'mysql' database to allow the other server in, then do a

mysqladmin reload

to put the changes into effect.
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.