Setting the mysql root user password on mac

Posted by madaura on Stack Overflow See other posts from Stack Overflow or by madaura
Published on 2011-06-24T23:37:56Z Indexed on 2011/06/25 0:22 UTC
Read the original article Hit count: 117

Filed under:
|
|
|
|

I just Install MySQL on Mac OS X.

The next step was setting the root user password, do I did the next:
1-Launch the terminal app to access the unix command line.
2-Under the unix prompt I executed the next commands:

madaura$ cd /usr/local/mysql/bin
madaura$ ./mysqladmin -u root password 'password'

But, when I execute the command

madaura$ ./mysql -u root, this is the answer:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 224
Server version: 5.5.13 MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

I can get in to the mysql command line without password!

Any ideas?

Thanks a lot!

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mac