469,339 Members | 8,437 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,339 developers. It's quick & easy.

configuration of new database

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
Jul 14 '06 #1
1 1693
>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
Jul 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Famille Delorme | last post: by
2 posts views Thread by Serge Calderara | last post: by
2 posts views Thread by serge calderara | last post: by
4 posts views Thread by Johnny Emde | last post: by
7 posts views Thread by Ina Schmitz | last post: by
7 posts views Thread by Peter Bradley | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.