Don't use environment like XAMPP at the beginning. Because those will hide the key points from you.

With Java are you trying to create tables in your SQL database? I wonder what kind of design it...