This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
1. Register MySQL DB server: Host name: jbrave-pc1.sfbay.sun.com Port: 3306 User name: travel Password: travel 2. Rightclick "MySQL Server" node and choose "Create Database". 3. Select "sample" and click OK. Result: Error message appears, but it isn't informative.
Hi, Roman, but can you please tell me what the error message is? I do this all the time and it works fine for me.
"CreateDatabasePanel.MSG_CreateFailed: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'travel'@'%' to database 'sample'".
Ah. This message is coming from MySQL. I'm not sure why you don't think it's informative. It says right there "Access denied". It is one of any number of messages that could potentially come from MySQL. I think it's better to provide the message as received from the server, rather than try and provide our own message. This transparency will allow users to, for instance, Google for the error message and find useful support from the MySQL community. I'm happy to discuss this, but I think this is actually the correct behavior if you try to create a database when you don't have rights to create a database.
Reopening after looking at the error message again: it seems to be showing the key for the message ("CreateDatabasePanel.MSG_CreateFailed") rather than the message itself.
http://hg.netbeans.org/main?cmd=changeset;node=c4a906e53644
Verified with build 080325.