Database management package
Permalink
Created a package to manage the c5 mysql database...
Extract to "packages" and go to "Add functionality" and select "SQL Buddy".
Have fun!
Extract to "packages" and go to "Add functionality" and select "SQL Buddy".
Have fun!
You probably have to add these lines to the controller (install method)
it adds sqlbuddy to the dashboard and automatically connects to the c5 database. I've got a few projects where I often have to access the database and this is nice because I only need the c5 user, one password less to remember..
Loader::model('collection_types'); Loader::model('single_page');
it adds sqlbuddy to the dashboard and automatically connects to the c5 database. I've got a few projects where I often have to access the database and this is nice because I only need the c5 user, one password less to remember..
Awesome Remo! :)
Do you think it might be useful to have in the marketplace?
I would have to do some tests, not sure if the iframe resize method I've used works well. It's ugly for sure (:
Anyone fancy to create a nice database icon with rounded corners?
I would have to do some tests, not sure if the iframe resize method I've used works well. It's ugly for sure (:
Anyone fancy to create a nice database icon with rounded corners?
I think it is... I always have a phpmyadmin window or tab open when i do development..
About the icon, I found this, (check attachments) onhttp://wefunction.com/2008/07/function-free-icon-set/... . Will that do? its free ;)
About the icon, I found this, (check attachments) onhttp://wefunction.com/2008/07/function-free-icon-set/... . Will that do? its free ;)
okay, submitted to the marketplace...
thanks
thanks
Cooooooollll... thanks man
Pretty useful Remo!!!
Thaaaaanks :)
Thaaaaanks :)
very nice!
pretty sweet. The zipped version above is missing the Loader::model('single_page') which Remo mentioned below.
This is a pretty cool package, great idea :)
-Scott
This is a pretty cool package, great idea :)
-Scott
Thanks Scott! I submitted it, but it doesn't perform well on Andrew's server and he wanted me to restrict it to a single database.. This is unfortunately not that easy without touching sql buddy (I'd like to keep sql buddy as it is to allow easy updates).
I'm probably going to publish it somewhere else but I wanted to wait for Andrew's feedback first.
I'm probably going to publish it somewhere else but I wanted to wait for Andrew's feedback first.
Hi Remo,
This package sounds Ideal for my purposes and I have installed it after adding in the code you mentioned above in the top level controller.php like so:
but when I go to the dashboard and click on the left hand nav for sqlbuddy I get the following error:
500 Internal Server Error
The page cannot be displayed.
Return to home page.
I know this isn't an official release and I'm being rather cheeky asking for support on installing it but is there somehting obvious I haven't done?
cheers
Paul
This package sounds Ideal for my purposes and I have installed it after adding in the code you mentioned above in the top level controller.php like so:
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); class RemoSqlbuddyPackage extends Package { protected $pkgHandle = 'remo_sqlbuddy'; protected $appVersionRequired = '5.3.3'; protected $pkgVersion = '1.0'; public function getPackageDescription() { return t("Installs the SQL Buddy package."); } public function getPackageName() { return t("SQL Buddy"); } public function install() { $pkg = parent::install(); // install pages
Viewing 15 lines of 22 lines. View entire code block.
but when I go to the dashboard and click on the left hand nav for sqlbuddy I get the following error:
500 Internal Server Error
The page cannot be displayed.
Return to home page.
I know this isn't an official release and I'm being rather cheeky asking for support on installing it but is there somehting obvious I haven't done?
cheers
Paul
check your log files
excuse my ignorance but where would these reside?
;-(
;-(
It's your server, not mine!
Often in /var/log/apache2 .. but there are tons of situations where you can't find them there
Often in /var/log/apache2 .. but there are tons of situations where you can't find them there
Check your server log Paul.
I'd guess it's the file permission issue. Try to change from 0777 to 0755 or even 0644 if you just installed the package.
I'd guess it's the file permission issue. Try to change from 0777 to 0755 or even 0644 if you just installed the package.
Fatal error: Class 'SinglePage' not found in /mounted-storage/home115c/sub007/sc66353-ZWZK/c54/packages/remo_sqlbuddy/controller.php on line 23