think optimize:schema的問題

浏览:1424 发布日期:2017/10/30 分类:ThinkPHP5专区
執行這個命令之後,出現這個問題  [PDOException]
  SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
搜索整站都沒發現這個。。。。調試了下,發現最終加載的配置是:Array
(
    [type] => mysql
    [dsn] =>
    [hostname] => 127.0.0.1
    [database] =>
    [username] => root
    [password] =>
    [hostport] =>
    [params] => Array
        (
        )

    [charset] => utf8
    [prefix] =>
    [debug] =>
    [deploy] => 0
    [rw_separate] =>
    [master_num] => 1
    [slave_no] =>
    [fields_strict] => 1
    [resultset_type] => array
    [auto_timestamp] =>
    [datetime_format] => Y-m-d H:i:s
    [sql_explain] =>
)
這裏需要怎麽配置呢?
最佳答案
评论( 相关
后面还有条评论,点击查看>>