Database connectivity

Hii , am manjunath working as an Intern using Drupal for content management for my project. Drupal has MySql as database but i can i access any other database already exist. i want to use the other database from a server. is it possible ? how ... help ASAP

set DB details in settings.php file ....

Sree - August 21, 2008 - 08:53

In settings.php file you can set your DB as you require.

path of settings.php

d6-nerd - August 21, 2008 - 09:35

Can you mention the entire path of the file settings.php u mentioned in drupal

...

Sree - August 21, 2008 - 10:20

yoursitedir/sites/default/settings.php

password for db storage

d6-nerd - August 26, 2008 - 06:21

Can you please tell me where the password ( is stored , ofcourse - encrypted ) for user name and database name mentioned in the settings.php file. Iam curious to know that

DB ....

Sree - August 26, 2008 - 06:26

they are your DB USERNAME & PASSWORD rt/

I didnt get your question ...

Check setting.php for $db_url...

rishav - August 26, 2008 - 06:35

Check setting.php for $db_url

its stored in this format

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

connecting to another database simultaneously at the same time

d6-nerd - August 26, 2008 - 07:31

Can I connect to another database ( newly created ) simultaneously at the same time for working in a new module created along with the default database created at time of drupal install by default.
If drupal supports ( i hope - yes ) and for working properly, where the settings to be made, what are the changes to be made ( setting.php or any other files ) .
ie for my new db named databasename1 to be added , what are the changes to be made.

Thanks

I guess, it usually is a bad

rishav - August 27, 2008 - 05:40

I guess, it usually is a bad idea to use multiple databases for a single app, so I would suggest you use the database you have installed drupal in.

If you still want to use a separate database for particular module, u can create it and connect to it using separate mysql_select_db function, I am not

entirely sure about this, but u can try it out, and we can know for sure :)

php.file

navnim - December 4, 2008 - 06:14

naveen
hi i understand what u asked
i advise you to go to this site for full details
http://nextil.blogspot.com

 
 

Drupal is a registered trademark of Dries Buytaert.