configuration of new database

configuration of new database

am 14.07.2006 14:29:52 von Larry Snyder

I zipped up my website from one server and would like to move it to another
hosting company. Where in the tree are the configuration files for SQL
kept? I see a file called database which is a text document but I do not
see the password for the SQL configuration. This all runs under Linux /
Apache / MySQL.

Thanks - Larry

Re: configuration of new database

am 15.07.2006 04:21:41 von gordonb.hadof

>I zipped up my website from one server and would like to move it to another
>hosting company. Where in the tree are the configuration files for SQL
>kept? I see a file called database which is a text document but I do not
>see the password for the SQL configuration. This all runs under Linux /
>Apache / MySQL.

So where did you PUT the configuration files for SQL? If you're
using PHP (or Perl or TCL or whatever), where do calls to mysql_connect()
or similar functions get their arguments? Especially stuff like
the password?

I usually put this in an include file outside the document file,
in a little include file that defines variables like $mysql_server,
$mysql_user, $mysql_password, and $mysql_db. But that's just my
style.

It's possible the password ends up in the Apache httpd.conf, a .htaccess
file, or php.ini, put there by your service provider .

Gordon L. Burditt