Previous Thread
Next Thread
Print Thread
Rate Thread
#245175 05/03/2003 8:39 AM
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
need advide - in config.inc.php are lines:

// Server hosting the database

$config['dbserver']= "localhost";



It's possible to write url to another site with mysql base?

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It depends if the mysql server and mysql user is allowed to connect to another host.

If it is... I've seen things like

mysql.mydomain.com

But often the mysql user only has permissions coming from "localhost".

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Josh is right.
It's possible to use a database from a different host. But you need to set the permissions.

You might want to take a look at the MySQL documentation.

Joined: Apr 2003
Posts: 31
User
User
Offline
Joined: Apr 2003
Posts: 31
In theory, localhost should be faster (No DNS time)

Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
Jelly_Donut, where do you come up with this stuff?

The machine still has to look at /etc/hosts to find where localhost is. If you put the server name and address of the machien you are connecting to via MySQL into /etc/hosts you've made the time even.

Now, if you want to say it should be faster because you don't have to go across a network, even an local one, I would agree with you.


Picture perfect penmanship here.
Sponsored Links
Joined: May 2003
Posts: 5
Newbie
Newbie
Offline
Joined: May 2003
Posts: 5
Are you completly clueless all the time or just after you've eaten too many donuts?

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
I have already done it Slawek_L. Instead of localhost I use another host - it works with an IP address as well. The only thing is that the username and password that I specify in there should have the appropriate permissions on the threads table.


Nikos
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Please refrain from such comments because they might perceived as offensive. Alternatively if you are joking you can use the graemlins - shows your mood


Nikos
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Yes, I wrote IP another server and it works


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)