mysql 连接问题

mysql 连接问题

在我安装完mysql后,用mysqladmin -u root -p password 'new-passwod'时出现了错误:
/usr/mysql//bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'
怎么办阿,谢谢大家了.      
最开始用
mysql -u root password 'new-password'
来改变密码,不用加-p
一旦你有了password以后就用
mysql -u root -pold-password password 'new-password'
来改变密码。      
谢谢,搞定了      
怎么搞定的?我的怎么不行?

[root@www root]# mysql -u root password Mysql123456
mysql  Ver 11.16 Distrib 3.23.49, for pc-linux-gnu (i686)
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Usage: mysql [OPTIONS] [database]

  -?, --help            Display this help and exit.
......
  -w, --wait            Wait and retry if connection is down.

Default options are read from the following files in the given order:
/etc/my.cnf /usr/local/mysql/var/my.cnf ~/.my.cnf
The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit
--no-defaults           Don't read default options from any options file
--defaults-file=#       Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read

Possible variables for option --set-variable (-O) are:
connect_timeout       current value: 0
max_allowed_packet    current value: 16777216
net_buffer_length     current value: 16384
select_limit          current value: 1000
max_join_size         current value: 1000000
我没有my.cnf文件。      
不好意思,写错了,是
mysqladmin -u root password      
[root@www root]#  mysqladmin -u root password Mysql123456
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'      
这样吧
mysql -u root -pyoupasswd      
[root@www root]# mysql -u root -pyoupasswd
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)      
那是连接权限的问题吧。修改mysql里的表就可以了
可是你连localhost和root都deny,奇怪了