Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Need Help...forgot A Mysql Db Pass...
Logan Deathbring...
post Dec 17 2005, 01:00 PM
Post #1


Geek in-training
Group Icon

Group: Members
Posts: 301
Joined: 2-July 05
From: Washington State, USA, 3rd Rock from the Star Sol
Member No.: 6,772



Ok I forgot the password to a MySQL DB I have and would like to see if there is a way to reset the password to it so I can use it again. Is there a Query I can run through MyPHP to clear or change the password? Any help with this problem will be greatly appreciated...I would like to be able to retreive a good portion of the information in this DB as it is pertinant to my website.

Logan
Go to the top of the page
 
+Quote Post
PureHeart
post Dec 17 2005, 02:42 PM
Post #2


Premium Member
Group Icon

Group: Members
Posts: 209
Joined: 7-October 05
From: Đà Nẵng City - Việt Nam
Member No.: 8,966



You can change/reset the password via cPanel.

1.Open cPanel
2.Go go "MySQL Databases: page
3.Use phpMyAdmin tool to open all your databases
You always can access to them all using your cPanel username and password, the main account always have full control of the database. After that, select the database you need to reset password.
4.Do a backup on the database by exporting the database to a file
5.Go to cPanel and delete the database, after that, create a new one with the same name.
6.Set the new password to the new one, as you want to.
7.Restore and the tables and information of the database using phpMyAdmin, again.

Finish!
Go to the top of the page
 
+Quote Post
hatim
post Dec 17 2005, 04:45 PM
Post #3


Advanced Member
Group Icon

Group: Members
Posts: 196
Joined: 17-June 05
From: Topi,Swabi,NWFP,Pakistan
Member No.: 6,301



Well if its on astahost MySQL server ..u can always ask the admin smile.gif
Go to the top of the page
 
+Quote Post
saxsux
post Dec 17 2005, 05:55 PM
Post #4


Bursting with vegany goodness!
Group Icon

Group: Members
Posts: 342
Joined: 8-April 05
From: Norwich, UK
Member No.: 3,753
myCENTs:10.76



If you go to MySQL Databases (next to PHP MyAdmin in cPanel) and scroll down. You can create a new username and password and give it privelages on the database, and then delete the old user. It should be faster than backing the whole thing up and creating a new database.
Go to the top of the page
 
+Quote Post
Logan Deathbring...
post Dec 17 2005, 11:02 PM
Post #5


Geek in-training
Group Icon

Group: Members
Posts: 301
Joined: 2-July 05
From: Washington State, USA, 3rd Rock from the Star Sol
Member No.: 6,772



Thanks for all the help everyone I will give em a try in the next day or two and get back to you on how everything turns out. Would do it today but I have to defrost my radiator and engine block, while at the same time hoping that all the seals, block, and radiator survive unscathed.

I'll post again after I try these ideas.

Logan
Go to the top of the page
 
+Quote Post
xboxrulz
post Dec 18 2005, 04:25 AM
Post #6


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 2,881
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233
myCENTs:22.53



you could just make a new user and attach that user to the database...


xboxrulz
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Do You Need A Seperate Password For MySQL ?(8)
  2. Mysql Storage Engine Error 28(5)


 



- Lo-Fi Version Time is now: 5th December 2008 - 01:36 AM