作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我通过 SSH 连接到我的服务器时,我可以在不使用密码的情况下访问 MySQL 内容。所以当我打字的时候。
mysql -u root -p
它会提示我输入密码,但我可以输入任何内容并访问 MySQL 环境。
mysqladmin -u root password NEW_PASSWORD
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
这个我也试过...
use mysql;
update user set authentication_string=password('NEW_PASSWORD') where user='root';
flush privileges;
quit
那没有用。
use mysql;
UPDATE mysql.user SET authentication_string = PASSWORD('NEW_PASSWORD') WHERE User = 'root' AND Host = 'localhost';
flush privileges;
quit
这也没有奏效。
最佳答案
关于mysqladmin : Warning Using a password on the command line interface can be insecure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67109670/
我是一名优秀的程序员,十分优秀!