怎么大!
启动服务 qidong.bat
D:\mysql5winx64\bin\mysqld
登陆 denglu.bat
D:\mysql5winx64\bin\mysql -h localhost -u root -p
关闭服务 guanbi.bat
D:\mysql5winx64\bin\mysqladmin -u root shutdown
mysql免安装版如何设置root密码
用mysqladmin
mysqladmin -u root password "newpass"
如果root已经设置过密码,采用如下方法
mysqladmin -u root password oldpass "newpass"
用SET PASSWORD命令
mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');
在丢失root密码的时候,可以这样
mysqld_safe --skip-grant-tables&
mysql -u root mysql
mysql> UPDATE user SET password=PASSWORD("new password") WHERE user='root';
mysql> FLUSH PRIVILEGES;