Loading...

新舊交替,使用phpmyadm出現1064 error in CREATE TABLE … TYPEMYISAM錯誤

Temperature: 0 °C

ChungChung
author_tools


新舊交替,使用phpmyadm出現1064 error in CREATE TABLE … TYPEMYISAM錯誤
系統移機的過程中,最重要的環節....想...莫過於是系統的環境了....。

這次在協助移機的過程中遇到了新站跟舊站空間一個新舊版本資料庫的問題...所以出現了以下錯誤

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' at line 29

Google後發現...
The older TYPE option was synonymous with ENGINE. TYPE was deprecated in MySQL 4.0 and removed in MySQL 5.5. When upgrading to MySQL 5.5 or later, you must convert existing applications that rely on TYPE to use ENGINE instead.

舊類型的選擇引擎類型所使用的TYPE已不被支援...

因此,將原指令
CREATE TABLE `web_site` (
  `web_id` int(4) NOT NULL auto_increment,
  `web_subject` varchar(220) NOT NULL default '',
  `web_address` varchar(220) NOT NULL default '',
  `x` varchar(100) NOT NULL default '',
  `y` varchar(100) NOT NULL default '',
  `address` varchar(220) NOT NULL default '',
  `web_create` int(4) NOT NULL default '0',
  `web_putdate` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`web_id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;

更改為....

CREATE TABLE `web_site` (
  `web_id` int(4) NOT NULL auto_increment,
  `web_subject` varchar(220) NOT NULL default '',
  `web_address` varchar(220) NOT NULL default '',
  `x` varchar(100) NOT NULL default '',
  `y` varchar(100) NOT NULL default '',
  `address` varchar(220) NOT NULL default '',
  `web_create` int(4) NOT NULL default '0',
  `web_putdate` datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (`web_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 ;

才得以順利將資料庫匯入.....終於...
phpMyAdmin 是一個以PHP為基礎,以Web-Base方式架構在網站主機上的MySQL的資料庫管理工具,讓管理者可用Web介面管理MySQL資料庫。藉由此Web介面可以成為一個簡易方式輸入繁雜SQL語法的較佳途徑,尤其要處理大量資料的匯入及匯出更為方便。其中一個更大的優勢在於由於phpMyAdmin跟其他PHP程式一樣在網頁伺服器上執行,但是您可以在任何地方使用這些程式產生的HTML頁面,也就是於遠端管理MySQL資料庫,方便的建立、修改、刪除資料庫及資料表。也可藉由phpMyAdmin建立常用的php語法,方便編寫網頁時所需要的sql語法正確性。
2.11.0是phpMyAdmin最後一系列支援PHP4的版本,並增加了建立與檢視View的功能,能夠從查詢的結果中建立,並能夠管理procedures。這個版本開始,也支援MySQL資料庫 5.0.37版本之後的查詢檔案化功能,並因應上面有數千個資料庫與資料表的伺服器,提供更好的管理介面。
Url link

台北市內湖區江南街71巷75弄 Go

https://innstory.com/story-新舊交替使用phpmyadm出現1064_error_in_CREATE_TABLE_…_TYPEMYISAM錯誤-560
寫程式筆記

Prev
 發現一個可以宅的地方__聞山咖啡永春有貓店

Next
到花博公園走走 

Nearby Attractions

台北市內湖區江南街71巷75弄-Nearby Attractions

  • 臺灣大學校門 Go
  • 興福庄建塚紀念碑 Go
  • 草山水道系統 Go
  • 國立臺灣大學日式宿舍-福州街... Go
  • 大稻埕千秋街店屋 Go
  • 臺大醫院舊館 Go

About the Author

Chung

我是chung
網路工作者
主業是網站系統開發建置
副業是做夢,寫故事
作品請參考/teme.biz
做夢請參考/innstory.com
聯絡/chung.teme@gmail.com

#有人用筆寫日記,有人用歲月寫日記,有人用照片寫日記,而我,用innstory寫日記。

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

Welcome To Google

Welcome To Goo...

Top第一天,參訪了Google APAC HQ 第一次來到Google,難掩興奮心情,拼命的拍了一...

關掉phpinfo()

關掉phpinfo()

pexelsphotod 配置php環境的時候往往都會寫 phpinfo(); 這個函數來測試php...

清除網頁暫存(no cache)

清除網頁暫存(no cach...

pexelsphoto5 在製作專案時,有沒有試過JS 或 CSS 明明就已經更新了~ 但頁面卻像鬼...

Recommended reading

Other stories happened at this address

悠悠變red

悠悠變red

Mandy鬧著U,沒多久這傢伙雙手抱胸然後說「悠悠變red 」,哼!不開心~ 之後沒多久,又說他變y...

麻油雞泡飯

麻油雞泡飯

再一次,又到了麻油雞酒的季節。 is sesame oil chicken season again...

街角的早餐店

街角的早餐店

習慣拎上一杯便利商店的冰咖啡,來到街角這間早餐店。 早餐店沒有名字,賣的是中式早餐。 喜歡上他的原因...

下雨天,只能在家被小孩玩~

下雨天,只能在家被小孩玩~

下雨天,只能在家被小孩玩~

音樂,就像是時光機器。許茹芸-獨角戲

音樂,就像是時光機器。許茹芸...

音樂,就像是時光機器。 聽著聽著.......,不小心就跌入了記憶的漩渦裡~ 這也是一個人寫code...

所謂的一家人.....

所謂的一家人.....

所謂的一家人.....

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format