Hi,<br /><br />Well I am having my share of computer problems these past couple of days. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/pissed.gif" style="vertical-align:middle" emoid="issed:" border="0" alt="pissed.gif" /> <br /><br />I have been using the Lararus GB script for some months now and I am running the current version. It works great until last PM - when I clicked on the link for my GB, I got the following error message:<br /><br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Warning: mysql_connect() [function.mysql-connect]: Access denied for user '******_Gail'@'localhost' (using password: YES) in /home/*****/public_html/lazarusgb/lib/mysql.class.php on line 40 $message<!--QuoteEnd--></div><!--QuoteEEnd--> <br /><br />Any ideas as to what the problem may be. <br /><br />I am not into php as yet - I don't understand why a script works perfectly for days/weeks/months and then for no apparent reason - I get an error message and can't get into the GB (obviously a connect problem to db). I haven't made any changes to the way I connect to MySQL.<br /><br />Thanks for any help.<br /><br />Gail<!--content-->
Did you look at the admin/config.inc.php file <br />to check the database info to make sure its still right.<br /><br />I would open a help desk ticket to the techs.<!--content-->
I think you have set the same user for several different databases. You have modified the password for that user, and hence you will need to modify the password in the admin/config.inc.php and update it to the new one.<!--content-->
Hi Guys,<br /><br />You hit the nail on the head. I never realized that using another password for the MySQL db when I set up WordPress would change the other database passwords as well. I think this is the first time it has happened. It changed both Lazarus GB and Gallery 2 but not Coppermine - the Coppermine Gallery still worked. When I think about it, changing the other passwords does make sense when I use the same username.<br /><br />Question: Am I better to use the same username and password for each MySQL db I set up or should I set up different usernames and passwords for each db? I will leave the current ones but I am thinking if I should happen to use another php script in the future that requires setting up a db.<br /><br />As always, thanks for your time.<br /><br />Gail<!--content-->
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Question: Am I better to use the same username and password for each MySQL db I set up or should I set up different usernames and passwords for each db? I will leave the current ones but I am thinking if I should happen to use another php script in the future that requires setting up a db.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />As a personal preference I use a different user/password for each database. But that's just my preference. You can do it either way.<br /><br />Using the same user/pass combination I feel is not such a good idea. If my user/pass combination is hacked and I was using the same for all my databases they would have access to everything.<!--content-->
Hi Bruce,<br /><br />Thanks for your response. Yes, what you say does make sense to me. I must say I have learned something today (not that I don't learn everyday or at least I hope I do). I thought I was doing pretty good at setting up MySQL databases and I never thought of the issue of using the same username and different passwords.<br /><br />Thanks again folks.<br /><br />Gail<!--content-->
Up until recently I only ever used a single database for all the scripts I run. It was only when testing SMF for the Lazarus support forums that I created a new database to test with and decided to keep it once live.<br /><br />Anyway I'm glad you got the problem sorted but not as glad as I am that it's not a problem with Lazarus it's self as that would of meant work for me <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid="" border="0" alt="wink.gif" /><!--content-->
Did you look at the admin/config.inc.php file <br />to check the database info to make sure its still right.<br /><br />I would open a help desk ticket to the techs.<!--content-->
I think you have set the same user for several different databases. You have modified the password for that user, and hence you will need to modify the password in the admin/config.inc.php and update it to the new one.<!--content-->
Hi Guys,<br /><br />You hit the nail on the head. I never realized that using another password for the MySQL db when I set up WordPress would change the other database passwords as well. I think this is the first time it has happened. It changed both Lazarus GB and Gallery 2 but not Coppermine - the Coppermine Gallery still worked. When I think about it, changing the other passwords does make sense when I use the same username.<br /><br />Question: Am I better to use the same username and password for each MySQL db I set up or should I set up different usernames and passwords for each db? I will leave the current ones but I am thinking if I should happen to use another php script in the future that requires setting up a db.<br /><br />As always, thanks for your time.<br /><br />Gail<!--content-->
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Question: Am I better to use the same username and password for each MySQL db I set up or should I set up different usernames and passwords for each db? I will leave the current ones but I am thinking if I should happen to use another php script in the future that requires setting up a db.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />As a personal preference I use a different user/password for each database. But that's just my preference. You can do it either way.<br /><br />Using the same user/pass combination I feel is not such a good idea. If my user/pass combination is hacked and I was using the same for all my databases they would have access to everything.<!--content-->
Hi Bruce,<br /><br />Thanks for your response. Yes, what you say does make sense to me. I must say I have learned something today (not that I don't learn everyday or at least I hope I do). I thought I was doing pretty good at setting up MySQL databases and I never thought of the issue of using the same username and different passwords.<br /><br />Thanks again folks.<br /><br />Gail<!--content-->
Up until recently I only ever used a single database for all the scripts I run. It was only when testing SMF for the Lazarus support forums that I created a new database to test with and decided to keep it once live.<br /><br />Anyway I'm glad you got the problem sorted but not as glad as I am that it's not a problem with Lazarus it's self as that would of meant work for me <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid="" border="0" alt="wink.gif" /><!--content-->