2015-11-20 164 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浏览器清除所有的浏览器历史记录,它没有上述错误正常工作