hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : Web Hosting Tutorials : Lost mysql password, how to change in WHM/cpanel?
Reply

Web Hosting Tutorials Tutorials related to shared hosting.
Forum Jump

Lost mysql password, how to change in WHM/cpanel?

Reply Post New Thread In Web Hosting Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-02-2007, 12:07 PM
kenigmatic kenigmatic is offline
Newbie
 
Join Date: Jun 2005
Posts: 29

Lost mysql password, how to change in WHM/cpanel?


I have lost my password for a mysql database.
I am planning to move site/s to another server.
How to change in WHM/cpanel?

Reply With Quote


Sponsored Links
  #2  
Old 02-03-2007, 02:19 PM
Crucial Web Host Crucial Web Host is offline
Web Hosting Master
 
Join Date: Apr 2006
Location: Phoenix, AZ, USA
Posts: 687
Hi Kenigmatic,

Simply log into WHM and scroll down and find SQL Services. In that section you will find a link to reset your root password for MySQL.

Kindly,

If you dont have access to cpanel and you're just trying to reset a passwod for a a local dbuser. Log into cpanel and go to databases. From there you can just change the password for the db user.


Last edited by bear; 02-03-2007 at 02:26 PM.
Reply With Quote
  #3  
Old 02-03-2007, 02:26 PM
bear bear is online now
Community Leader
 
Join Date: Oct 2002
Location: cognito
Posts: 17,439
Sounded like he lost one password, not the root pass? You should be able to edit by just entering the same username in mysql (from the cpanel link) and creating a new password. It should overwrite the existing one. Remember to change any connection scripts to use the new one as well, or they will fail.

Reply With Quote
Sponsored Links
  #4  
Old 07-03-2010, 10:52 AM
urevisedhosting urevisedhosting is offline
Junior Guru Wannabe
 
Join Date: Sep 2006
Location: UK
Posts: 59
If your looking for a quick resolution it's best just to recreate the mysql user in cPanel - I believe mysql passwords have to be reset by root.

Hope this helps

Reply With Quote
  #5  
Old 07-20-2010, 03:32 PM
shankdigital shankdigital is offline
Newbie
 
Join Date: Jul 2010
Location: Peoria, AZ USA
Posts: 6
Quote:
Originally Posted by urevisedhosting View Post
If your looking for a quick resolution it's best just to recreate the mysql user in cPanel - I believe mysql passwords have to be reset by root.

Hope this helps

Yeah, im pretty sure the reset would have to be done via the root user.

But if you delete / recreate the user, it should work. Or you can create a totally new user for the database. It wont lose any of the data, it will just be like adding a new user to an existing database.

Reply With Quote
  #6  
Old 07-20-2010, 05:39 PM
inspiron inspiron is offline
Support Facility
 
Join Date: Jun 2009
Posts: 2,318
You will need the root access to change the password through WHM >> SQL Services >> Change Mysql user password or you can get change it through the cPanel >> MySQL Databases.

Reply With Quote
  #7  
Old 07-20-2010, 08:49 PM
Everything Everything is offline
Newbie
 
Join Date: Jul 2010
Posts: 5
I've had a lot of trouble with this in the past, it's good to see some support on this.

Reply With Quote
  #8  
Old 08-16-2010, 04:31 AM
CanHasHost CanHasHost is offline
Junior Guru Wannabe
 
Join Date: Aug 2009
Location: Riverside, CA
Posts: 33
I probably wouldn't be messing with the mysql login details through WHM itself, it's best to create a new user in the cpanel area of the account in question, which you access either from whm in the list accounts page, or by logging into the cpanel account directly. Create the user and add it to your database, it's possible to have more than one user on a database as well if you don't want to mess with the one you setup already.

Reply With Quote
  #9  
Old 08-23-2010, 12:32 PM
tiaratext tiaratext is offline
New Member
 
Join Date: Aug 2010
Posts: 0
help...why can't I access my cpanel at all? My welcome page says login to cpanel gives me a password, but, to date I can't get in....

Reply With Quote
  #10  
Old 09-14-2010, 10:38 PM
Setup Link Setup Link is offline
Junior Guru Wannabe
 
Join Date: Feb 2007
Posts: 31
login to phpmyadmin or to your root mysql account via SSH and create a new user with access to your database. If you cant access cpanel you need to change your root pass on your account or vps

Reply With Quote
  #11  
Old 09-14-2010, 10:57 PM
GORF GORF is offline
Web Hosting Master
 
Join Date: Jul 2009
Location: CT
Posts: 681
Quote:
Originally Posted by bear View Post
Remember to change any connection scripts to use the new one as well, or they will fail.
Just look in the script! You say you have access to cPanel. Look in the database connection script.

Reply With Quote
  #12  
Old 09-15-2010, 10:53 AM
HFWMikeM HFWMikeM is offline
Newbie
 
Join Date: Sep 2010
Location: Ohio
Posts: 9
Quote:
Originally Posted by tiaratext View Post
help...why can't I access my cpanel at all? My welcome page says login to cpanel gives me a password, but, to date I can't get in....
You will want to contact your hosting provider to get that password reset, unless you have access to WHM as root. If this is the case then you would be able to change the password by logging in as root >> Account Functions >> Password Modification

Most welcome letters that I have come across for VPS only contain the root password and not the cPanel account information so you could be trying to login to cPanel as root which will not work.

As for the MySQL database issue, I would have to agree with everyone else that creating a new user and adding it to the database is the best route to go. Then just delete the old user and update your configuration files to use the new user/pass combo.

Mike M.

Reply With Quote
  #13  
Old 09-19-2010, 05:36 PM
webdesignnet webdesignnet is offline
Newbie
 
Join Date: Sep 2010
Location: Maidstone, Kent, UK
Posts: 19
+1 for Crucials suggestion

Reply With Quote
  #14  
Old 09-20-2010, 07:12 AM
sanseo sanseo is offline
WHT Addict
 
Join Date: Mar 2008
Location: India
Posts: 115
Quote:
Originally Posted by inspiron View Post
You will need the root access to change the password through WHM >> SQL Services >> Change Mysql user password or you can get change it through the cPanel >> MySQL Databases.
yes this is right way, You can change it whm or cpanel, both have access if you want to change multiple website a/c than use whm..........

Reply With Quote
  #15  
Old 12-30-2010, 04:11 AM
DxSEO DxSEO is offline
Junior Guru Wannabe
 
Join Date: Apr 2007
Location: India
Posts: 68
If you have WHM panel password then you can reset it bt yourself if you are owner of that hosting without any problem

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
SSHD Rootkit in the Wild Blog 2013-02-22 16:44:08
cPanel Security Updates Address Perl Module Vulnerabilities Web Hosting News 2012-12-06 12:55:54
cPanel Conference 2012: Branding and How to Do it Better with Felipe Gasper Web Hosting News 2012-10-09 18:00:02
cPanel Launches Version 11.32 of Control Panel and Web Host Manager Web Hosting News 2012-02-15 12:46:33
cPanel to Launch Certification Program at cPanel Conference 2011 Web Hosting News 2011-09-21 18:15:42


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?