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

客語檢定

客語檢定

恭喜通過客語基礎檢定,期待你將來可以直接用客語跟我對話。

地圖故事

地圖故事

map 一切都從第一張畫布開始... Innstory裡原先已有寫故事的功能,接著我把故事裡頭的照片...

研究著vps的設定...

研究著vps的設定...

現在在研究著vps的設定... 上次發生怪客入侵事件後...原本已經把所有系統都重新檢查後移入國內空...

Recommended reading

Other stories happened at this address

PHP取得檔案路徑及檔案名稱

PHP取得檔案路徑及檔案名稱...

例如我有一支檔案是放在根目錄下的demo資料夾中,檔案名稱為test.php 、首先取得目前網頁的檔...

淡紅色小藥丸

淡紅色小藥丸

s Drug Name Diclofenac mg tab 從沒想過,所謂的坐骨神經痛會發生在自己身...

我的蔥爆豬肉片

我的蔥爆豬肉片

我一直都不善於處理肉類~ 調味要拿捏的好其實並不容易啊.....而且,有一點很重要!......就是...

所以你現在是有多老?

所以你現在是有多老?

這天,U指著自己小時候的照片開心的說這是我年輕的時候。 所以你現在是有多老?

啊~是在拍我嗎?

啊~是在拍我嗎?

啊~是在拍我嗎?

突然覺得,若沒有鍵盤我可能永遠都想不起我的密碼....。

突然覺得,若沒有鍵盤我可能永...

s 你有沒有過,怎麼想都想不起來的密碼~ 只要坐在電腦前就很自然的敲了出來⊙⊙ 突然覺得,若沒有鍵盤...

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