发新话题
打印

MySQL提示Access denied for user 'ODBC'@'localhost'错误解决方法

MySQL提示Access denied for user 'ODBC'@'localhost'错误解决方法

今天对照着《Agile Web Development with Rails》,在cmd中输入入:...\depot> mysql depot_development <db/create.sql,提示错误:ERROR: 1045 <28000>: Access denied for user [email=]'ODBC'@'localhost'[/email] <using password: NO>.我的环境是win2k下面的MySQL Server 4.1

解决方法一:运行MySQL Server Instance Configuration Wizard,在“Please set the security options”一步,勾上“Create An Anonymous Account”

解决方法二:在命令行中,运行:...\depot> mysql -u <输入用户名,例如root> -p depot_development <db/create.sql,这时会提示你输入密码,输入即可。其中选项-p表示要求输入密码。
天统社区,您们的社区。

TOP

发新话题