A machete-wielding lunatic attacked an 80-year-old man in Dusseldorf on Friday — only hours after a different madman injured nine people with an ax during a rampage at the German city’s railroad station.

The unidentified assailant fled after seriously injuring the elderly man in a parking lot on the city’s outskirts, The Telegraph reported. His injuries were not believed to be life-threatening.

Teachers and students in a nearby school, the Theodor-Fliedner-Gymnasium, were warned to stay inside as the manhunt was under way, the Mirror reported.

“According to the current understanding, there is no connection with the yesterday’s situation at the central station,” a police spokesman said.

Nine people were injured when a man identified as Fatmir H., a 36-year-old from Kosovo who lives in Wuppertal in Germany, jumped off a train and carried out his random attack, the Mirror reported.

The suspect, who was seriously hurt when he jumped off a bridge during an escape attempt, is believed to be mentally ill and has no terror connections, German police said.

Three people were seriously injured in his attack, including one person who was struck in the neck with the ax, the Mirror reported.

One of the nine victims was a 13-year-old girl who suffered a gaping wound on her upper arm – an injury described by one witness “as if someone had struck an ax in a tree.”

“I helped her get the wound treated and called her father,” the unnamed woman said, the Telegraph reported.

Witnesses described the chaotic scene as adults tried to shield children from the attacker’s murderous gaze as he unleashed his bloodshed, in which two cops also were injured.

On Friday, people praised train workers who kept passengers aboard by locking the doors as they banged on windows to try to get out onto the platform.

“The train arrived and suddenly someone with an ax came out and started attacking people. There was blood everywhere,” an unnamed witness told German newspaper Bild.

The attack raised fears that terrorism had returned to Germany, less than three months after a truck killed 12 people when it plowed into a Christmas market in Berlin in an attack claimed by ISIS.

In addition, five people were wounded in an ax attack on a train near Wuerzburg and 15 were injured in a bombing in Ansbach, both in the southern state of Bavaria. Both attackers were killed in last summer’s attacks, which were claimed by ISIS.

And an 18-year-old German-Iranian fatally shot nine people and injured 21 others in a Munich shopping center in July. The killer, who also died, had been undergoing psychiatric treatment.