2015-11-20 118 views
0

我在Windows上安裝了xampp 5.6.14。我打開phpMyAdmin的http://localhost/phpmyadmin/phpMyAdmin配置存儲未完全配置

但警告

! phpMyAdmin配置存儲未完全配置, 某些擴展功能已停用。找出爲什麼。 或者,也可以選擇任何數據庫的「操作」選項卡在其中進行設置。

!您以「root」身份連接,沒有密碼,對應於 默認MySQL特權帳戶。你的MySQL服務器正在運行,這個默認值是 ,對於入侵是開放的,你應該通過爲用戶'root'設置一個密碼來修復這個 安全漏洞。

如何解決?我在PMA Database ... not OK in phpMyAdmin upgrade看到我的問題,但我不明白。當我通過在phpMyAdmin SQL查詢創建數據庫在 「create_tables.sql」 的內容,但它是錯誤

CREATE TABLE IF NOT EXISTS `pma_users` (
    `username` varchar(64) NOT NULL, 
    `usergroup` varchar(64) NOT NULL, 
    PRIMARY KEY (`username`,`usergroup`) 
) 
    COMMENT='Users and their assignments to user groups' 
    DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; 

CREATE TABLE IF NOT EXISTS `pma_usergroups` (
    `usergroup` varchar(64) NOT NULL, 
    `tab` varchar(64) NOT NULL, 
    `allowed` enum('Y','N') NOT NULL DEFAULT 'N', 
    PRIMARY KEY (`usergroup`,`tab`,`allowed`) 
) 
    COMMENT='User groups with configured menu items' 
    DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; 

CREATE TABLE IF NOT EXISTS `pma_navigationhiding` (
    `username` varchar(64) NOT NULL, 
    `item_name` varchar(64) NOT NULL, 
    `item_type` varchar(64) NOT NULL, 
    `db_name` varchar(64) NOT NULL, 
    `table_name` varchar(64) NOT NULL, 
    PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`) 
) 
    COMMENT='Hidden items of navigation tree' 
    DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; 

錯誤

SQL查詢:

CREATE TABLE IF NOT EXISTS pma_usersusername VARCHAR (64)NOT NULL ,usergroup VARCHAR(64)NOT NULL,PRIMARY KEY (usernameusergroup))COMMENT ='用戶和他們的任務到 個用戶羣體的默認字符集是utf8 COLLATE utf8_bin

MySQL表示:文件

1046 - 無數據庫中選擇

+0

歡迎來到SO。這是一個被廣泛提及的問題,請在進行詢問之前進行自己的研究。例如http://stackoverflow.com/search?q=phpMyAdmin+configuration+storage+is+not+completely+configured可能已經解決了您的問題。 –

+0

@sec_aw:我正在使用WINDOWS操作系統。這是linux :(。他們是不同的。 – AzVoz

+0

請做一些研究。這個問題已經被多次詢問。我更新了我的鏈接,上面會帶你到堆棧溢出搜索結果「phpMyAdmin配置存儲沒有完全配置「 –

回答

0

的正式分create_tables.sql腳本包括行創建和使用 'phpMyAdmin的' 數據庫,所以也許XAMPP改變了一切。

請注意,我沒有使用XAMPP,我預料他們的安裝程序會爲您設置這一切,所以可能會出現問題,應該以更合適的方式解決,但一種可能的解決方案可能是下載的create_tables.sqlofficial phpMyAdmin version和使用,或者你可以只添加下面一行在你的SQL文件的頂部:

CREATE DATABASE IF NOT EXISTS `phpmyadmin` 
    DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; 
USE phpmyadmin; 
0
This is what I did to enable the advanced features (using the latest version 3.4.x) 

First login to phpmyadmin and create a new database called phpmadmin. When you have created the database select the import tab at the top of the page. Click the Browse/Choose file button and navigate to your phpmyadmin folder and open the scripts directory and select the create_tables.sql file. Click open to close the window. Then press Go (bottom of page). The database for the control user has been setup. 

Next to setup the control user. Go to the phpmyadmin home screen and click the privileges tab. Click the add a new user link. For the username type phpmyadmin. Set anything as the password (Make sure you remember it). Choose the option to Create database with same name and grant all privileges And then click the Go button. 

You have now setup the control user and the database for phpmyadmin. You now need to configure phpmyadmin. Open the config file (called config.inc.php). And remove the // from the start of the following lines 

/* User used to manipulate with storage */ 
// $cfg['Servers'][$i]['controluser'] = 'pma'; 
// $cfg['Servers'][$i]['controlpass'] = 'pmapass'; 

/* Storage database and tables */ 
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; 
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; 
// $cfg['Servers'][$i]['relation'] = 'pma_relation'; 
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info'; 
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; 
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; 
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info'; 
// $cfg['Servers'][$i]['history'] = 'pma_history'; 
// $cfg['Servers'][$i]['tracking'] = 'pma_tracking'; 
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords'; 
// $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig'; 


Make sure you set $cfg['Servers'][$i]['controluser'] to phpmyadmin and apply the password to $cfg['Servers'][$i]['controlpass']. Log out of phpmyadmin, then log back in (not as the control user). The advanced features should now be enabled. 
1

解決配置存儲問題XAMPP在windows:

去導入選項卡我n localhost/phpmyadmin和

瀏覽xampp \ phpMyAdmin \ sql文件夾並選擇create_tables。SQL和

然後點擊進入按鈕

現在phpmyadmin的數據庫添加到您的數據庫列表

現在

我們必須爲這個數據庫創建用戶帳戶:

用戶選項卡,然後單擊添加用戶

名稱:pma

密碼:pmapass

並點擊進入

該用戶的權限創建文件:pma_privileges.sql

與此內容:

GRANT USAGE ON mysql.* TO 'pma'@'localhost'; 
GRANT SELECT (
Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv, 
Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, 
File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, 
Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, 
Execute_priv, Repl_slave_priv, Repl_client_priv 
) ON mysql.user TO 'pma'@'localhost'; 
GRANT SELECT ON mysql.db TO 'pma'@'localhost'; 
GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv) 
ON mysql.tables_priv TO 'pma'@'localhost'; 
GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO 'pma'@'localhost'; 

和進口片導入

現在我們創建數據庫和用戶有特權

我們必須將它們添加到xampp \ phpMyAdmin文件夾中的config.inc.php文件

所以添加這些:

$cfg['Servers'][$i]['controluser'] = 'pma'; 
$cfg['Servers'][$i]['controlpass'] = 'pmapass'; 

/* Storage database and tables */ 
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; 
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; 
$cfg['Servers'][$i]['relation'] = 'pma__relation'; 
$cfg['Servers'][$i]['table_info'] = 'pma__table_info'; 
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; 
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; 
$cfg['Servers'][$i]['column_info'] = 'pma__column_info'; 
$cfg['Servers'][$i]['history'] = 'pma__history'; 
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; 
$cfg['Servers'][$i]['tracking'] = 'pma__tracking'; 
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; 
$cfg['Servers'][$i]['recent'] = 'pma__recent'; 
$cfg['Servers'][$i]['favorite'] = 'pma__favorite'; 
$cfg['Servers'][$i]['users'] = 'pma__users'; 
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; 
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; 
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; 
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; 

現在重新啓動mysql和瀏覽器和配置存儲錯誤消失和評論後

列在創建表可見

0

我不認爲這是正確的答案,但這對我來說,

我做了什麼:通過另一個瀏覽器打開phpmyadmin(從未打開phpmyadmin通過這個兄弟wser),所以錯誤消失了,phpmyadmin正常工作。

因此,然後從第一個Web瀏覽器清除所有的瀏覽器歷史記錄,它沒有上述錯誤正常工作