經過phpmyadmin登錄時提示如下錯誤:php
phpmyadmin crypt_random_string requires at least one symmetric cipher be loadeddom
報錯緣由:路徑問題。字體
解決辦法:ui
一、進入到phpmyadmin根目錄下,打開\libraries\phpseclib\Crypt\Random.php。spa
二、大概在195行,找到下面代碼並把紅色背景字體添加進去。code
switch (true) { case phpseclib_resolve_include_path('libraries/phpseclib/Crypt/AES.php’): if (!class_exists('Crypt_AES’)) { include_once 'AES.php’; } $crypto = new Crypt_AES(CRYPT_AES_MODE_CTR); break; case phpseclib_resolve_include_path('libraries/phpseclib/Crypt/Twofish.php’): if (!class_exists('Crypt_Twofish’)) { include_once 'Twofish.php’; } $crypto = new Crypt_Twofish(CRYPT_TWOFISH_MODE_CTR); break; case phpseclib_resolve_include_path('libraries/phpseclib/Crypt/Blowfish.php’): if (!class_exists('Crypt_Blowfish’)) { include_once 'Blowfish.php’; } $crypto = new Crypt_Blowfish(CRYPT_BLOWFISH_MODE_CTR); break; case phpseclib_resolve_include_path('libraries/phpseclib/Crypt/TripleDES.php’): if (!class_exists('Crypt_TripleDES’)) { include_once 'TripleDES.php’; } $crypto = new Crypt_TripleDES(CRYPT_DES_MODE_CTR); break; case phpseclib_resolve_include_path('libraries/phpseclib/Crypt/DES.php’): if (!class_exists('Crypt_DES’)) { include_once 'DES.php’; } $crypto = new Crypt_DES(CRYPT_DES_MODE_CTR); break; case phpseclib_resolve_include_path('libraries/phpseclib/Crypt/RC4.php’): if (!class_exists('Crypt_RC4’)) { include_once 'RC4.php’; } $crypto = new Crypt_RC4(); break; default: user_error('crypt_random_string requires at least one symmetric cipher be loaded’); return false; }