Jump to content

settings.php


bmbc

Recommended Posts


Hi,

I'm trying to get something really simple right ;
Database URL format:

* $db_url = 'mysql://username:password@localhost/databasename';

With localhost , are you meant to put in your domain name or what?
If you are say blah.net do you put that in as localhost or just blah or
something else ?
Link to comment
Share on other sites

No. If you have mysql installed on the server which your site is running off then you can use localhost as the server is located locally. PHP will fund where the database is automatically. However if your MySQL database is hosted of another server then you'll have to subsitiue localhost with the domain name to the remote server.
Link to comment
Share on other sites

[!--quoteo(post=365471:date=Apr 17 2006, 03:13 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 17 2006, 03:13 AM) [snapback]365471[/snapback][/div][div class=\'quotemain\'][!--quotec--]
No. If you have mysql installed on the server which your site is running off then you can use localhost as the server is located locally. PHP will fund where the database is automatically. However if your MySQL database is hosted of another server then you'll have to subsitiue localhost with the domain name to the remote server.
[/quote]

I have mysql installed on my service provider so do I put in mysql.mydomain.net?

Thanks for your help too

Charly
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.