1 頁 (共 1 頁)

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

發表於 : 2004-10-07 17:20
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 
請幫幫我...

發表於 : 2004-10-07 17:21
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

發表於 : 2004-10-07 18:22
神川小羽
請問 您是要建立資料表 還是要建立資料庫 這兩種是不同的唷\r
如果你的PHPBB尚未安裝好 理應是要建立資料庫才對唷@@

發表於 : 2004-10-07 18:45
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']

你再也不會看到錯誤了 ^^