I installed phpMyAdmin, but I have an error on the main page:
Notice in ./index.php#312
Undefined index: utf8
Index p.312:
echo ' ' , $mysql_charsets_descriptions[$mysql_charset_map['utf-8']];
Any idea how I can fix it?
Thank you !
2
Answers
in index.php change
echo ' ' , $mysql_charsets_descriptions[$mysql_charset_map['utf-8']];
to
echo ' ' , $mysql_charsets_descriptions['utf8mb4'];
this is not required other than the error popup being annoying.
it sets some html in the page source.
<span lang="en" dir="ltr"> UTF-8 Unicode (utf8) </span>
Alternatively you can edit the array directly in /libraries/common.inc.php line 1121
'utf-8' => 'utf8',
to'utf-8' => 'utf8mb4',
maybe it will help someone… I had same issue, but not exactly the same solution.
In my case phpmyadmin ver. 4.8.3 running with MySQL 8.0.30.
Solution was not in the common.inc.php. In my case I had to edit /libraries/classes/Charsets.php line 43:
'utf-8' => 'utf8',
to'utf-8' => 'utf8mb3',
Cheers