Einzelnen Beitrag anzeigen

teosuper

Registriert seit: 23. Nov 2008
11 Beiträge
 
#96

AW: MySQL via PHP-Tunnel (über eigene libmysql.dll)

  Alt 25. Mai 2015, 13:04
I executed this in Heidisql without errors:

DROP TABLE IF EXISTS nodes;
CREATE TABLE nodes (
node_id int,
parent_id int,
bez TEXT,
CONSTRAINT PK_nodes PRIMARY KEY (node_id),
CONSTRAINT FK_nodes_parent FOREIGN KEY (parent_id) REFERENCES nodes (node_id)
) ENGINE=InnoDB;

INSERT INTO nodes VALUES (1, NULL, 'A');
INSERT INTO nodes VALUES (2, 1, 'AA');
INSERT INTO nodes VALUES (3, NULL, 'B');
INSERT INTO nodes VALUES (4, 2, 'AA=1234; bbA');

Maybe very stupid question but if the sql I post does not work for you, what happens if you replace the ";"? That could very well be a delimiter in the PHP tunnel..
Teo

Geändert von teosuper (25. Mai 2015 um 13:11 Uhr)
  Mit Zitat antworten Zitat