MySQL 找不到用户,为什么?

浏览:766 发布日期:2015/03/01 分类:求助交流
Access denied for user ''@'localhost' to database 'thinkphp'
错误位置
FILE: C:\wamp\www\lab\thinkphp\3.1.3\Lib\Driver\Db\DbMysql.class.php  LINE: 58

我在配置中都填写好信息了,为什么用户名是 ''(匿名) 的?

我的 VarDump 信息如下  protected 'config' => 
    array (size=8)
      'dbms' => string 'mysql' (length=5)
      'username' => string 'root' (length=4)
      'password' => string 'admin123' (length=8)
      'hostname' => string 'localhost' (length=9)
      'hostport' => int 3306
      'database' => string 'thinkphp' (length=8)
      'dsn' => null
      'params' => string '' (length=0)
帮忙看看

'DB_TYPE' => 'mysql',
'DB_HOST' => 'localhost',
'DB_NAME' => 'thinkphp',
'DB_USER' => 'root',
'DB_PWD' => 'pass',
'DB_PORT' => 3306,
'DB_PREFIX' => 'think_',
最佳答案
评论( 相关
后面还有条评论,点击查看>>