& Quot; Errorestablishingadatabaseconnection & quot; the error indicates that a database connection error is established. & quot; ask how to solve this problem.
"Error establishing a database connection" indicates "An Error occurred while establishing a database connection"
Ask how to solve this problem
Reply content:
"Error establishing a database connection" indicates "An Error occurred while establishing a database connection"
Ask how to solve this problem
I found the code. It is estimated that your user name, password, or database name is not set accurately.
Public function connect (Typecho_Config $ config) {if ($ this-> _ dbLink = @ mysql_connect ($ config-> host. (empty ($ config-> port )? '':':'. $ Config-> port), $ config-> user, $ config-> password, true) {if (@ mysql_select_db ($ config-> database, $ this-> _ dbLink) {if ($ config-> charset) {mysql_query ("set names '{$ config-> charset }'", $ this-> _ dbLink);} return $ this-> _ dbLink ;}} /** database exception */throw new Typecho_Db_Adapter_Exception (@ mysql_error ($ this-> _ dbLink ));}
From www.typechodev.com
@ TypechoDev
I made a mistake. It is indeed because my user name, password, or database name is not set correctly. Now you can install it. Thank you.