The suspect in Saturday’s shooting at an LGBTQ bar was known as Nicholas Brink before legally changing his name more than six years ago in an effort to sever “any connections to birth father and his criminal history,” court records show.

Anderson Lee Aldrich, who stands accused of gunning down five people and wounding 17 others at Club Q in Colorado Springs, Colorado, last weekend, petitioned a Texas court to adopt his current name in 2016 shortly before turning 16.

The petition, submitted by Brink’s grandparents — at the time his legal guardians – says he had not had contact with his father “for several years.”

Brink appears to have been the subject of vicious online bullying as a teenager in San Antonio, the Washington Post reported. At 15, months before the request to change his name, a website with photos of Brink ridiculed him for his weight, lack of money and what it said was an interest in Chinese cartoons.

The Associated Press reported that the suspect’s father is a mixed martial arts fighter and pornography performer with an extensive criminal history, including a conviction for battery against the alleged shooter’s mother, Laura Voepel, state and federal court records show. The father, Aaron F. Brink, served 21/2 years in prison for importation of marijuana, according to public records.

Investigators are still trying to determine a motive for the attack.

‘DIDN’T HAVE TIME TO SCREAM’:As the shooting started at Club Q, bodies fell, and an Army vet rose

MASS KILLINGS DATABASE: Revealing trends, details and anguish of every US event since 2006

Other developments:

►Aldrich, who was beaten by club patrons stopping his rampage, was released from a hospital Tuesday and transferred to the El Paso County jail, police said. He’s scheduled to make his first court appearance Wednesday morning.