I've been trying for hours to enable phpMyAdmin Designer Mode on a CentOS cPanel dedicated server with no luck... here's the steps I followed, perhaps I'm missing something?
I created the pma
user and granted proper permission to the phpmyadmin
table:
GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY '?????';
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 ON mysql.host TO 'pma'@'localhost';
GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
ON mysql.tables_priv TO 'pma'@'localhost';
I modified config.inc.php
set the user and table names:
...
/* User used to manipulate with storage */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '?????';
/* 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';
...
Any idea what I could be missing?
Thanks!
UPDATE: After opening a ticket up with my hosting company/phpMyAdmin I realized didn't make it clear that I ran the create_tables.sql
in /usr/local/cpanel/base/3rdparty/phpMyAdmin/scripts
I did this last week (on a Windows box, but phpMyAdmin nonetheless) and there was a notice saying that you should log out of phpMyAdmin and log back in for the configuration file to be re-read - that seemed to do the trick for me.
If the worst comes to the worst, you could try bouncing Apache - I've had to do that a few times before to pick up phpMyAdmin config changes, but that was admittedly a server in very poor health.
For any who visits here looking for answers,this doesn't answer this question but will help others.
you probably followed a tutorial and set the config file accordingly but the query you found was outdated to mysql below 4.1.2.
This is the query you should use for mysql above 5 :