创建新用户时出现SQL错误

时间:2017-02-24 15:26:43

标签: mysql

我正在尝试创建一个新用户,并在GRANT SELECT ON mailserver.* TO `mailuser`@`127.0.0.1` IDENTIFIED BY `mailuserpass`; 上为我的数据库中的所有表授予权限。

我正在使用此命令:

wefewwehappyfew

但由于某种原因,我收到了这个错误:

  

错误1064(42000):您的SQL语法有错误;查看与您的MySQL服务器版本对应的手册   在第1行“ @Bean public DefaultSpringSecurityContextSource contextSource() { DefaultSpringSecurityContextSource contextSource = new DefaultSpringSecurityContextSource(env.getProperty("ldap.url")); contextSource.setBase(env.getProperty("ldap.base")); contextSource.setUserDn(env.getProperty("ldap.managerDn")); contextSource.setPassword(env.getProperty("ldap.managerPassword")); return contextSource; } @Bean public ConnectBindAuthenticator bindAuthenticator() { ConnectBindAuthenticator connectBindAuthenticator = new ConnectBindAuthenticator(contextSource()); connectBindAuthenticator.setUserSearch(ldapUserSearch()); connectBindAuthenticator.setUserDnPatterns(new String[]{env.getProperty("ldap.managerDn")}); return connectBindAuthenticator; } @Bean public LdapUserSearch ldapUserSearch() { return new FilterBasedLdapUserSearch("", env.getProperty("ldap.userSearchFilter"), contextSource()); } ”附近使用的语法

我做了一些谷歌搜索,我似乎无法弄清楚这里出了什么问题,所以任何帮助都会受到赞赏。

0 个答案:

没有答案