Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 11-04-2009
Join Date: Apr 2009
Posts: 45
question My SQL Root Password Error

I installed the Ubuntu 6.06 LTS server. It was installed perfectly, but now got the problem with ISPConfig installation. The problem was mysql root password section of ISPConfig.

I followed the following steps:

Please enter your MySQL server: localhost
Please enter your MySQL user: root
Please enter your MySQL password: ***** Error 1045(28000): Access denied for user 'root'@localhost'(using password: Yes) The MySQL password is Wrong.

Please Help!
Reply With Quote
Old 11-04-2009
Join Date: Apr 2008
Posts: 2,001
Re: My SQL Root Password Error

Recently, I had to take over a website that was previously being handled by third-party consultants. The site was completely data-driven and after I installed phpMyAdmin to manage the MySQL database, I realized I could not gain access because I did not know the root password.

At first, I thought there could possibly be no way to get the password from the database because it?s hashed before being stored. Luckily, though, I came across a useful article from my official MySQL Site on how to reset the root password.

The article pretty much explains what you have to do in order to reset the root password, but I will explain it in a bit more detail in this post. Also, I got an error along the way that is not mentioned in their article.

Step 1: Stop the MySQL service by going to Control Panel, Administrative Tools and Services. Right-click on the service and choose Stop.

Step 2: Create a new text file and copy and paste the following lines into it:

UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';

Make sure to change the password ?MyNewPass? to whatever password you want to replace the current one with. Now save the file and give it a name like C:\mysql-init.txt or whatever you like.

Step 3: Now go to the command prompt and type in the following command:

C:\> C:\mysql\bin\mysqld-nt --init-file=C:\mysql-init.txt

In my case, I had to change the path to something different than C:\mysql\bin. If you installed MySQL using the installation wizard, which I did, you have to use a different command:

C:\> "C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt.exe"
--defaults-file="C:\Program Files\MySQL\MySQL Server 5.0\my.ini"

So what is the path for your defaults-file? You can get the exact value by going to the Services dialog again and right-clicking on MySQL and choosing Properties. The box that says ?Path to executable? has the value for defaults-file.

At this step, I ran into an error. Every time I would try to execute the command, I would end up getting an error message and the password would not be reset.

innodb: operating system error number 32 in a file operation.

innodb: the error means that another program is using innodb?s files.

innodb: this might be a backup or antivirus software or another instance

innodb: of mysql. please close it to get rid of this error.

In my case, I have to go to the Task Manager and click on the Processes tab. Here I found that I already had several instances of MySQL running! I don?t know why or how they were started, but even with the service stopped, there were processes running.

I killed off all the processes and ran the command again, which worked perfectly.

Step 4: Go back to the Services window and restart the MySQL service. You should now be able to use phpMyAdmin to log into the MySQL database! If you have any issues, feel free to post a comment and I will help!
Reply With Quote
Old 11-04-2009
Join Date: May 2008
Posts: 2,383
Re: My SQL Root Password Error

It seems there is a case where on install the logger password is not saved, so when you rebooted it wasn't able to find the password to restart. Don't have a way to reproduce this yet as it seems to happen to different people at different times. Are you running on a single machine? If not what do you have installed on each server?
Reply With Quote

  TechArena Community > Software > Software Development
Tags: , , ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "My SQL Root Password Error"
Thread Thread Starter Forum Replies Last Post
Password for OS X Lion root is not working AkshatShetty Operating Systems 8 14-10-2011 10:36 PM
How to setup Root password DeepikaP Operating Systems 4 14-01-2011 07:16 PM
Want iphone root password. KALLIYAN Portable Devices 5 05-01-2010 05:13 AM
How to Enable the root password in MAC Spykar Guides & Tutorials 0 12-12-2008 03:19 PM
How to resolve error of "Root hints list has invalid root hint ser SinguIar Active Directory 3 13-10-2007 06:16 PM

All times are GMT +5.5. The time now is 06:30 PM.