PHPMyadmin does not show mysql error messages

前端 未结 4 951
天命终不由人
天命终不由人 2021-01-06 15:23

I installed phpMyAdmin on my site and it works. But when I mistype a query it does not show the mysql error message only the error code.

1064 -

I expect the

4条回答
  •  星月不相逢
    2021-01-06 15:59

    Probably, Server cannot correctly access LOCALE settings. It happens on chroot-ed / chjail-ed environments or poor configuration.

    Based on @Anomie answer, I made a workaround.

    For phpmyadmin 4.4.3 change the Fallback setting in file libraries/DatabaseInterface.class.php

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

    For some older versions, edit file libraries/database_interface.lib.php and set array $encodings => 'english' value to UTF-8 (~line 273),

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

提交回复
热议问题