我完全是Ruby的一员,但我按照下面的说明做到了这一点:
但是,将此代码直接复制/粘贴到终端中会导致错误。有什么想法吗?ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQLERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL</e
在命令行上为MYSQL设置密码时遇到问题。我最初从homebrew安装成功,并且我能够通过进入mysql来访问数据库。但是,当我设置新密码时,它将无法识别它。mysqladmin:密码不匹配 SET PASSWORD FOR 'root'@'127.0.0.1' = password('cangetin');
但是它不起作用,我尝试在mysql中运行它,得到错误1044 (42000):用户''@'lo