Plesk Error When Creating a New Database · Saturday March 24, 2007
If you’re using Plesk 8.1 and encounter the following error(s) when creating a new MySQL or PostgreSQL database in the control panel, don’t despair:


The first time I got this error it didn’t make any sense. “How could I be getting this error if I am already logged into Plesk as the Administrator?”
What likely has happened is that you hit the Return key (or Enter on Windows) on your keyboard instead of clicking the “OK” button with your mouse.
So why does this error occur? Plesk relies on JavaScript events to perform its actions and validate user input. If you view the frame source of the “Create Database” page, you’ll see the following JavaScript for the “OK” button:
onClick="return db_new_oC(document.forms[0]);return false;"
What this code does is validate the presence (and name) of the database you’re creating. What it doesn’t do is include any provisions if you hit the Enter key instead of using the mouse [to hit the “OK” button].
Therefore the error message isn’t indicative of the actual problem (poorly thought-out code by the SWSoft developers) and instead is a generic error message.
As of this writing, I believe this to be a bug in Plesk 8.1.x.
— Ryan J. Bonnell