windows下:
1. 停止mysql服务
<img src="http://img.bitscn.com/upimg/allimg/c140719/1405K4I3Z620-24013.jpg" alt=""><script src="https://www.php.cn/hezuo/f220a8ffcae8732bbc8e3d8f7f36834b.js"></script>
2. 在DOS窗口下, 进入mysql安装目录的bin目录下, 跳过权限检测, 启动mysql:<pre class="brush:php;toolbar:false;">mysqld -nt --skip-grant-tables
<img src="http://img.bitscn.com/upimg/allimg/c140719/1405K4I4343P-3bG.jpg" alt="">
<img src="http://img.bitscn.com/upimg/allimg/c140719/1405K4I4U940-45636.jpg" alt="">
3. 重新打开一个窗口,进入bin目录下,设置新的root密码.../bin>mysqladmin -u root flush-privileges password "newpassword".../bin>mysqladmin -u root -p shutdown 提示你输入密码,输入newpassword进入数据库4. 停止mysql server,用正常模式启动mysql,然后用上面账号就可以登陆数据库库了。
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号