相关疑难解决方法(0)

在OS X上设置MySQL root用户密码

我刚刚在Mac OS X上安装了MySQL.下一步是设置root用户密码,所以接下来我做了这个:

  1. 启动终端应用程序以访问Unix命令行.
  2. 在Unix提示符下,我执行了以下命令:

    $ cd /usr/local/mysql/bin
    $ ./mysqladmin -u root password 'password'
    
    Run Code Online (Sandbox Code Playgroud)

但是,当我执行命令时

$ ./mysql -u root这就是答案:

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 …
Run Code Online (Sandbox Code Playgroud)

mysql passwords macos

227
推荐指数
12
解决办法
44万
查看次数

标签 统计

macos ×1

mysql ×1

passwords ×1