
02-02-2007, 12:07 PM
|
|
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?
|

02-03-2007, 02:19 PM
|
|
Web Hosting Master
|
|
Join Date: Apr 2006
Location: Phoenix, AZ, USA
Posts: 684
|
|
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.
|

02-03-2007, 02:26 PM
|
|
Community Leader
|
|
Join Date: Oct 2002
Location: cognito
Posts: 17,320
|
|
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.
|

07-03-2010, 10:52 AM
|
|
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
|

07-20-2010, 03:32 PM
|
|
Newbie
|
|
Join Date: Jul 2010
Location: Peoria, AZ USA
Posts: 6
|
|
Quote:
Originally Posted by urevisedhosting
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.
|

07-20-2010, 05:39 PM
|
|
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.
|

07-20-2010, 08:49 PM
|
|
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.
|

08-16-2010, 04:31 AM
|
|
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.
|

08-23-2010, 12:32 PM
|
|
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....
|

09-14-2010, 10:38 PM
|
|
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
|

09-14-2010, 10:57 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2009
Location: CT
Posts: 680
|
|
Quote:
Originally Posted by bear
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. 
|

09-15-2010, 10:53 AM
|
|
Newbie
|
|
Join Date: Sep 2010
Location: Ohio
Posts: 9
|
|
Quote:
Originally Posted by tiaratext
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.
|

09-19-2010, 05:36 PM
|
|
Newbie
|
|
Join Date: Sep 2010
Location: Maidstone, Kent, UK
Posts: 19
|
|
+1 for Crucials suggestion
|

09-20-2010, 07:12 AM
|
|
WHT Addict
|
|
Join Date: Mar 2008
Location: India
Posts: 115
|
|
Quote:
Originally Posted by inspiron
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..........
|

12-30-2010, 04:11 AM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| 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
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|