打开http://localhost/phpmyadmin页面会导致致命错误:
Namespace declaration statement has to be the very first statement or after any declare call in the script in F:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php on line 8 为了解决这个问题,我试着评论一下这句话,但什么也没有发生。
/* Locale for messages */
/* $locale = LanguageManager::getInstance()->getCurrentLanguage()->getMySQLLocale();
if (! empty($locale)) {
$this->query(
"SET lc_messages = '" . $locale . "';",
DatabaseInterface::CONNECT_USER,
self::QUERY_STORE
);
}*/但我错了
致命错误:命名空间声明语句必须是第一个语句,或者在第8行的F:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php脚本中的任何声明调用之后。
请解决这个问题
发布于 2019-09-08 10:44:06
一旦安装了phpMyAdmin,请将浏览器指向http://localhost/phpmyadmin开始使用它。您应该能够使用您在MySQL中设置的任何用户登录。如果没有设置任何用户,请使用admin (没有密码)登录。然后为您希望配置的the服务器选择Apache 2。
https://stackoverflow.com/questions/57840776
复制相似问题