|
|
Joined: Jan 2003
Posts: 338
Enthusiast
|
Enthusiast
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?
|
|
|
|
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
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
Joined: Apr 2003
Posts: 31 |
In theory, localhost should be faster (No DNS time)
|
|
|
|
Joined: Oct 2000
Posts: 2,223
Veteran
|
Veteran
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.
|
|
|
|
Joined: May 2003
Posts: 5
Newbie
|
Newbie
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
Joined: Jan 2003
Posts: 338 |
Yes, I wrote IP another server and it works
|
|
|
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.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|