Error establishing a database connection after re set a site from AWS image lunch a instance

Dear Sir,

Error establishing a database connection after re set a site from AWS image lunch a instance,
The site is back and could connected by FZ,but the site have all the error for data connect.

How to fix it?

Thanks!