简体   繁体   English

尝试打开localhost / phpmyadmin时出错

[英]Error when trying to open localhost/phpmyadmin

Opening the http://localhost/phpmyadmin page results in a Fatal error: 打开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  

I have tried commenting out the line to solve the problem but nothing happens. 我尝试注释掉该行以解决问题,但没有任何反应。

/* Locale for messages */
       /* $locale = LanguageManager::getInstance()->getCurrentLanguage()->getMySQLLocale();
        if (! empty($locale)) {
            $this->query(
                "SET lc_messages = '" . $locale . "';",
                DatabaseInterface::CONNECT_USER,
                self::QUERY_STORE
            );
        }*/

but i got error 但我有错误

Fatal error: 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 致命错误:命名空间声明语句必须是第一个语句,或者在第8行的F:\\ xampp \\ phpMyAdmin \\ libraries \\ classes \\ DatabaseInterface.php中的脚本中的任何声明调用之后

please solve the issue 请解决问题

Once phpMyAdmin is installed point your browser to http://localhost/phpmyadmin to start using it. 安装phpMyAdmin后,将浏览器指向http:// localhost / phpmyadmin以开始使用它。 You should be able to login using any users you've setup in MySQL. 您应该能够使用在MySQL中设置的任何用户登录。 If no users have been setup, use admin with no password to login. 如果未设置任何用户,请使用无密码的admin登录。 Then select Apache 2 for the webserver you wish to configure. 然后为要配置的Web服务器选择Apache 2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM