Page 1 of 1

Донастройка phpmyadmin

Posted: Sun Apr 28, 2013 1:00 pm
by ArthurCHi
Предлогаю из коробки донастраивать phpmyadmin а в частности создавать пользователя phpMyAdmin и добавлять его в настройки конфигов, в частности я про этот фаил:

Code: Select all

http://c.vestacp.com/0.9.7/pma.conf
и этот сектор кода:

Code: Select all

/* 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';
А так же этому пользователю сразу импортировать таблицу:

Code: Select all

/usr/share/phpMyAdmin/examples/create-tables.sql
Дабы в Vesta был олинклюзиф.

Re: Донастройка phpmyadmin

Posted: Mon Apr 29, 2013 6:29 am
by skid
Честно говоря, я никогда не создавал дополнительную таблицу для pma. Какие преимущества это даст? Где можно почитать об этом?

Re: Донастройка phpmyadmin

Posted: Mon Apr 29, 2013 6:53 am
by ArthurCHi
Это из документации которая идет в комплекте
phpMyAdmin configuration storage

For a whole set of new features (bookmarks, comments, SQL-history, tracking mechanism, PDF-generation, column contents transformation, etc.) you need to create a set of special tables. Those tables can be located in your own database, or in a central database for a multi-user installation (this database would then be accessed by the controluser, so no other user should have rights to it).

Please look at your ./examples/ directory, where you should find a file called create_tables.sql. (If you are using a Windows server, pay special attention to FAQ 1.23).

If you already had this infrastructure and upgraded to MySQL 4.1.2 or newer, please use ./examples/upgrade_tables_mysql_4_1_2+.sql and then create new tables by importing ./examples/create_tables.sql.

You can use your phpMyAdmin to create the tables for you. Please be aware that you may need special (administrator) privileges to create the database and tables, and that the script may need some tuning, depending on the database name.

After having imported the ./examples/create_tables.sql file, you should specify the table names in your ./config.inc.php file. The directives used for that can be found in the Configuration section. You will also need to have a controluser with the proper rights to those tables (see section Using authentication modes below).

Re: Донастройка phpmyadmin

Posted: Mon Apr 29, 2013 2:09 pm
by imperio
Можно поподробнее. Какой смысл Вы видите в данной донастройке?
Не очень понятно для чего это нужно

Re: Донастройка phpmyadmin

Posted: Mon Apr 29, 2013 2:20 pm
by ArthurCHi
В этой базе данных будут храниться персональные конфигурации PMA для каждого пользователя. Для ведения закладок, сохранения пользовательских запросов и отслеживание изменений.

Re: Донастройка phpmyadmin

Posted: Fri Jan 15, 2016 8:07 pm
by skurudo
Скрипт для автоматического исправления
viewtopic.php?f=32&t=10306