IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Help Me Config Drupal Url Database!


gippal
no avatar
Newbie
*
Group: Members
Posts: 7
Joined: 12-September 06
Member No.: 29,828



Post #1 post Sep 15 2006, 10:29 AM
I tried Install drupal In my hosting service but I'm totally stuck and have not a clue what I did wrong

first, drupal worked properly when used in localhost


sites/default/setting.php

$db_url='mysql://myusername:mypassword@localhost/mydatabase';



Than I change it to my host;

sites/default/setting

$db_url='mysql://myusername:mypassword@db5.mysites.com/mydatabase';

but when I tried to open, It shows Internal server error

what have I done wrong?????
can you tell me the right setting????
please help me!!!



regards,
gippal
Go to the top of the page
+Quote Post
kdr_98
no avatar
Super Member
*********
Group: Members
Posts: 219
Joined: 30-October 05
Member No.: 13,574



Post #2 post Sep 15 2006, 05:15 PM
Do you have a database on that other server ?
And the server with the database have to support requests from the outside.

Its easy to have the hosting and the database on the same server, then you have no problems.


Go to the top of the page
+Quote Post
gippal
no avatar
Newbie
*
Group: Members
Posts: 7
Joined: 12-September 06
Member No.: 29,828



Post #3 post Sep 16 2006, 12:17 PM
Sure I have a username and a database in that server....but the location on my database is different with my domain and subdomain.

for example my subdomain is http://gippal.finalFantasy.com
but my database located in db5.finalFantasy.com

in my host, it automaticvally host database in separated location
is drupal can't open mysql database that has separated location????




regards,

gippal
Go to the top of the page
+Quote Post
kdr_98
no avatar
Super Member
*********
Group: Members
Posts: 219
Joined: 30-October 05
Member No.: 13,574



Post #4 post Sep 17 2006, 06:51 AM
Never tried it before on a other location.

I'm running drupal on a local server (lampp), and the database and the webserver are on the same computer.

Note: You have to make a database and (database)user on the server before you can start.
Then you have to make the tables with the SQL provided with the instalation.

With my configuration it worked in a few minutes.
I'll try to move the database to another computer in my (small) LAN and I'll see what happens.
Go to the top of the page
+Quote Post
kdr_98
no avatar
Super Member
*********
Group: Members
Posts: 219
Joined: 30-October 05
Member No.: 13,574



Post #5 post Sep 17 2006, 06:18 PM
I have tested the following and it works :

Webserver (in local lan using XAMPP).
Database (on free server http://www.freesql.org)

The line in the drupal config becomes :

CODE

$db_url = 'mysql://[i]login[/i]:[i]password[/i]@www.freesql.org:3306/[i]databasename[/i]';


Note the Italic has to be filled in with your specs.
The number :3306 is port on the server that's listening for database access.
(you need to specify this when it's not the default port).
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   13 chinfo 8,705 2nd August 2004 - 03:12 AM
Last post by: X3r0X
No New Posts   2 threepach 2,093 19th February 2008 - 08:30 PM
Last post by: threepach
No New Posts   7 Raptrex 13,184 27th August 2004 - 11:16 PM
Last post by: Spectre
No New Posts   0 NuHoaXuLa 3,381 20th September 2004 - 05:56 AM
Last post by: NuHoaXuLa
No New Posts   2 Raptrex 3,384 1st October 2004 - 05:53 AM
Last post by: serverph
No New Posts   4 brandrocker 595 27th December 2008 - 12:16 PM
Last post by: OpaQue
No New Posts 4 NuHoaXuLa 2,907 8th February 2009 - 10:58 AM
Last post by: Quatrux
No New Posts   0 lawmatchmaker 719 23rd June 2006 - 07:46 AM
Last post by: lawmatchmaker
No New Posts   4 logophobia 2,983 8th February 2009 - 11:01 AM
Last post by: Quatrux
No New Posts 4 gunbound 2,359 18th July 2006 - 10:54 PM
Last post by: Tetraca
No New Posts 5 khmerneed 5,230 17th July 2009 - 09:22 AM
Last post by: iG-Ranjan
No New Posts   8 BoSZ 5,044 14th January 2005 - 08:28 PM
Last post by: MaRiOnI
No New Posts   1 de4ws 2,742 20th December 2004 - 08:26 AM
Last post by: Galahad
No New Posts   1 FaLgoR 3,389 8th January 2005 - 11:00 AM
Last post by: mizako
No New Posts   4 cse-icons 3,612 7th February 2005 - 02:37 PM
Last post by: OpaQue


 



RSS Open Discussion Time is now: 7th November 2009 - 12:56 AM

Web Hosting Powered by ComputingHost.com.