I have recently installed MySQL and phpMyAdmin, but when I try to login to phpMyAdmin with the root credentials I get the following error for this query:
SQL query:
SET lc_messages = 'en_US';
MySQL said: Documentation
#1193 - Unknown system variable 'lc_messages'
Why am I experiencing this error?
I faced the same problem. Check your mySQL version:
For mySQL 5.5, use phpMyAdmin 4.4.x and above
For mySQL 5.1, use phpMyAdmin 4.0.x
Hope this helps someone.
It isn't true. PhpMyAdmin
can work with older Mysql
as always.
Quick fix is easy
if (PMA_MYSQL_INT_VERSION < $cfg['MysqlMinVersion']['internal']) {
PMA_fatalError(
__('You should upgrade to %s %s or later.'),
array('MySQL', $cfg['MysqlMinVersion']['human'])
);
}
or
if (! empty($locale)) {
$this->query("SET lc_messages = '" . $locale . "';", $link, self::QUERY_STORE);
}
Reference https://github.com/phpmyadmin/phpmyadmin/issues/12822
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With