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
> 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:
> 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 :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2417 bytes
Desc: not available
More information about the ubuntu-users