重置Bitnami mysql 密码

mysql 默认密码为安装时设置的系统应用密码

How to reset the MySQL root password on Windows?

If you don't remember your MySQL root password on Windows, you can follow the steps below to reset it to a new value:

Assuming your BitNami stack is located in the C:\Bitnami directory and that you have opened theBitnami Console

, create a file in C:\Bitnami\mysql-init.txt with the content shown below (replace mynewpassword string with the one you want):

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('mynewpassword');

Stop the MySQL server using theManager Tool

.

Start MySQL with the following command into the Bitnami Console to set the new password:

mysql\bin\mysqld --defaults-file=mysql\my.ini --init-file=C:\Bitnami\mysql-init.txt --console

Press Ctrl-c when the process finished showing the MySQLversion to kill the process. For example:

Version: '5.5.42'  socket: ''  port: 3306  MySQL Community Server (GPL)

Start the MySQL server again using the Bitnami Manager Tool and delete the mysql-init script.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容