打开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
);
}*/
但我遇到了错误
致命错误:命名空间声明语句必须是第一个 语句或脚本中的任何声明调用之后 F:\ xampp \ phpMyAdmin \ libraries \ classes \ DatabaseInterface.php在第8行
请解决问题
答案 0 :(得分:0)
安装了phpMyAdmin之后,将浏览器指向http://localhost/phpmyadmin,以开始使用它。您应该能够使用在MySQL中设置的任何用户登录。如果未设置任何用户,请使用无密码的admin登录。然后为要配置的Web服务器选择Apache 2。