Warning: mysql_pconnect(): Access denied

0 votes
asked Oct 30, 2015 in Computers & IT by Abdul Wahab

While searching from a form on my website to see some data, I got the following error message: 

Warning: mysql_pconnect(): Access denied for user 'example_root'@'localhost' (using password: YES) in public_html/myfolder/opendatabase.php on line 25

What is the problem while it was working fine for many month. Still all pages on my website is working fine except this php form.

However, in last week some disk was changed on my hosting server due to some error at hosting company end.  

1 Answer

0 votes
answered Nov 2, 2015 by Muhammad Qasim

This problem may arise when server was recovered after some hard disk crashing as during this restoration process, the original password may be cleared / blanked in the database user. 

You can login to the CPanel of your website or localhost (if working on local system). Then go to the Database area and click on "MySQL Databases".

Here, you will see all the database users, select your user and set the old password or have a new password and then change it in your opendatabase.php file also.

In some cases , if more databases and multiple users exist then assign specific user to the required database also after setting the password. 

Hopefully, it is will you as I got the same problem and solve in the same manner mentioned above. 

Welcome to Ask Questions & Get Answers, where you can ask questions and receive answers from other members of the community. You know Google Answers has been retired, and is no longer accepting new questions but we are.

Most popular tags

essay writing service way to find out imei number pakistan theory of computation definition excel custom essay best essay writing service cell phone maths best-essay portrait landscape youtube video browser shape english computer custom dissertation writing service write-my-paper write-my-essay write-my-essay-online reliable ms(cs) values duplicate service business files writing access installation chrome google remove windows web error number package mail write-my-assignment-essay write-my-college-essay custom essay service writers fast best dissertation writing service. custom dissertation online dissertation writing service dissertation-writing-company get-my-essay write-my-custom-essays top essay writing service custom essay writing help best custom essays custom essays online custom essay writing service online buy-top-essay-writing-service buy-custom-essays-online buy-write-my-essay buy-essays-online get my essay write my custom essays write my essay write-my-quality-essay best essay training games band wireless router range wireless router range extender religious importance of istikhara the way to do it or offer istikhara prayer dua-e-istikhara guidelines نیولا neola nuela newla neula seo vu instructor qustions for viva cs701 vu assignment problem of turing machine bell inequality np-problem boolean formula satisfiable reviews-of-essay-writing-service khashhas hushhash خشخاش hashhash khushhas windows 8 program and features muliple versions microsoft visual c++ 2015 smart phone lenovo