我跑
mysqladmin5 -u root -p ping
Run Code Online (Sandbox Code Playgroud)
我收到密码请求。
我找到了以下说明,但它们似乎相当残酷
<<
After installing MySQL 5 on Solaris with pkgadd you will have to perform
the following post-installation tasks:
As root:
# rm -rf /var/lib/mysql/mysql
Then as mysql:
$ cd /opt/mysql/mysql
$ scripts/mysql_install_db
Then as root:
# /etc/init.d/mysql start
Then as mysql:
$ /opt/mysql/mysql/bin/mysqladmin -u root password 'password'
Then as root:
# /opt/mysql/mysql/bin/mysql_secure_installation
>>
Run Code Online (Sandbox Code Playgroud)
密码不像某些版本的 MySQL 那样为空。
谢谢你指出这一点! 我的 MySQL 的版本似乎是
mysql5 --version
mysql5 Ver 14.12 Distrib 5.0.83, for apple-darwin9.7.0 (i386) using readline 6.0
Run Code Online (Sandbox Code Playgroud)
MySQL的默认密码是多少?
| 归档时间: |
|
| 查看次数: |
35578 次 |
| 最近记录: |