-
Apr232011
MYSQL命令集
MYSQL命令集 1、登陆MySQL: 1mysql -u root -p 2、查看用户信息 12select user,host,password from mysql.user; select user,host from mysql.user; 3、设置密码 1set password for root@localhost=password('root_pw'); 4、修改密码 方法1:mysqladmin -u root -p password newpassword 方法2: #mysql -u root -p mysql 12mysql>UPDATE user SET password=PASSWORD("new&qu...阅读全文抢沙发