KeepJ96 / IP-Check

A Bukkit Plugin for Detecting and Controlling Multi-Accounters
BSD 3-Clause "New" or "Revised" License
1 stars 4 forks source link

errror: in your SQL syntax #19

Open makemp1997 opened 7 years ago

makemp1997 commented 7 years ago

Issue Report

IP-Check Version: 2.07 Java Version: 8 Database Type: MySQL Description of the problem: Evertime I restart the server I got the message, after I have congigurd the myqul database:

[IP-Check] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-check.ipcheck_user' at line 1

I tried every datbase config, for exemple: dbUsername: "makemp1997" dbPassword: "test123" dbHostname: "123.123.321.123" dbName: "ip-check" dbPort: 3306

Although it have contact to the datase, becase there is database sturcture of ip-check, but still I got that error. So do you know how I can fix this?

How to replicate:


Checklist:

KeepJ96 commented 7 years ago

As a cursory, I'd first verify that there are no spaces in the dbName field. The error would seem to suggest that the database name is being cut off for some reason.

If there are no spaces, my next suggestion would be to change the value of dbName from 'ip-check' to 'ipcheck' and reflect this change in your MySQL database accordingly. It's possible that whatever SQL version is being used by your server may have a problem with the dash '-' character being used.

If neither of these work, please let me know.

-Jnk