your programing

phpmyadmin.pma_table_uiprefs가 존재하지 않습니다.

lovepro 2020. 12. 27. 20:24
반응형

phpmyadmin.pma_table_uiprefs가 존재하지 않습니다.


인터넷을 검색했지만이 특정 오류 / 표와 관련된 항목을 찾을 수 없습니다. phpMyAdmin에서 테이블을 보려고 할 때 나타납니다. 나는 루트로 로그인했고 phpMyAdmin의 설치 (우분투 13.10 아래)는 지금까지 신선하고 손대지 않았습니다.

전체 메시지는 다음과 같습니다.

SELECT `prefs`
FROM `phpmyadmin`.`pma_table_uiprefs`
WHERE `username` = 'root'
AND `db_name` = 'symfony'
AND `table_name` = 'users'

MySQL reports: #1146 - Table 'phpmyadmin.pma_table_uiprefs' doesn't exist

설치가 방금 손상되었거나 누락 된 것이 있습니까?


phpMyAdmin 구성 저장소 테이블 중 하나 이상이 누락되었거나 구성된 테이블 이름이 실제 테이블 이름과 일치하지 않습니다.

http://docs.phpmyadmin.net/en/latest/setup.html#phpmyadmin-configuration-storage를 참조 하십시오 .

수행 할 작업에 대한 간략한 요약은 다음과 같습니다.

  1. 셸에서 : locate create_tables.sql.
  2. /usr/share/doc/phpmyadmin/examples/create_tables.sql.gzphpMyAdmin을 사용하여 가져 오기 .
  3. 열린 /etc/phpmyadmin/config.inc.php편집 라인 81-92 : 변화 pma_bookmarkpma__bookmark등등합니다.

Ubuntu 13.10에서 이와 동일한 문제가 발생했습니다. 일반적으로 phpMyAdmin은 Ubuntu 리포지토리에서 패키지를 설치 한 후 즉시 작동하기 때문에 PHP 파일을 해킹하고 싶지 않았습니다. 대신 나는 달렸다.

sudo dpkg-reconfigure phpmyadmin

재구성하는 동안 phpMyAdmin 데이터베이스를 다시 설치하기 위해 "예"라고 답했습니다. 그 후 문제는 사라졌습니다. 설치 또는 업그레이드 중에 그 질문에 "아니오"라고 대답 한 모호한 기억이 있습니다. 그것이 아마도 처음에 문제가 발생한 이유 일 것입니다.


/etc/phpmyadmin/config.inc.php에서 다음 줄을 변경하십시오.

$ Cfg ['Servers'] [$ i] ['table_uiprefs'] = ‘pma_table_uiprefs’;

...에

$ cfg ['Servers'] [$ i] ['pma__table_uiprefs'] = ‘pma__table_uiprefs’;

그리고 명령으로 아파치 서버를 다시 시작하십시오.

sudo service apache2 restart

시험 sudo dpkg-reconfigure phpmyadmin

구성 파일 /etc/phpmyadmin/config-db.php를 새 버전으로 바꾸려면


이 행을 변경해야했습니다.

$cfg['Servers'][$i]['pma__bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['pma__relation'] = 'pma__relation';
$cfg['Servers'][$i]['pma__table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['pma__table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pma__pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['pma__column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['pma__history'] = 'pma__history';
$cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['pma__designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['pma__tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['pma__userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['pma__recent'] = 'pma__recent';
$cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__table_uiprefs';

추가 : " pma__ "to [ 'bookmarktable'] 및 " _ "to 'pma_bookmark'


phpmyadmin On 터미널을 재구성해야합니다.

  • sudo dpkg-reconfigure phpmyadmin

이 문제를 해결할 해결책을 찾았습니다.

/etc/phpmyadmin/config.inc.php 파일을 편집하십시오.

찾기:

if (!empty($dbport) || $dbserver != 'localhost') {
        $cfg['Servers'][$i]['connect_type'] = 'tcp';
        $cfg['Servers'][$i]['port'] = $dbport;
    }

뒤에 추가 :

$cfg['Servers'][$i]['pmadb'] = null; // Apurba

아파치 서비스를 다시 시작하고 시도하십시오. 도움이 되었기를 바랍니다. 감사.


나는 Windows 7 Xampp의 phpmyadmin 버전을 사용 하고 위의 항목이 없거나이 게시물이 upvoted되면 답변이 작동합니다. Xampp를 제거하고 더 높은 버전으로 업그레이드하고, config 폴더의 값을 수동으로 변경하고, 일부 github 페이지에서 .sql 파일을 가져오고, 심지어 youtube 비디오를 보는 것을 시도했지만 어떤 제안도 효과가 없었습니다.

해결책:

C : \ xampp \ phpMyAdmin 폴더의 모든 항목을 삭제하고 https://www.phpmyadmin.net/으로 이동 하여 최신 버전을 다운로드 한 다음 C : \ xampp \ phpMyAdmin 폴더에 모든 것을 추출하면 문제가 해결됩니다.

^^^^^ Google에서 수많은 실패한 솔루션을 검색하는 데 시간을 낭비하고 싶지 않다면이 글을 읽어보세요. 너무 간단합니다! ^^^^^^


Ubuntu Server 14.04에서 MariaDB를 사용하는 최신 Lampp에서 동일한 문제가 발생했으며 @iceberg의 솔루션이 매우 잘 작동했습니다.

/etc/phpmyadmin/config.inc.php에서 다음 줄을 변경하십시오.

$ Cfg ['Servers'] [$ i] ['table_uiprefs'] = ‘pma_table_uiprefs’;

...에

$ cfg ['Servers'] [$ i] ['pma__table_uiprefs'] = ‘pma__table_uiprefs’;

그리고 명령으로 아파치 서버를 다시 시작하십시오.

sudo service apache2 restart

Lampp config.inc.php/opt/lampp/phpmyadmin/config.inc.php에 있으며 작동하려면 변경해야합니다.

$ cfg ['Servers'] [$ i] ['tracking'] = ‘pma__tracking’;

...에

$ cfg ['Servers'] [$ i] ['pma__tracking'] = ‘pma__tracking’;

램프를 다시 시작하십시오.

sudo /opt/lampp/lampp stop
sudo /opt/lampp/lampp start

in linux os such as Debian or Ubutu you can simply try this ways, for first time remove phpmyadmin with --purge parameter:

sudo apt-get remove --purge phpmyadmin

then install again

sudo apt-get install phpmyadmin      

thats work fine :)


You just need to change the table names as per the error in - /etc/phpmyadmin/config.inc.php

$ Cfg ['Servers'] [$ i] ['table_uiprefs'] = ‘pma_table_uiprefs’;

to

$ Cfg ['Servers'] [$ i] ['table_uiprefs'] = ‘pma__table_uiprefs’;

assign the table names accordingly and everything will be fine.

For me,sudo dpkg-reconfigure phpmyadmin caused more trouble when I chose the option to re-install the database


Steps:

  • Just download create_table.sql from GitHub and save that file in your system.
  • Then go to your phpMyAdmin.
  • And click on Import from upper tab.
  • At last select create_table.sql and upload that.

After all it works for me and hopefully work for you.


I just located the create_tables.sql, saved to my desktop, opened phpMyAdmin, selected the import tab, selected the create_tables.sql, clicked ok


To elaborate on multiple reply here above, there is an error in the config.inc.php shipped, where a "_" is missing, which is what this reply sais.

To fix that, you can add a "pma__table_uiprefs.inc.php" in the "/etc/phpmyadmin/conf.d" folder, leaving main configuration files untouched...

<?php foreach($cfg['Servers'] as $i => $v) { $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; }


A really simple solution is to edit /etc/phpmyadmin/config.inc.php and put

$cfg['Servers'][$i]['table_uiprefs'] = '';

It just manages the UI and who needs the UI if its interfering with display of actual data.

cheers


Clear your cookies

When using PHPMyAdmin configured with multiple databases, one having the phpmyadmin table and another not having it; phpmyadmin will store preferences for the database with the table in your cookies then try to load them with the database that doesn't have the table.

To test, try using an incognito window.


Into phpmyadmin database's create that table, there miskta on name of that table it may be pma_table_uiprefs and not pma__table_uiprefs

CREATE TABLE IF NOT EXISTS pma_table_uiprefs ( username varchar(64) NOT NULL, db_name varchar(64) NOT NULL, table_name varchar(64) NOT NULL, prefs text NOT NULL, last_update timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (username,db_name,table_name) ) COMMENT='Tables'' UI preferences' DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;


I had similar problems with phpMyAdmin after changing Mysql InnoDB setting to innodb_file_per_table = 1
to move InnoDB tables into separate files.

None of the other answers helped in my case, neither sudo dpkg-reconfigure phpmyadmin nor importing create_tables.sql. Both failed.

What helped was making sure no default-storage-engine, default-tmp-storage-engine and innodb_file_format is enforced in my.cnf

After restarting MySQL and removing+reinstalling phpMyAdmin there are no more errors.


Commented out whole config section(/etc/phpmyadmin/config.inc.php):

from:

/* Optional: Advanced phpMyAdmin features */

to:

/* Optional: Advanced phpMyAdmin features

I just needed simple acces to data ... This problem shouldn't be blocking for phpmyadmin displaying tables ...


For ubuntu me help - sudo dpkg-reconfigure phpmyadmin

ReferenceURL : https://stackoverflow.com/questions/20731487/phpmyadmin-pma-table-uiprefs-doesnt-exist

반응형