By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,083 Members | 1,608 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,083 IT Pros & Developers. It's quick & easy.

Getting Error Nr. 1045 during setup

P: n/a
I'm trying to install MySQL. During the security settings portion fo the
setup. I keep getting a Connection Error.
Error Nr. 1045
Access denied for user'root'@'localhost'(using password:YES)

........

I had Zonealarm running. Changed the trusted zone security setting to
low(disabled) then selected "retry" Failed again.

Rebooted, turned off Zonealarm, going through configuration wizard I changed
the root password to "YES" connection still failed...

I'm obviously not crossing a "T" somewhere. I'm a little lost.

Thanks in advance.

Greg Noss

Mar 24 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Greg Noss" <ss*****@earthlink.net> wrote in message
news:zv****************@newsread2.news.pas.earthli nk.net...
I'm trying to install MySQL. During the security settings portion fo the
setup. I keep getting a Connection Error.
Error Nr. 1045
Access denied for user'root'@'localhost'(using password:YES)


Well, for what it's worth, in that error message, it does not mean that the
root password is literally "YES" -- it means that you did give a password.
In MySQL, it is possible to configure accounts that do not have a password.
It's even possible for the same account to have different privileges
depending on whether you supply a password or not. So in this error, the
fact that you were attempting to supply a password when it failed is
actually a relevant detail (though I have always thought that this error is
confusing for new users).

The first thing I'd check is if the MySQL service is running. You could get
this error in the client if there is no service for the client to talk to.
You can check the service by opening Control Panel -> Administrator Tools ->
Services.

Check the error log for clues. On my Windows machine, the error log is
location in C:\Program Files\MySQL\MySQL 5.0 Server\data\<hostname>.err
(where <hostname> is the name of my Windows machine).

Read the following page for many more tips on resolving "access denied"
errors:
http://dev.mysql.com/doc/refman/5.0/...ss-denied.html

Regards,
Bill K.
Mar 24 '06 #2

P: n/a
Thanks for your input, I had another app. that installed their version of
MySQL I wasn't using their functions I removed their version adn PRESTO
MySQL worked. Is it possible to run to different copies of MySQL on the
same machine?

Thanks,
Greg Noss

"Bill Karwin" <bi**@karwin.com> wrote in message
news:e0*********@enews2.newsguy.com...
"Greg Noss" <ss*****@earthlink.net> wrote in message
news:zv****************@newsread2.news.pas.earthli nk.net...
I'm trying to install MySQL. During the security settings portion fo the
setup. I keep getting a Connection Error.
Error Nr. 1045
Access denied for user'root'@'localhost'(using password:YES)


Well, for what it's worth, in that error message, it does not mean that
the root password is literally "YES" -- it means that you did give a
password. In MySQL, it is possible to configure accounts that do not have
a password. It's even possible for the same account to have different
privileges depending on whether you supply a password or not. So in this
error, the fact that you were attempting to supply a password when it
failed is actually a relevant detail (though I have always thought that
this error is confusing for new users).

The first thing I'd check is if the MySQL service is running. You could
get this error in the client if there is no service for the client to talk
to. You can check the service by opening Control Panel -> Administrator
Tools -> Services.

Check the error log for clues. On my Windows machine, the error log is
location in C:\Program Files\MySQL\MySQL 5.0 Server\data\<hostname>.err
(where <hostname> is the name of my Windows machine).

Read the following page for many more tips on resolving "access denied"
errors:
http://dev.mysql.com/doc/refman/5.0/...ss-denied.html

Regards,
Bill K.

Mar 29 '06 #3

P: n/a
Greg Noss wrote:
Thanks for your input, I had another app. that installed their version of
MySQL I wasn't using their functions I removed their version adn PRESTO
MySQL worked.
I would guess that your copy of MySQL wasn't running at all; it was the
vendor's instance running on the same port. That would explain why your
password wasn't being recognized.
Is it possible to run to different copies of MySQL on the
same machine?


Yes, it should be possible to do so.

More recent versions of MySQL support the concept of running "instances"
of one installation.
http://dev.mysql.com/doc/refman/5.0/...e-manager.html

But if you want to run multiple instances of _different_ MySQL
installations (for example, if you want to keep several different
versions available for testing), it gets trickier.

They need to be installed in different directories, and they must not
touch each other's databases. They should listen on distinct ports. If
you run them as services on Windows, they need to use distinct service
names. On UNIX/Linux, they also need to have distinct locations for
their respective log files, init scripts, and socket files. Whew!

Regards,
Bill K.
Mar 30 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.