Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to create database with encoding / collation options #29

Closed
ngoduykhanh opened this issue May 16, 2018 · 1 comment
Closed

Comments

@ngoduykhanh
Copy link

ngoduykhanh commented May 16, 2018

Hi,

I have just tried with radondb, it worked fine with the normal database creation but not for extra options. See below:

mysql> create database test1;
Query OK, 1 row affected (0.00 sec)

mysql>  create database test1 character set utf8 collate utf8_general_ci;
ERROR 1149 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use, syntax error at position 32 near 'character'`

RadonDB's output log:

2018/05/16 10:09:09.701490 query.go:63:    	 [ERROR] 	query[create database test1 character set utf8 collate utf8_general_ci].parser.error: syntax error at position 32 near 'character'
2018/05/16 10:09:09.701532 server.go:204:    	 [ERROR] 	server.handle.query.from.session[2].error:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use, syntax error at position 32 near 'character' (errno 1149) (sqlstate 42000).query[create database test1 character set utf8 collate utf8_general_ci]

This command works fine on normal mysql instance. What can be a problem?

@BohuTANG
Copy link
Contributor

Hi,

Please reference the sql-support doc(DDL) here:
https://github.com/radondb/radon/blob/master/docs/radon_sql_support.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants