472,958 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Getting MySQL ERROR: 1045

Hi Guys,

I am new to this forum. So if i made any mistake please bare with me. Soon i ll follow all the guidelines as days pass through.

I am getting following error when i try to login to mysql prompt.

c:\mysql\bin>mysql -u root -p
password:*****

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

Where am i going wrong and how to solve this?

Thanks in advance,
Prasad
Jan 16 '07 #1
3 33227
bartonc
6,596 Expert 4TB
Hi Guys,

I am new to this forum. So if i made any mistake please bare with me. Soon i ll follow all the guidelines as days pass through.

I am getting following error when i try to login to mysql prompt.

c:\mysql\bin>mysql -u root -p
password:*****

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

Where am i going wrong and how to solve this?

Thanks in advance,
Prasad
This is weird.. I couldn't log in as root either. I have two accounts - one is root, one is my user name. Both have (or are supposed to have) the same password. When I tried to log in as root, it didn't work. I went back into admin using my user name and password to reset my root password. Now it works just fine.
Jan 16 '07 #2
ronverdonk
4,258 Expert 4TB
This is weird.. I couldn't log in as root either. I have two accounts - one is root, one is my user name. Both have (or are supposed to have) the same password. When I tried to log in as root, it didn't work. I went back into admin using my user name and password to reset my root password. Now it works just fine.
I don't know the reason for you both having this problem, but I certainly do not have it! My private userid and the 'root' userid have identical passwords and I
can logon to each of those id's without problems.
So both of you must have set different passwords for your root and private userid's when you configured your server.
I cannot think of any other reason, except for some (Irish) leprechaun, who'd love to do just that.

Ronald :cool:
Jan 17 '07 #3
colinB
1
Hi guys,

New here.

Had the same problem, this saved me -
http://www.fixya.com/support/t840251...error_messeage

Good luck,
Col.
Jul 27 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Morten Gulbrandsen | last post by:
Hi programmers, Good morning ;-) I think something is wrong, Running windows I believe first I have to set some password, Which creates some user, Then I can grant the required privileges, for...
0
by: Ike_strong | last post by:
Can anyone help me to figure out why each time I try to access my database using: c:\mysql\bin\inmysql -root -p and afterwards:(i.e. after inputting my at the password prompt) Enter...
0
by: Ike_strong | last post by:
I posted a message earlier regarding denial of access into mysql database - "Error 1045 Acess denied to user ODBC@localhost..Using password YES". I've just came across a possible solution in mysql...
3
by: karonte | last post by:
Hi all, i have a problem with mysql database. On a linux machine at the first connect to database i have deleted from users "@linux" and "@localhost" so when i try to connect from my machine to...
4
by: Chefry | last post by:
I'm trying to set up an off the shelf script and keep getting an error. My host set up the mysql on my site and I changed the variables I had to in the settings.php file but I keep getting the...
3
by: dstewart | last post by:
Situation: One common MySQL database server on SuSE 9.1 with all updates. Uses 'rinetd'. Has entries for the appropriate IP addresses of all servers. NOTE: If the appropirate entries are NOT in...
1
usafshah
by: usafshah | last post by:
Hi I'm using linux with mysql , when i type mysql in terminal it says like: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) i'm logged in as root but...
0
by: baghath | last post by:
I am using linux server in virtually(putty). that server have a mysql. I got the error (ERROR 1045) in when i type mysql time.i need ur help for how to rectify the error in command mode. ...
1
by: pearl15 | last post by:
Hello All I have successfully installed the following IIS ver 6 php ver 4.4.9 MYSQL ver 5.0.67 when i tested through command line i get no error and i am view the php pages on the browser...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.