LMSouq
database Open

Setting the MySQL root user password on OS X

MA
madaura
1 month ago
3 views
Problem Description
I just installed MySQL on Mac OS X. The next step was setting the root user password, so I did this next: 1. Launch the terminal app to access the Unix command line. 2. Under the Unix prompt I executed these commands: ```lang-none cd /usr/local/mysql/bin ./mysqladmin -u root password 'password' ``` But, when I execute the command `./mysql -u root`, this is the answer: ```lang-none 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 into the `mysql` command line without any password! Why is this?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base