AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Projekte MySQL via PHP-Tunnel (über eigene libmysql.dll)

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

Ein Thema von omata · begonnen am 22. Feb 2010 · letzter Beitrag vom 25. Mai 2015
Antwort Antwort
teosuper

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

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
sippytom

Registriert seit: 21. Mai 2015
7 Beiträge
 
#2

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

  Alt 25. Mai 2015, 13:10
I am using an sql tunnel demo from the 1st post.
I just need a way to connect to a mysql database using tunneling.
I have not done a check but is Heidisql a sql tunnel?

I am using Delphi 7

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

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

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

  Alt 25. Mai 2015, 13:26
HeidiSql is a tool like phpMyadmin.

I have a few general suggestions: first is to replace the ";" with some different character. If that works, at least you know what the issue is.

A quick work around: if you use stringreplace to replace ";" when posting and another stringreplace when retrieving the data, your problem should be worked around.
Teo
  Mit Zitat antworten Zitat
sippytom

Registriert seit: 21. Mai 2015
7 Beiträge
 
#4

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

  Alt 25. Mai 2015, 13:44
Thanks, yes I think I will test various characters that I can set on the way to the database and reset on the way out.

Tom
  Mit Zitat antworten Zitat
Antwort Antwort

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:07 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz