thinkphp connecting MySQL problem
' Db_type ' = ' mysql ', //database type
' db_host ' = ' localhost ',//server address
' db_name ' = ' test ', //database name
' Db_user ' = ' root ', //user name
' db_pwd ' = ' 123456 ', //password
' Db_port ' = 3306, //Port
' Db_prefix ' = ' think_ ', //database table prefix
' Db_suffix ' = ', '/ /database table suffix
' Db_fieldtype_check ' = False, //Whether field type checking is performed
' Db_fields_cache ' = = true, //enable field caching
' Db_charset ' = ' utf8 ', //Database encoding defaults to UTF8
' Db_deploy_type ' + 0,//Database deployment method: 0 Centralized (single server), 1 distributed (Master-slave server)
' Db_rw_separate ' = False, //database read/write is separate master-slave valid
The password is right.
How to Prompt
The system has an error
You can choose [Retry] [back] or [go home]
[Error message]
Access denied for user ' root ' @ ' localhost ' (using Password:no)
Share to: