MySQL Forums :: Connector/JDBC and Java :: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1


Advanced Search

Re: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1
Posted by: Jason Shu ()
Date: November 13, 2009 07:25PM

create database with utf-8 character like that:
CREATE DATABASE `test`
CHARACTER SET `utf8`
COLLATE `utf8_general_ci`;


But if your databases exists, perhaps it would be helpful by setting the following varaiables:
SET character_set_client = utf8;
SET character_set_results = utf8;
SET character_set_connection = utf8;

Options: ReplyQuote


Subject Written By Posted
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1 Alin Haid 08/30/2009 08:36AM
Re: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1 Alin Haid 08/31/2009 05:03AM
Re: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1 Peter Brawley 08/31/2009 10:54AM
Re: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1 Jason Xu 09/28/2009 09:47PM
Re: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1 Pascal LAVAUX 11/13/2009 09:32AM
Re: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1 Jason Shu 11/13/2009 07:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.