douju7765
2014-02-17 06:34
浏览 75
已采纳

我的mysql数据库在wamp有什么问题?

I have installed wordpress successfully in local space,every time i can enter into my wordpress ,no problem happen.Today when i input 127.0.0.1\wordpress ,i got wrong output

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.    

when i input http://127.0.0.1/phpmyadmin/ to enter admin,

Fatal error: Call to undefined function mb_detect_encoding() in C:\BitNami\wampstack-5.4.24-0\apps\phpmyadmin\htdocs\libraries\php-gettext\gettext.inc on line 177 

the line 177 contain $source_encoding = mb_detect_encoding($text);

function _encode($text) {
    $source_encoding = mb_detect_encoding($text);
    $target_encoding = _get_codeset();
    if ($source_encoding != $target_encoding) {
        return mb_convert_encoding($text, $target_encoding, $source_encoding);
    }
    else {
        return $text;
    }
} 

How can i fix it ?

图片转代码服务由CSDN问答提供 功能建议

我已经在本地空间成功安装了wordpress,每次我可以进入我的wordpress,没有问题发生。今天 我输入 127.0.0.1 \ wordpress ,输出错误

 您的PHP安装似乎缺少WordPress所需的MySQL扩展。  
   
 
 

当我输入 http://127.0.0.1/phpmyadmin/ 进入admin时, 致命错误:在第177行的C:\ BitNami \ wampstack-5.4.24-0 \ apps \ phpmyadmin \ htdocs \ libraries \ php-gettext \ gettext.inc中调用未定义的函数mb_detect_encoding() < / code>

第177行包含 $ source_encoding = mb_detect_encoding($ text);

  function _encode  ($ text){
 $ source_encoding = mb_detect_encoding($ text); 
 $ target_encoding = _get_codeset(); 
 if($ source_encoding!= $ target_encoding){
 return mb_convert_encoding($ text,$ target_encoding,$ source_encoding  ); 
} 
其他{
返回$ text; 
} 
} 
   
 
 

我该如何解决?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题