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

校外教學(木柵動物園)

校外教學(木柵動物園)

期中考週的校外教學,來到了上回去不成的木柵動物園。 炎熱的天,帶著位小蘿蔔頭,一邊觀察一邊完成老師交...

行事曆功能導入

行事曆功能導入

cc55 Innstory有行事曆囉! 我試著把Innstory當作是我的筆記本,將生活發生的故事紀...

解決FB分享帶參數問題

解決FB分享帶參數問題

又到了FB分享連結的時間了,沒辦法FB太紅...@@... 一般來說如果是以FB的分享網址做分享的方...

Recommended reading

Other stories happened at this address

2個小孩果然不容易

2個小孩果然不容易

離開舒適圈(月子中心)回到主戰場(一家四口甜蜜的家)也近個星期了。 我深深體會到照顧個小孩,果然艱困...

噓~

噓~

年紀越來越大,古靈精怪的表情越來越多~ 現在還會噓我咧~ 只是,你是否手指比錯方向啊?

雨天,窩在家裡逗女兒

雨天,窩在家裡逗女兒

雨天,窩在家裡逗女兒

果然還是紅白機對了胃口~

果然還是紅白機對了胃口~

果然還是紅白機對了胃口~

果然,光要畫好一隻眼睛,也著實的不容易啊~

果然,光要畫好一隻眼睛,也著...

s 果然,光要畫好一隻眼睛,也著實的不容易啊~ 但不管怎樣,這次畫的有比上回好太多了。 真的,我越來...

小黃便利貼

小黃便利貼

news 小黃便利貼~是Innstory系統技術性介紹配置。 呈現的位置為版面左上角九宮格上方。 簡...

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