2011-11-06 163 views
0

我想设置连接到Mysql数据库。但是我得到一个用户错误,说:Mysql连接到Visual Basic

WindowsApplication1.vshost.exe Error: 0 : Access denied for user 'Root'@'myiphere' (using password: YES) 

型“MySql.Data.MySqlClient.MySqlException”的第一次机会异常出现在MySql.Data.dll

我已经使用这个...

GRANT ALL PRIVILEGES ON permissionsex.* TO [email protected]'%' IDENTIFIED BY 'password'; 

但是错误仍然存​​在。

回答

0

在您的错误消息中,我可以看到您使用的用户名是Root,但您授予了root的权利。注意小写字母与大写字母r。