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.
Summary: | Creata database for MySQL error message shows key instead of message | ||
---|---|---|---|
Product: | db | Reporter: | Roman Mostyka <romanmostyka> |
Component: | Code | Assignee: | David Vancouvering <davidvc> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Roman Mostyka
2008-03-12 18:00:59 UTC
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. Verified with build 080325. |