An ending semicolon is always helpful (though not always required, it can't harm, because then you won't forget it when it's needed).
What kind of database server is it? If it's a MySQL server, have you tried with phpMyAdmin on the same SQL server?
Is the user account you used to log into the database server valid?
The part you wrote as "..." is probably the important part, since there you'll usually find at which place of the instruction the error is.