dongqichang7988 2016-12-31 15:51
浏览 283

无法将Latin1转换为utf-8? 不是编码员

I live in the US, wanting to set up a website using cPanel. I bought a InstaWebsite that's written in Latin1 (England)(this is supposed to be an option in the Character Set of Files list) and need it translated to UTF-8.

I try to import the file “store database.text” and nothing happens but an empty file is created(&Latin1 is not an option). Can anyone help? Are there any easy fixes.

I spoke w/a tech person that hosts my domain on InMotionHosting. I He suggested asking you for help. I don't know how to code. I also sent an email to the fellow I bought this from – he’s in England & am waiting for help from him.

This is what it does when I try to import using UTF-8:

SQL query:

CREATE TABLE `address_book` (
`address_book_id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`customers_id` INT( 11 ) NOT NULL DEFAULT '0',
`entry_gender` CHAR( 1 ) NOT NULL DEFAULT '',
`entry_company` VARCHAR( 32 ) DEFAULT NULL ,
`entry_firstname` VARCHAR( 32 ) NOT NULL DEFAULT '',
`entry_lastname` VARCHAR( 32 ) NOT NULL DEFAULT '',
`entry_street_address` VARCHAR( 64 ) NOT NULL DEFAULT '',
`entry_suburb` VARCHAR( 32 ) DEFAULT NULL ,
`entry_city` VARCHAR( 32 ) NOT NULL DEFAULT '',
`entry_state` VARCHAR( 32 ) DEFAULT NULL ,
`entry_postcode` VARCHAR( 10 ) NOT NULL DEFAULT '',
`entry_country_id` INT( 11 ) NOT NULL DEFAULT '0',
`entry_zone_id` INT( 11 ) NOT NULL DEFAULT '0',
PRIMARY KEY ( `address_book_id` ) ,
KEY `idx_address_book_customers_id` ( `customers_id` )
) TYPE = MYISAM AUTO_INCREMENT =100;

MySQL said:

1064 - 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 'TYPE=MyISAM AUTO_INCREMENT=100' at line 17

  • 写回答

1条回答 默认 最新

  • drvvepadi289421028 2016-12-31 19:23
    关注
    ) TYPE = MYISAM AUTO_INCREMENT =100;
    

    This code is incorrect. If you got this SQL file as part of a software package you bought, get a refund -- it's obviously an untested piece of junk.

    The proper way to specify a storage engine for a MySQL table is using the ENGINE option:

    ) ENGINE=MyISAM AUTO_INCREMENT=100;
    
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog