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

JavaScript的獲取日期代碼不足兩位數補0

JavaScript的獲取日...

當我們用javascript得到了一個時間後...針對月份及日期的部分只會顯示數字... funct...

恭喜

恭喜

5U個性比較文靜對於一些活動並不會主動積極的參與。 這回,在Mandy的鼓勵下,他參加了班上的說故事...

JavaScript 檢查 Radio Button

JavaScript 檢查 ...

要用 JavaScript 來檢查同一組的 radio button 是否已選,可用以下方法: if...

Recommended reading

Other stories happened at this address

串接opendata氣象資訊

串接opendata氣象資訊...

研究了幾天的opendata(政府資訊開放平台)https:...

querySelectorAll對多個相同ID做統一處理

querySelectorA...

a 範例,想將同一組ID的DIV做統一隱藏的動作 var elms = document.query...

小老虎探險~

小老虎探險~

s 住家後頭的小公園,是我們每天都會經過幾次的地方~ 早上,去吃早餐,我們會讓U在這公園小徑上走著。...

元宵節快樂

元宵節快樂

元宵節快樂

未完成的金頓國際大飯店...

未完成的金頓國際大飯店......

kingdom kk 說是未完成...應該說這個專案並未結案... 雖是未結案...但這網站其實一直...

解決png圖檔GD合圖後背景色塊問題

解決png圖檔GD合圖後背景...

重點在於設定圖片走透明通道~ $img = imagecreatefrompng($src); im...

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