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

將照片加入簽名檔

將照片加入簽名檔

我始終相信,科技來自於人性... 而我的人性則是來自於墮性.... 開發 innstory.com ...

找對方法,開創自己的網路流量

找對方法,開創自己的網路流量...

前些天,Tim傳來了一個消息...http://classt...

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

querySelectorA...

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

Recommended reading

Other stories happened at this address

一碗麵,簡簡單單的午餐、簡簡單單的滿足。

一碗麵,簡簡單單的午餐、簡簡...

塊錢的豆芽、塊錢的韭菜、塊錢的青江菜、塊錢的香菜、塊的細黃麵。 加上紅蔥頭肉燥、一點黑醋,攪拌一起。...

窗

window 有時候,只需要一扇窗,一杯咖啡。 一些安靜的時間......就這樣的沉澱著~暫時拋開一...

火材盒小汽車之滿滿的父愛~

火材盒小汽車之滿滿的父愛~

s 自有集點活動以來~我從沒過也沒想過會有認真收集點數的一天。 以前都是直接拿了商品然後退回點數。 ...

一早開機就遇到這畫面,是說我可以提早收工了嗎?

一早開機就遇到這畫面,是說我...

一早開機就遇到這畫面,是說我可以提早收工了嗎?

曬衣架上的幸福...

曬衣架上的幸福...

月日,今天週了.....早上產檢一切順利。 活動力強已經是小傢伙的本性了,這幾天當然也不例外,醫生大...

關掉phpinfo()

關掉phpinfo()

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

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