#create database 'sunnet' default-character=utf8;ERROR 1064 (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 near ''sunnet' default-character=utf8' at line 1
mysqldatabaseutf8

解决方案 »

  1.   

    你这是要建数据库还是建字符集?修改字符集是 set nls_lang=american_america.zhs16gbk
      

  2.   

    改成这样:create database sunnet default charset utf8;
      

  3.   


    楼主的问题是MySQL哈。ERROR 1064 (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 near ''sunnet' default-character=utf8' at line 1
      

  4.   

    不是oracle问题.
    mysql问题 
     show variables like 'char%';
    set names gbk;