Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

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

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Locked
  • Print view
Advanced search
6 posts • Page 1 of 1
ArthurCHi
Posts: 79
Joined: Thu Apr 18, 2013 7:16 am

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

Post by ArthurCHi » Sun Apr 28, 2013 1:00 pm

Предлогаю из коробки донастраивать 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 был олинклюзиф.
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

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

Post by skid » Mon Apr 29, 2013 6:29 am

Честно говоря, я никогда не создавал дополнительную таблицу для pma. Какие преимущества это даст? Где можно почитать об этом?
Top

ArthurCHi
Posts: 79
Joined: Thu Apr 18, 2013 7:16 am

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

Post by ArthurCHi » Mon Apr 29, 2013 6:53 am

Это из документации которая идет в комплекте
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).
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

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

Post by imperio » Mon Apr 29, 2013 2:09 pm

Можно поподробнее. Какой смысл Вы видите в данной донастройке?
Не очень понятно для чего это нужно
Top

ArthurCHi
Posts: 79
Joined: Thu Apr 18, 2013 7:16 am

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

Post by ArthurCHi » Mon Apr 29, 2013 2:20 pm

В этой базе данных будут храниться персональные конфигурации PMA для каждого пользователя. Для ведения закладок, сохранения пользовательских запросов и отслеживание изменений.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Fri Jan 15, 2016 8:07 pm

Скрипт для автоматического исправления
viewtopic.php?f=32&t=10306
Top


Locked
  • Print view

6 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password