View Single Post
  #2  
Old 23rd July 2009, 09:46
Gleno0h Gleno0h is offline
Junior Member
 
Join Date: Apr 2009
Posts: 20
Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by cobro View Post
I have been looking into lost admin password here and all say that i have to connect to phpmyadmin and change the password from there but here is the funny thing i cannot connect to phpmyadmin from my browser this is what i get

Forbidden

You don't have permission to access /phpmyadmin on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

but i have root accsess to the server i am the owner of the box can i do somthing within putty ?

any help would be appreciated.
try this;

Code:
/etc/init.d/mysql stop
mysqld_safe --skip-grant-tables &
mysql -u root
you should now see
Code:
mysql>
then;
Code:
use mysql;
update user set password=PASSWORD(”Yourpasswordherethatyouwant”) where user=’root’;
flush privileges;
quit
/etc/init.d/mysql stop
/etc/init.d/mysql start
mysql -u root -p
enter the pass you just made .. let me know if it worked, got it from google
Reply With Quote