注册 登录
编程论坛 MySQL论坛

[求助]怎样在phpmyadmin中使用password()函数

突然空闲 发布于 2007-10-11 15:32, 2216 次点击
我想把我mysql数据库中的密码列,用PASSWORD()函数加密,不知道怎样用这个函数,
请各位大侠帮帮忙,谢谢
2 回复
#2
purana2007-10-11 15:36

设置密码
update user set password=password('你的密码') where user='你的用户'
添加用户
grant all on dbname.* to '用户'@'localhost' identified by '密码' #会自动加密.

phpmyadmin没用过.

#3
突然空闲2007-10-11 16:36

哦 ,谢谢

1