Linux下mysql ERROR 1045: Access denied for user: (Using password: NO)
每次启用mysql都出现这个问题 然后我键入命令# mysql -pEnter password: Welcome to the MySQL monitor. Commands endwith ; or \g.Your MySQL connection id is 35 to server version: 4.0.20-standard Type 'help;' or '\h' for help. Type'\c' to clear the buffer.
mysql> 这样才能用,不过想给mysql备份就不可以了,
键入#mysqldump database>databak.sql就又出现RROR 1045: Access denied for user: (Using password: NO)怎么才能接着键入mysql就能使用,而且能对
mysql进行备份
解决办法:登陆mysql,然后执行下面语句:set password for =password('');flush privileges;然后再重新登陆,就达
到你的要求了