今天对照着《Agile Web Development with Rails》,在cmd中输入入:...\depot> mysql depot_development <db/create.sql,提示错误:ERROR: 1045 <28000>: Access denied for user 'ODBC'@'localhost'[/email] <using password: NO>.
解决方法一:运行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表示要求输入密码。
MySQL提示Access denied for user 'ODBC'@'localhost'错误解决方法
最新推荐文章于 2024-06-14 15:43:41 发布