XAMPP 修改Mysql密码
MySQL 的”root”用户默认状态是没有密码的,所以在 PHP 中您可以使用 mysql_connect(“localhost”,”root”,””) 来连接 MySQL 服务器; 如果您想为 MySQL 中的”root”用户设置密码,请在控制台中使用”mysqladmin”命令.例如:
1
2
3
4
linux命令:
./xampp/mysql/bin/mysqladmin -u root password secret
windows命令:
E:\xampplite\mysql\bin\mysqladmin -u root password "test2009"
请注意,您