日期:2014-05-16  浏览次数:20979 次

大家好,我修改MYSQL管理员密码的语法没有错,却始终不成功,为什么?
您好:我用的MYSQL数据库是:5.0版本的,换了好几台机器都是提示这样的错误,请问怎么修改?
mysql>   mysqladmin   -uroot   -p123456   password   123789;
ERROR   1064   (42000):You   hava   an   error   in   your   SQL   syntax;   check   the   manual   that
correstponds   to   your   MySQL   server   version   for   the   right   syntax   to   use   newr   'mysql
admin   -uroot   -p123456   password   123789 '   at   line   1

------解决方案--------------------
sigh,

mysqladmin不是mysql中的SQL语句,它是一个单独的命令行程序。
因此不能在mysql>提示符下运行它。
而是在cmd命令行里执行。
至于命令格式,一点也没有错。