I'm trying to run such query:
CREATE TABLE test6
(
id INT UNSIGNED PRIMARY KEY NOT NULL,
user_group_id TINYINT UNSIGNED,
username VARCHAR(25),
name VARCHAR(45),
surname VARCHAR(45),
password VARCHAR(255),
email VARCHAR(255),
active TINYINT DEFAULT 1 NOT NULL,
created DATETIME,
modified DATETIME,
lang_name VARCHAR(2) DEFAULT 'de' NOT NULL,
phone VARCHAR(15) DEFAULT '1',
limit_normal DECIMAL(4,0),
limit_vip DECIMAL(4,0),
provision_normal DECIMAL(8,4),
provision_vip DECIMAL(8,4),
parent_user INT UNSIGNED,
lastsysystemmessage INT UNSIGNED DEFAULT 0 NOT NULL,
FOREIGN KEY (parent_user) REFERENCES test6 (id)
);
CREATE TABLE test7
(
id INT UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT,
created DATETIME NOT NULL,
createdby MEDIUMINT UNSIGNED NOT NULL,
modified DATETIME NOT NULL,
modifiedby MEDIUMINT UNSIGNED NOT NULL,
profiles_id INT UNSIGNED,
profiles_bookings_id INT UNSIGNED,
status TINYINT DEFAULT 0,
FOREIGN KEY (createdby) REFERENCES test6 (id) ON UPDATE CASCADE,
FOREIGN KEY (modifiedby) REFERENCES test6 (id) ON UPDATE CASCADE,
FOREIGN KEY (profiles_id) REFERENCES test6 (id) ON UPDATE CASCADE
);
Of course it's wrong, but it causes default installation MariaDB to crash with attached earlier stacktrace on Ubuntu 14.04
Hi,
Please paste the output that you get in the client when you try to execute the statements; paste or attach the output of SHOW VARIABLES statement and your server error log.
Thanks.