W3docs

Setting PHPMyAdmin Language

To set the language for PHPMyAdmin, you can do the following:

To set the language for PHPMyAdmin, follow these steps:

  1. Locate your PHPMyAdmin configuration file, typically named config.inc.php in the installation directory. If it does not exist, copy config.sample.inc.php to config.inc.php.
  2. Open the file in a text editor and find the line that starts with $cfg['Lang'].
  3. Change the value to your desired language code, for example:
    $cfg['Lang'] = 'en';
    Replace 'en' with your preferred ISO 639-1 code (e.g., 'fr' for French, 'de' for German).
  4. Save the file and exit the editor.
  5. Refresh your PHPMyAdmin interface. It should now display in the selected language.

Note: The $cfg['Lang'] directive is the current standard for PHPMyAdmin 5.0+. Older versions (4.x) used $cfg['DefaultLang'], which was deprecated and later removed. Modern installations also auto-detect the browser language, so explicitly setting this is only needed if you want to override the default behavior.