valeen10 Posted January 21, 2010 Share Posted January 21, 2010 I truly need help with this config.php file. Been trying to figure it out for days now but no luck and no tutorial online to give some insight on what I should do. I have some PHP knowledge and HTML knowledge but when it comes to databases and mysql I'm lost. So this is where I can use some guidance. Below is the section on the config.php I'm having trouble with...the trouble area is in red $dbhost = 'mysql'; // database host (these are right I believe) $dbuser = 'myphpadmin-user-name@localhost'; // database user name $dbpass = 'myphpadmin-user-password'; // database user password $dbdatabase = 'ecards'; // database with Cards tables To give you an idea of what I've done so far, I installed MyPHPAdmin in the actual file folder like this... FTP folder funcards to my webhost (inside this folder is) Folder images Folder admin Folder css Folder myphpadmin (installed myphpadmin in this folder - database ecards was created in this folder with myphpadmin) ( no fields or tables yet - setup.php is suppose to create them ) So my dilemma is I'm not sure how to link ecards database in $dbdatabase. I did noticed when I installed myphpadmin it stated location was- - root>ecards. Not sure if this means anything but added it just in case. To give an idea of what setup.php does when I run it, I get this: Could not connect to the selected database: ecards. Check the config.php file to be sure you set the correct database server, database name, username, and password. Contact your system administrator if you do not know these values. Just in case...I did contact server host for the information on mysql. My host is Yahoo. Any help anyone can provide would be very much appreciated! If you have any questions feel free to ask. xxxx Valeen Quote Link to comment https://forums.phpfreaks.com/topic/189279-pls-help-having-trouble-with-configphpnot-sure-what-im-doing-wrong/ Share on other sites More sharing options...
RaythMistwalker Posted January 21, 2010 Share Posted January 21, 2010 sometimes a database name is such as it is username_database so in your case username_ecards Quote Link to comment https://forums.phpfreaks.com/topic/189279-pls-help-having-trouble-with-configphpnot-sure-what-im-doing-wrong/#findComment-999358 Share on other sites More sharing options...
valeen10 Posted January 22, 2010 Author Share Posted January 22, 2010 Thank you soooo much for your reply. I'm going to try what you wrote and see if it works. I'll let ya know if it does or not soon. xxxx Valeen Quote Link to comment https://forums.phpfreaks.com/topic/189279-pls-help-having-trouble-with-configphpnot-sure-what-im-doing-wrong/#findComment-999800 Share on other sites More sharing options...
valeen10 Posted January 22, 2010 Author Share Posted January 22, 2010 :'( I tried it and it didn't work...i tried two different angles to your response....example... $dbdatabase = 'whisper@localhost_ecards'; // database with Cards tables second attempt $dbdatabase = 'whisper_ecards'; // database with Cards tables None of these work...any other suggestion or guidance you can offer, RaythMistwalker? (anyone else feel free to respond as well) xxx Valeen Quote Link to comment https://forums.phpfreaks.com/topic/189279-pls-help-having-trouble-with-configphpnot-sure-what-im-doing-wrong/#findComment-999811 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.