[OT] Bleah -- can't dump db

[root@www typo]# mysqldump -u hal9000 -p typo >backup3.out
Enter password:
mysqldump: Got error: 1045: Access denied for user ‘hal9000’@‘localhost’
(using
password: YES) when trying to connect

Got any idea what’s wrong?

Hal

Hal F. wrote:

[root@www typo]# mysqldump -u hal9000 -p typo >backup3.out
Enter password:
mysqldump: Got error: 1045: Access denied for user ‘hal9000’@‘localhost’ (using
password: YES) when trying to connect

Got any idea what’s wrong?

Silly question, but do those parameters exactly match what’s in
config/database.yml? For example, leaving out the hostname on the
mysqldump command /may/ make a difference, because you’re connecting
over the local socket.

-Dom

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Hal,

Am 10.05.2006 um 04:21 schrieb Hal F.:

[root@www typo]# mysqldump -u hal9000 -p typo >backup3.out
Enter password:
mysqldump: Got error: 1045: Access denied for user
‘hal9000’@‘localhost’ (using
password: YES) when trying to connect

Got any idea what’s wrong?

I think I once encountered a similar problem.

Did you try to remove the whitespace at the password statement and
enter your password directly?

Just turn “-p typo” into “-pyourpassword typo” and leave the rest as is.

This did the trick for me here…

HTH, Greets from Essen.

Dennis Wegner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEYbGAHcq0o4/FrD0RAtBWAJsGFYdhEEBl1vCagJzgicMmfpEKXACbBMaH
9EjfJA9+b982gT6nKHnaS1A=
=My3H
-----END PGP SIGNATURE-----