PHPMyadmin does not display mysql error messages

I installed phpMyAdmin on my website and it works. But when I am mistaken in the request, it does not show the mysql error message only the error code.

1064 -

I expect the following:

1064 - You have an error in your blah blah ...

Without an error message, it is hard to understand what is wrong.

In my php scripts, I can get an error message through mysql_error (). But myAdmin shows nothing.

I walked a lot, but did not find anything useful.

How can I show an error message?

Any ideas?

+3
source share
3 answers

, "# 1064 -" , phpMyAdmin 3.3.9.2, . - mysql_error mysqli_error, , . , , mysql_error ; phpMyAdmin, , , mysqli , .

mysql_error , , phpMyAdmin PMA_DBI_convert_message library/database_interface.lib.php. , return $message; , . ( ), , , , $server_language $GLOBALS['charset']; , iconv, recode_string, libiconv mb_convert_encoding; , .

+4

, LOCALE. chroot-ed/chjail-ed .

@Anomie, .

phpmyadmin 4.4.3 Fallback libraries/DatabaseInterface.class.php

 /* Fallback to CP1252 if we can not detect */
        $encoding = 'UTF-8';

, libraries/database_interface.lib.php array $encodings => 'english' UTF-8 (~ 273),

'english'       => 'UTF-8', //'latin1',
+1

You saw:

$cfg['Error_Handler']['display']boolean

Whether to show errors with PHP or not.

$cfg['Error_Handler']['gather']boolean

Collect errors with PHP or not.

In the docs ?

0
source

Source: https://habr.com/ru/post/1786405/


All Articles