DMXzone Database Connector PHP Support Product Page

Answered

error loading database structure

Asked 19 Sep 2013 08:14:11
2
have this question
19 Sep 2013 08:14:11 Chris Sanders posted:
I can't shake this error when attempting to use the Database Source Query Builder.

I used DMX Zone Database Connector to create the database connection using the same credentials as Dreamweavers standard database panel.

I get the same result from DW CS5 and CC using different databases.

Any ideas?

Official Answer

Replied 19 Sep 2013 12:06:32
Good to hear it is all solved our! Yes you do need PHP 5.2+ to have the Database Connector running.

Greetings,
George

Replies

Replied 19 Sep 2013 08:21:08
19 Sep 2013 08:21:08 Teodor Kuduschiev replied:
Hello Chris,

Please provide your server type and database you are using. Please also describe when exactly does this error appear?
Replied 19 Sep 2013 08:38:24
19 Sep 2013 08:38:24 Chris Sanders replied:
Hi Teodor,

It's a Linux/Apache server running php 5.3 and Mysql 5.1. PDO enabled.

The error occurs thus:

Site > DMXzone Database Connector > Manage Data Sources (to open Database Source Query Builder panel (DSQB).

As soon as I select my recently added database from the "Connections" drop down menu in the DSQB the warning message appears.

As mentioned, standard Dreamweaver database connection methods work fine, but I'm really looking forward to using the query builder.

Thanks
Chris
Replied 19 Sep 2013 08:45:35
19 Sep 2013 08:45:35 Teodor Kuduschiev replied:
Can you please tell me what is the exact error message?
Replied 19 Sep 2013 08:54:48
19 Sep 2013 08:54:48 Chris Sanders replied:
Yes, its: "error loading database structure"
Replied 19 Sep 2013 09:18:24
19 Sep 2013 09:18:24 George Petrov replied:
Hi Chris,

There were no error during the creation of the Database connection? The test of it went all fine?

Greetings,
George
Replied 19 Sep 2013 10:22:50
19 Sep 2013 10:22:50 Chris Sanders replied:
Hi George,

That's the funny thing, the Test Connection button and and the Apply button of the Database Connection panel both return the "Database Connection OK" message - even if I put in the incorrect details (which I did for experimentation).

Cheers
Chris
Replied 19 Sep 2013 10:29:37
19 Sep 2013 10:29:37 George Petrov replied:
Hi Chris,

This is weird, probably that is the reason for the error.
Your PHP server is accepting somehow all kinds of MySQL connections ...

What part of the fields you are entering wrong on purpose?

Try the make good connection with the right credentials. Then on the Query Builder dialog, make sure you refresh the schema first by pressing the refresh Icon under the tables drop down.

If the connection is right you should see the table names from the database in the table drop down.

Greetings,
George
Replied 19 Sep 2013 10:41:27
19 Sep 2013 10:41:27 Chris Sanders replied:
Regards the incorrect details I just played with the mysql properties (database name, password).

I'm afraid, having restored the correct credentials, the 'refresh' button returns exactly the same error when I click it - 'error loading database structure!'.

Such a shame this, the query builder looks incredible, but I'm having no luck at all.
Replied 19 Sep 2013 10:59:10
19 Sep 2013 10:59:10 George Petrov replied:
Hi Chris,

Seems you have to delete the cache of the Database Connector manually.

You can locate it at
:
Windows:
C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\en_US\Configuration\Temp\dmxDatabaseConnector\Cache

Mac:
MacHD \ Users \ <username> \ Library \ Application Support \ Adobe \ Dreamweaver CC \ <language> \ Configuration \ Temp \ dmxDatabaseConnector \ Cache

just empty the folder and then restart the Query builder.

Greetings,
George
Replied 19 Sep 2013 11:24:14
19 Sep 2013 11:24:14 Chris Sanders replied:
Hi George,

Thank you and I so wish that had worked but I'm afraid I got the same result.

On returning to the folder created in the cache I did grab the following code from the text file (if it helps):

<br />
<b>Parse error</b>: parse error, unexpected '{' in <b>/home/6/9/b/3554/3554/public_html/dmxConnections/dmxDatabase.php</b> on line <b>32</b><br />

Cheers
Chris
Replied 19 Sep 2013 11:43:18
19 Sep 2013 11:43:18 George Petrov replied:
Hi Chris,

Yes this is really helpful!

Seems indeed a weird php error pops up.
Are you sure you have PHP 5.3 running? Do you have phpinfo somewhere?

try running this file directly:
dmxConnections/dmxDatabase.php

Should go without any parse errors...

-George
Replied 19 Sep 2013 12:00:45
19 Sep 2013 12:00:45 Chris Sanders replied:
SUCCESS!

OK, firstly, the cache clearing advice may well have worked, but for the fact the example I was trying DID NOT have php 5 (still 4). On trying the same advice with a server known to be running php 5.3 - what do you know? Works a treat.

Thank You!!
Replied 19 Sep 2013 12:06:32
19 Sep 2013 12:06:32 George Petrov replied:
Good to hear it is all solved our! Yes you do need PHP 5.2+ to have the Database Connector running.

Greetings,
George

Reply to this topic