Each RDBMS has their respective protocol and client library. The client of one RDBMS generally won't work to connect to the wrong brand of RDBMS.
I would suggest you test connecting using the MySQL client. If that doesn't work, it isn't MySQL. :-)
Re comments:
MySQL does not restrict syntax based on privileges, so you should never get a syntax error. And you can call most builtin functions even if you have no privileges to access any databases or tables. I confirmed this:
mysql> grant usage on *.* to 'dummy'@'%'; /* minimal privilege */
$ mysql -udummy
mysql> select version();
+-----------------+
| version() |
+-----------------+
| 5.5.31-30.3-log |
+-----------------+
If you got a syntax error on that statement, I would say you're actually connected to a different RDBMS that doesn't have a VERSION() function.
For example, Microsoft SQL Server has a @@VERSION global variable, and they have the SERVERPROPERTY() function that you can use to query the server version and other information. (See links for documentation.)
In my experience, sites that use Microsoft SQL Server seldom call it Microsoft SQL Server, they mistakenly call it "SQL" or even "MySQL". So my first guess is that you're using that product. Use the global variable and function I mention above to test this.