2006年8月9日星期三

mysql操作记要

密码修改:
mysqladmin password xxxxxx
xxxxxx你的新密码。
或者:   
1. Stop the mysqld daemon process.
2. Start the mysqld daemon process with the --skip-grant-tables option.
3. Start the mysql client with the -u root option.
4. Execute the UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
5. Execute the FLUSH PRIVILEGES; command.
或者:
直接安装mysql Administrator算了,hehe

版本查看:
mysqladmin version
mysqladmin version --user=root --pass
mysqladmin version -u root -p

没有评论: