edqhdohkso 发表于 2016-5-16 10:15:17

mysql mac os 加入命令行及mac mysql开始无密码重置密码

You might want to add aliases to your shell's resource file to make it
easier to access commonly used programs such as `mysql' and
`mysqladmin' from the command line. The syntax for `bash' is:

   alias mysql=/usr/local/mysql/bin/mysql
   alias mysqladmin=/usr/local/mysql/bin/mysqladmin

mac mysql开始无密码重置密码

Type:/usr/local/mysql/bin/mysqladmin -u root -p password

When it asks for a password, not not enter anything, just hit enter. It will then ask you to enter new password, then confirm. Finished.
页: [1]
查看完整版本: mysql mac os 加入命令行及mac mysql开始无密码重置密码