Support Forums
mysql display password - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: mysql display password (/showthread.php?tid=1443)



mysql display password - hey101 - 10-13-2009

I have had many problems connecting to my mysql database via php. I know how and have done it many times before but i think my script is sending the wrong pass for some reason. My script works on other websites where i have setup mysql the same way. How can i modify my php distribution so when mysql says that access is denied for xxx user it also displays the password instead of just saying using "passwords [yes]"?

Its only temp and its only local. Im running the latest version of xampp on windows vista.

Oh and before you ask yes i setup the same user and pass i i have just for testing. Smile


RE: mysql display password - h1r0n - 10-16-2009

have you checked to your phpMyAdmin?

or go to the mysql console and type in

Code:
SET PASSWORD FOR root@localhost=PASSWORD('pass_here');



RE: mysql display password - hey101 - 10-16-2009

well i did go through php my admin to setup the account, Iv done that like always. Now my question is mainly how could i modify my php distribution to actually show the password instead of just saying using password[yes]?