473,405 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

auth error

Admittedly, I am a newbie, and I think i might have really screwed up
here. I installed mysql using the package update quite from RH 9.0,
and wanted to set root to have a password for logging into mysql. I
ran this script from the mysql web site:

shell> mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('new_password')
-> WHERE user='root';
mysql> FLUSH PRIVILEGES;

and my actual commands looked like this:

shell> mysql -u root mysql
mysql> UPDATE user SET Password='redfish'
-> WHERE user='root';
mysql> FLUSH PRIVILEGES;

Now, when i try to log in using:

mysql mysql -p or mysql -uroot mysql -p or anything similar i get this
back:

ERROR 1045: Access denied for user: 'root@localhost' (Using password:
YES)

Is there anyway i can recover? Thanks in advance for any help or
suggestions.

Nathan Weast
Jul 19 '05 #1
2 3457
since mysql use crypt password.. so you can't find your password..

solve.

1. shutdown mysql
2. start mysql with --skip-grant-tables option

--skip-grant-tables
This option causes the server not to use the privilege system at all.
This gives everyone full access to all databases! (You can tell a
running server to start using the grant tables again by executing
mysqladmin flush-privileges or mysqladmin reload.)

then.. you set root password correct..

nw****@ficgroup.com (Nathan) wrote in message news:<a3*************************@posting.google.c om>...
Admittedly, I am a newbie, and I think i might have really screwed up
here. I installed mysql using the package update quite from RH 9.0,
and wanted to set root to have a password for logging into mysql. I
ran this script from the mysql web site:

shell> mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('new_password')
-> WHERE user='root';
mysql> FLUSH PRIVILEGES;

and my actual commands looked like this:

shell> mysql -u root mysql
mysql> UPDATE user SET Password='redfish'
-> WHERE user='root';
mysql> FLUSH PRIVILEGES;

Now, when i try to log in using:

mysql mysql -p or mysql -uroot mysql -p or anything similar i get this
back:

ERROR 1045: Access denied for user: 'root@localhost' (Using password:
YES)

Is there anyway i can recover? Thanks in advance for any help or
suggestions.

Nathan Weast

Jul 19 '05 #2
since mysql use crypt password.. so you can't find your password..

solve.

1. shutdown mysql
2. start mysql with --skip-grant-tables option

--skip-grant-tables
This option causes the server not to use the privilege system at all.
This gives everyone full access to all databases! (You can tell a
running server to start using the grant tables again by executing
mysqladmin flush-privileges or mysqladmin reload.)

then.. you set root password correct..

nw****@ficgroup.com (Nathan) wrote in message news:<a3*************************@posting.google.c om>...
Admittedly, I am a newbie, and I think i might have really screwed up
here. I installed mysql using the package update quite from RH 9.0,
and wanted to set root to have a password for logging into mysql. I
ran this script from the mysql web site:

shell> mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('new_password')
-> WHERE user='root';
mysql> FLUSH PRIVILEGES;

and my actual commands looked like this:

shell> mysql -u root mysql
mysql> UPDATE user SET Password='redfish'
-> WHERE user='root';
mysql> FLUSH PRIVILEGES;

Now, when i try to log in using:

mysql mysql -p or mysql -uroot mysql -p or anything similar i get this
back:

ERROR 1045: Access denied for user: 'root@localhost' (Using password:
YES)

Is there anyway i can recover? Thanks in advance for any help or
suggestions.

Nathan Weast

Jul 19 '05 #3

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

Similar topics

4
by: jsWalter | last post by:
I have an extension Class to Auth and I'm looking for some folks to hammer on it a bit and give feed back. Class: AuthUser - add user (well, Auth does that now, so its gone) - remove user...
2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
3
by: Dan Stromberg | last post by:
If I wanted to write a python script that performs basic auth, gets a cookie, and then does an http POST using the cookie for authentication, what would be the best python API to write to? Does...
1
by: Raghul | last post by:
I am getting this error while copying n number of messages to the folder using imaplib.What to do to copy n number of folders in mail The error i got is imaplib.error: command COPY illegal in...
2
by: Brad | last post by:
Stupid question time: Why does Forms Auth just keep going to the login page when access is denied? A 403 error is never raised..at least in my testing it doesn't. If I have a particular web...
4
by: 23s | last post by:
I had this problem in the past, after a server reformat it went away, and now after another server reformat it's back again - no clue what's doing it. Here's the flow: Website root is public, no...
13
by: Perecli Manole | last post by:
In the forms authentication construct, I need a way to prevent ticket IssueDate and Expiration from being updated for a specific page only. By default forms authentication updates these two values...
3
by: Thomas.Firnschrott | last post by:
i have a problem concerning a php script i worte some time ago. It is a rather simple thing. On a Site you login via a html form which points to a php that checks the username and password, and...
0
by: kevin bailey | last post by:
I have a framework working where I have multiple pages each checking the authentication status. Unauthorised users are redirected to a login page - otherwise the requested page is shown. ...
10
by: goodguyjam | last post by:
Hi again. I now get the above error with the exact same code as in my previous question. All I did was to rearrange the lines...no code changes...help! To assist you experts, line 11 contains this...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.