PHPMyAdmin: Dodatkowe możliwo

Konfiguracja serwerów, usług, itp.
Awatar użytkownika
szmergiell
Beginner
Posty: 195
Rejestracja: 20 maja 2008, 00:16
Lokalizacja: Poznań

PHPMyAdmin: Dodatkowe możliwości pracy z połączonymi tabelami zostały wyłączone

Post autor: szmergiell »

Mam problem ze skonfigurowaniem do poprawnego działania MySQL z PHPMyAdmin i PHP. W ustawieniach PHPMyAdmin mam błąd:

Kod: Zaznacz cały

Dodatkowe możliwości pracy z połączonymi tabelami zostały wyłączone. Aby dowiedzieć się, dlaczego - kliknij tutaj.
Po kliknięciu tutaj otrzymuję:

Kod: Zaznacz cały

 localhost
$cfg['Servers'][$i]['pmadb'] ...	OK
$cfg['Servers'][$i]['relation'] ...	błąd [ Dokumentacja ]
Ogólne funkcje relacyjne: wyłączone
 
$cfg['Servers'][$i]['table_info'] ...	błąd [ Dokumentacja ]
Funkcje wyświetlania: wyłączone
 
$cfg['Servers'][$i]['table_coords'] ...	błąd [ Dokumentacja ]
$cfg['Servers'][$i]['pdf_pages'] ...	błąd [ Dokumentacja ]
Tworzenie PDF-ów: wyłączone
 
$cfg['Servers'][$i]['column_info'] ...	błąd [ Dokumentacja ]
Wyświetl komentarze dla kolumn: wyłączone
Sposób prezentacji danych: wyłączone
 
$cfg['Servers'][$i]['bookmarktable'] ...	błąd [ Dokumentacja ]
Zapamiętane zapytanie SQL: wyłączone
 
$cfg['Servers'][$i]['history'] ...	błąd [ Dokumentacja ]
Historia SQL: wyłączone
 
$cfg['Servers'][$i]['designer_coords'] ...	błąd [ Dokumentacja ]
Projektant: wyłączone
 
$cfg['Servers'][$i]['tracking'] ...	błąd [ Dokumentacja ]
Tracking: wyłączone
Znalazłem takie rozwiązanie, jednakże nie udało mi się go zastosować.
Musisz założyć sobie dodatkową bazę, w której phpMyAdmin będzie przechowywał infomacje umożliwiające wykorzystanie tych dodatkowych możliwości.

U mnie ta baza nazywa się: phpmyadmin, a skrypt do utworzenia tabel znajduje się w katalogu phpMyAdmina: scripts.

Po utworzeniu tabel musisz jeszcze w config.inc.php pozmieniać następujące linijki:

Kod: Zaznacz cały

<?php

$cfg['Servers'][$i]['pmadb']		 = 'phpmyadmin';		  // Database used for Relation, Bookmark and PDF Features
													// (see scripts/create_tables.sql)
													//   - leave blank for no support
													//	 DEFAULT: 'phpmyadmin'
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';		  // Bookmark table
													//   - leave blank for no bookmark support
													//	 DEFAULT: 'pma_bookmark'
$cfg['Servers'][$i]['relation']	  = 'pma_relation';		  // table to describe the relation between links (see doc)
													//   - leave blank for no relation-links support
													//	 DEFAULT: 'pma_relation'
$cfg['Servers'][$i]['table_info']	= 'pma_table_info';		  // table to describe the display fields
													//   - leave blank for no display fields support
													//	 DEFAULT: 'pma_table_info'
$cfg['Servers'][$i]['table_coords']  = 'pma_table_coords';		  // table to describe the tables position for the PDF schema
													//   - leave blank for no PDF schema support
													//	 DEFAULT: 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages']	 = 'pma_pdf_pages';		  // table to describe pages of relationpdf
													//   - leave blank if you don't want to use this
													//	 DEFAULT: 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info']   = 'pma_column_info';		  // table to store column information
													//   - leave blank for no column comments/mime types
													//	 DEFAULT: 'pma_column_info'
$cfg['Servers'][$i]['history']	   = 'pma_history';		  // table to store SQL history
													//   - leave blank for no SQL query history
													//	 DEFAULT: 'pma_history'


?>
Ustawienia w pliku /etc/phpmyadmin/config.inc.php mam takie:

Kod: Zaznacz cały

<?php
/**
 * Debian local configuration file
 *
 * This file overrides the settings made by phpMyAdmin interactive setup
 * utility.
 *
 * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
 *
 * NOTE: do not add security sensitive data to this file (like passwords)
 * unless you really know what you're doing. If you do, any user that can
 * run PHP or CGI on your webserver will be able to read them. If you still
 * want to do this, make sure to properly secure the access to this file
 * (also on the filesystem level).
 */

/**
 * Server(s) configuration
 */
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;

/**
 * Read configuration from dbconfig-common
 * You can regenerate it using: dpkg-reconfigure -plow phpmyadmin
 */
if (is_readable('/etc/phpmyadmin/config-db.php')) {
    require('/etc/phpmyadmin/config-db.php');
}

/* Configure according to dbconfig-common if enabled */
if (!empty($dbname)) {
    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    /* Server parameters */
    if (empty($dbserver)) $dbserver = 'localhost';
    $cfg['Servers'][$i]['host'] = $dbserver;

    if (!empty($dbport)) {
        $cfg['Servers'][$i]['connect_type'] = 'tcp';
        $cfg['Servers'][$i]['port'] = $dbport;
    }
    //$cfg['Servers'][$i]['compress'] = false;
    /* Select mysqli if your server has it */
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    /* Optional: User for advanced features */
    $cfg['Servers'][$i]['controluser'] = $dbuser;
    $cfg['Servers'][$i]['controlpass'] = $dbpass;
    /* Optional: Advanced phpMyAdmin features */
    $cfg['Servers'][$i]['pmadb'] = $dbname;
    $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]['designer_coords'] = 'pma_designer_coords';

    /* Uncomment the following to enable logging in to passwordless accounts,
     * after taking note of the associated security risks. */
    // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

    /* Advance to next server for rest of config */
    $i++;
}

/* Authentication type */
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
//$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
//$cfg['Servers'][$i]['extension'] = 'mysql';
/* Optional: User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Optional: Advanced phpMyAdmin features */
// $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]['designer_coords'] = 'pma_designer_coords';
/* Uncomment the following to enable logging in to passwordless accounts,
 * after taking note of the associated security risks. */
// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

/*
 * End of servers configuration
 */

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
Niestety, nie mam katalogu scripts w katalogu phpmyadmin, dlatego nie mam też skryptu, który mógłby założyć bazę.
Co mam zrobić, żeby pozbyć się błędu? Ręcznie założyć bazę?

Konfiguracja serwera:

Kod: Zaznacz cały

MySQL

Serwer: Localhost via UNIX socket
Wersja serwera: 5.1.45-1
Wersja protokołu: 10
Użytkownik: root@localhost
Kodowanie napisów dla MySQL: UTF-8 Unicode (utf8)
Serwer WWW

Apache/2.2.15 (Debian)
Wersja klienta MySQL: 5.1.45
Rozszerzenie PHP: mysqli
ODPOWIEDZ