This seems like a very basic question that only a complete idiot would ask. That's why I'm asking it. I'll play village idiot for today.
I need to update some values in conf.php so that I can get mysql calls to work on my local machine, but I can't find conf.php. I have done a search of my entire machine and can't find it. I also checked my other computer, in which mysql calls work fine, and i can't find it on there either. Am I missing something here?
I need to update my hostname, username, and password in conf.php so that my database queries will be allowed. Anyone? (be gentle...)
Where is conf.php?
Moderator: General Moderators
I have been developing a web application over the last couple of years on my local machine. The app uses html, php, and mySQL. I set up my local machine a couple of years ago by installing WAMP. I am running Windows XP.
I ran into this problem back then when I set up my local server, but was able to fix it by changing the password/username lines in some configuration file. I hired someone to configure my production server some time later, so I had nothing to do with that. Now I am setting up a laptop with a local server so I can take my work on the road. I just ran WAMP setup and got everything to run correctly. Now when I login to the application and start running it, it stops at the first mySQL call and says something to the tune of "could not connect to database xyz using user@...access is denied" (I'm not around the laptop now so I can't tell you the exact wording).
I'm fairly certain that I just need to change the username and password in a conf file to match the one being sent by the php call. Does that help? If it's any help, I installed mysql Administrator, and when I start it up I get an error saying it couldn't locate a configuration file (again, I can't tell you the exact wording, which isn't any help at all), but I click OK and can still access and edit my databases.
I ran into this problem back then when I set up my local server, but was able to fix it by changing the password/username lines in some configuration file. I hired someone to configure my production server some time later, so I had nothing to do with that. Now I am setting up a laptop with a local server so I can take my work on the road. I just ran WAMP setup and got everything to run correctly. Now when I login to the application and start running it, it stops at the first mySQL call and says something to the tune of "could not connect to database xyz using user@...access is denied" (I'm not around the laptop now so I can't tell you the exact wording).
I'm fairly certain that I just need to change the username and password in a conf file to match the one being sent by the php call. Does that help? If it's any help, I installed mysql Administrator, and when I start it up I get an error saying it couldn't locate a configuration file (again, I can't tell you the exact wording, which isn't any help at all), but I click OK and can still access and edit my databases.
I know phpmyadmin has a file called my.conf.php or something like that... which contains username/password if you want it in there. As far as YOUR application, I believe you are the only one who is going to be able to locate/create your own configuration file. That is information you should have had to set up at one point unless you set up your php.ini file to know that stuff automatically.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Couple of things to consider:
1) Search your system for all files where files might contain the name 'conf.php' or the file itself contains the string '$host' or something to that effect.
2) The error you're getting could be from any number of issues. It could be a username/password conflict, or it could be a client API issue.
3) Are you attempting to take an app that is running on one system and drop it onto another system? If so, what are the setups on the first and new machines?
1) Search your system for all files where files might contain the name 'conf.php' or the file itself contains the string '$host' or something to that effect.
2) The error you're getting could be from any number of issues. It could be a username/password conflict, or it could be a client API issue.
3) Are you attempting to take an app that is running on one system and drop it onto another system? If so, what are the setups on the first and new machines?