[問題]mysql如何新增資料表

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
woodyhkcc
星球普通子民
星球普通子民
文章: 5
註冊時間: 2003-04-23 08:21
來自: Hong Kong
聯繫:

[問題]mysql如何新增資料表

文章 woodyhkcc »

這個是在mysql首頁看到幾個資料表,在下方出現\r
錯誤
關聯資料表的附加功能未能啟動, 請按此 查出問題原因.
PMA Database ... 未能確定
說明文件這樣寫

代碼: 選擇全部

$cfg['Servers'][$i]['pmadb'] string 
The name of the database containing the linked-tables infrastructure. 

See the Linked-tables infrastructure section in this document to see the benefits of this infrastructure, and for a quick way of creating this database and the needed tables. 

If you are the only user of this phpMyAdmin installation, you can use your current database to store those special tables; in this case, just put your current database name in $cfg['Servers'][$i]['pmadb']. For a multi-user installation, set this parameter to the name of your central database containing the linked-tables infrastructure. 
我走去開新資料表給phpbb,欄位我不知入入麼,我打1
確定後到別一處按儲存(上方有欄位 型態 長度/集合* 屬性 Null 預設值** 附加 ,我什麼都沒填)
按儲存後

代碼: 選擇全部

SQL 語法: 

CREATE TABLE `bbs` (

) 
MySQL 傳回:  

#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 ')' at line 1 
請幫幫我...
玩GundamWar Call我
woodyhkcc
星球普通子民
星球普通子民
文章: 5
註冊時間: 2003-04-23 08:21
來自: Hong Kong
聯繫:

文章 woodyhkcc »

我的版本;
About AppServ Version 2.4.1 for Windows

Apache Web Server Version 1.3.31

PHP Script Language Version 4.3.8

MySQL Database Version 4.0.20

Zend Optimizer Version 2.5.3

phpMyAdmin Database Manager Version 2.6.0-rc1
玩GundamWar Call我
神川小羽
調皮の小羽
調皮の小羽
文章: 1461
註冊時間: 2004-05-01 05:55
來自: 謎樣之筱語
聯繫:

文章 神川小羽 »

請問 您是要建立資料表 還是要建立資料庫 這兩種是不同的唷\r
如果你的PHPBB尚未安裝好 理應是要建立資料庫才對唷@@
-.-
webspirit
竹貓忠實會員
竹貓忠實會員
文章: 1354
註冊時間: 2004-02-16 12:01
來自: 精靈國度

文章 webspirit »

我是用 phpMyAdmin 2.5.6,提供我的解決方式供參考
進入 phpMyAdmin 並隨便進一資料庫\r
點 SQL 標籤,瀏覽 phpMyAdmin 目錄/scripts/create_tables.sql 並執行
上述步驟會建立一個 phpmyadmin 資料庫,進入該資料庫\r
刪除 pma_column_info 資料表\r
點 SQL 標籤,執行下列 SQL 指令:

代碼: 選擇全部

CREATE TABLE `pma_column_info` (
       id int(5) unsigned NOT NULL auto_increment,
       db_name varchar(64) NOT NULL default '',
       table_name varchar(64) NOT NULL default '',
       column_name varchar(64) NOT NULL default '',
       `comment` varchar(255) NOT NULL default '',
       mimetype varchar(255) NOT NULL default '',
       transformation varchar(255) NOT NULL default '',
       transformation_options varchar(255) NOT NULL default '',
       PRIMARY KEY (id),
       UNIQUE KEY db_name (db_name, table_name, column_name)
     ) TYPE=MyISAM COMMENT='Comments for Columns';
開啟 phpMyAdmin 目錄中的 config.inc.php
將以下這些設定成其預設值並存檔
$cfg['Servers'][$i]['pmadb']
$cfg['Servers'][$i]['bookmarktable']
$cfg['Servers'][$i]['relation']
$cfg['Servers'][$i]['table_info']
$cfg['Servers'][$i]['table_coords']
$cfg['Servers'][$i]['pdf_pages']
$cfg['Servers'][$i]['column_info']
$cfg['Servers'][$i]['history']

你再也不會看到錯誤了 ^^
主題已鎖定

回到「phpBB 2 安裝與使用」