You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'KEY AUTO_INCREMENT,
Segue o comando:
CREATE TABLE cidade (id PRYMARY KEY AUTOINCREMENT,
nome VARCHAR(100) NOT NULL,
id_estado INT,
FOREIGN KEY (id_estado) REFERENCES estado(id));