473,803 Members | 3,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Recover a Password

Is there a way to recover a lost password in Mysql 4.1. I have seen many
articles and howto's on how to kill the Mysql process and then restart using
skip grant tables option. I am not trying to reset the password but rather
recover it. Resetting the password to something else would cause a problem
some of the underlying programs that rely on MySQL. I don't feel like
changing code for every application that is using MySQL in my site.

Also along similar lines. What if I were to kill the MySQL process and then
reload with the skip grant tables option and login to the MySQL server.
Could I create another account with root priviledges, such as admin, while
not messing with the original root account or it's password.

Lastly is there a way to copy just the grant tables information to another
copy of MySQL so that I can experiment with this process on a non production
box? Any help appreciated.

Running MySQL 4.1 PHP 4.3 Apache 2.0 on Redhat 9.0
Jul 23 '05 #1
4 2697
chuy wrote:
Is there a way to recover a lost password in Mysql 4.1.
MySQL 4.1 passwords are encrypted using a one-way 41-bit hashing
function. Passwords are not reversible.
See http://dev.mysql.com/doc/mysql/en/password-hashing.html.
Resetting the password to something else would cause a problem
some of the underlying programs that rely on MySQL. I don't feel like
changing code for every application that is using MySQL in my site.
If there are programs that use the old password to log into the root
account, couldn't you recover the password by reading the code for those
programs? :-)
Could I create another account with root priviledges, such as admin, while
not messing with the original root account or it's password.
Yes, you could create another user with privileges to everything.
See example of creating superusers on
http://dev.mysql.com/doc/mysql/en/adding-users.html
Lastly is there a way to copy just the grant tables information to another
copy of MySQL so that I can experiment with this process on a non production
box? Any help appreciated.


AFAIK, you should be able to back up the mysql database just like any
other. Then restore it on your test system. I haven't done this
operation myself, though. So if there's some restriction against this,
I don't know.

Regards,
Bill K.
Jul 23 '05 #2
The password is located in an encrypted PHP script that is using ioncube for
dencryption. When I use the VI editor on the file I get a bunch of garbage.
Are you saying that is I am using Mysql 4.0 then I could get at the
password. To be sure I am unable to verify the actual version of MySQL
being used.

Upon further review I am inclined to say that 4.0 is being used as the PHP
version is onlyl 4.3 and the passwords seem to get passed on properly. On a
different server I use MySQL 4.1 with PHP 4.3 and no dice regarding
passwords unless I save password using old password line from within the
Mysql window.

In any event suppose I am using MySQL 4.0 or Mysql 4.1 with old passwords
would I then be able to recover them? Thanks

"Bill Karwin" <bi**@karwin.co m> wrote in message
news:cu******** *@enews4.newsgu y.com...
chuy wrote:
Is there a way to recover a lost password in Mysql 4.1.


MySQL 4.1 passwords are encrypted using a one-way 41-bit hashing function.
Passwords are not reversible.
See http://dev.mysql.com/doc/mysql/en/password-hashing.html.
Resetting the password to something else would cause a problem some of
the underlying programs that rely on MySQL. I don't feel like changing
code for every application that is using MySQL in my site.


If there are programs that use the old password to log into the root
account, couldn't you recover the password by reading the code for those
programs? :-)
Could I create another account with root priviledges, such as admin,
while not messing with the original root account or it's password.


Yes, you could create another user with privileges to everything.
See example of creating superusers on
http://dev.mysql.com/doc/mysql/en/adding-users.html
Lastly is there a way to copy just the grant tables information to
another copy of MySQL so that I can experiment with this process on a non
production box? Any help appreciated.


AFAIK, you should be able to back up the mysql database just like any
other. Then restore it on your test system. I haven't done this
operation myself, though. So if there's some restriction against this, I
don't know.

Regards,
Bill K.

Jul 23 '05 #3
Upon further review the version is actually 3.23.58.
"chuy" <ch****@yahoo.c om> wrote in message
news:11******** *****@corp.supe rnews.com...
Is there a way to recover a lost password in Mysql 4.1. I have seen many
articles and howto's on how to kill the Mysql process and then restart
using skip grant tables option. I am not trying to reset the password but
rather recover it. Resetting the password to something else would cause a
problem some of the underlying programs that rely on MySQL. I don't feel
like changing code for every application that is using MySQL in my site.

Also along similar lines. What if I were to kill the MySQL process and
then reload with the skip grant tables option and login to the MySQL
server. Could I create another account with root priviledges, such as
admin, while not messing with the original root account or it's password.

Lastly is there a way to copy just the grant tables information to another
copy of MySQL so that I can experiment with this process on a non
production box? Any help appreciated.

Running MySQL 4.1 PHP 4.3 Apache 2.0 on Redhat 9.0

Jul 23 '05 #4
chuy wrote:
In any event suppose I am using MySQL 4.0 or Mysql 4.1 with old passwords
would I then be able to recover them? Thanks


No. Passwords in earlier MySQL versions are still not reversible,
they're just encrypted with a shorter hashing function. You should read
the web pages I referred you to.

You're saying you have only the encrypted version of the PHP scripts,
and not the original source? I'd consider that a problem, for more
reasons than recovering the MySQL password.

Regards,
Bill K.
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6392
by: BadBob | last post by:
I installed a new application and it over wrote my passwords. I can not get back in to mysql. Someone suggested there is a way to set the password without knowing the old password. Can anyone help me with this? Bob
5
3829
by: Prem K Mehrotra | last post by:
I come from Oracle background. In Oracle, when one wants to do a point in time recovery, one can specify recover database until timestmap. Oracle's database maps to a db2 subsystem, i.e., in Oracle database means entire database, i.e.. all tablespaces (including indexes). I see only recover tablespace and recover indexspace (or index) commands in db2. Therefore, one has to specify all the tablespaces and indexspaces and recover them
2
2249
by: Maellic | last post by:
Hi, I'm currently updating a website written with ASP.NET. The original programmer is overseas, there is no documentation, and files are all over the place. Here is a code snippet from one of the .vb file used by the application (the entire code of the file is at the end of the post): If EmissionsWebBLL.Security.ValidateLogin(txtUserName.Text,
2
1499
by: David | last post by:
Hi, It's easy, visit http://www.ccsoftcn.com and download Access Password Recover 1.62 to help you. Can receive the correct password within 1 second. Can change or clear password for the Access Database file. Do it very fast and very easy to use.
2
1772
by: Mike Boothe | last post by:
I am using OE6. Instead of using the Main Identity, I'm using another one; it helps cut down the spam. Somehow it switched back to the Main Identity (I didn't fiddle with it) and the other is password protected. Either I have forgotten that password or it isn't responding. How can I recover the password, which is where all my legitmate email is found? Thanks Mike
2
4772
by: Ofer | last post by:
Hi, We use the ASP.net loginControls and the DB schema. How to programmatically activate the "PasswordRecovery" of a specific end-user when a user clicks my web application's button? I need to send a specific user an email with a new "reset" password. I thought of including an invisible PasswordRecovery Control and initialize the "User Name" field. PasswordRecovery1.UserName = "zako";
3
3146
by: Killer42 | last post by:
Hi all. Some months back, I had some Windows problems and ended up having to reinstall XP Pro on a new drive. Since then I have recovered most of my old files from the old drive, and deleted lots of stuff off it, including Windows. However, having decided to format the old drive and use it for backups, I spent some time scouring it for anything I might have missed. I came across a couple of folders which I really don't want to lose, but...
0
901
by: MillerPr | last post by:
Hi I would like to know if there is an an easy way to recover the entire SQL string sent to the SQL server built using ADO adparam methods. I need to recover and assign to a variable the entire SQL string executed by objCmd.Execute below Thanks example 'Declare database objects
1
1753
by: kbrci | last post by:
We used software from a now defunct company for many years and all of our data is stored in an access database. Two years ago our software was updated, but we never burned the new version to disk. The computer has now crashed and data recover is not possible on the drive. We have a backup of the database but only an older version of the program to access it. The older version does not show all of the fields in the newer version. We have found a...
0
9700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10546
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7603
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.