mysql problem
James Gray
james at gray.net.au
Fri Apr 25 23:55:11 UTC 2008
On 26/04/2008, at 9:44 AM, Karl Larsen wrote:
> The apt-get install did get the mysql packages and installed them
> properly. But my old book is not correct I think for this version 5.
> When I try to get the version, or anything else with mysqladmin it
> does
> this:
>
> karl at karl-desktop:~$ mysqladmin -p secret version
> Enter password:
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user 'karl'@'localhost' (using password:
> YES)'
> karl at karl-desktop:~$
>
> What have I done wrong? How do I get the mysql prompt?
Try "sudo mysql" instead. IIRC the Ubuntu/Debian mysql server packages
don't set a root password on the MySQL instance by default.
Connecting as described earlier might get around this. It's been a
while since I installed MySQL on Ubuntu/Debian and I might be giving
you a bum steer, so apologies in advance if I do :P
Bottom line, "sudo mysql" can't hurt :)
Cheers,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080426/c6c20a08/attachment.bin>
More information about the ubuntu-users
mailing list