The key error is this: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'appian181_primary'
Either your account doesn't have access to this database, that database does not exist, or something is wrong with your…