Re: More DB_DataObject problems...
| From: | foxmask | Date: | Sat, 26 Mar 2005 18:23:24 +0000 |
| Subject: | Re: More DB_DataObject problems... | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18361@lists.php.net to get a copy of this message | ||
i think, we have to use table_* when we use multiple base that own the same table name, if not you can just enter :
[DB_DataObject]
; PEAR::DB DSN
database_hardware = mysql://xxxxxx:xxxxxx@localhost/hardware
database_userdb = mysql://xxxxxx:xxxxxx@localhost/userdb
database_supportdb = mysql://xxxxxx:xxxxxx@localhost/supportdb
schema_location = /srv/www/htdocs/prj/DataObject
class_location = /srv/www/htdocs/prj/DataObject
require_prefix = DataObjects/
class_prefix = DataObjects_
proxy = FULL
dont_die = false
regards.
Ian a écrit :
I've tried it in the following two ways........... [DB_DataObject] ; PEAR::DB DSN--database_hardware =mysql://xxxxxx:xxxxxx@localhost/hardware table_hardware_catagory = hardware sequence_hardware_catagory = hw_cat_idtable_hardware_index = hardwaresequence_hardware_index = hardware_index_idtable_hardware_models = hardwaresequence_hardware_models = hardware_model_id table_hardware_manufacturer = hardware sequence_hardware_manufacturer = manufacturer_id database_userdb = mysql://xxxxxx:xxxxxx@localhost/userdb table_users = userdb sequence_users = user_id table_user_locations = userdb sequence_user_locations = user_location_id table_locations = userdb sequence_location_id = location_id table_assigned_hardware = userdb sequence_assigned_hardware = assigned_hardware_id database_supportdb = mysql://xxxxxx:xxxxxx@localhost/supportdb table_user_issues = supportdb sequence_user_issues = user_issue_id table_support_type = supportdb sequence_support_type = support_type_id table_support_index = supportdb sequence_support_index = support_index table_module_index = supportdb sequence_module_index = modules_id table_issue_index = supportdb sequence_issue_index = issue_log_id schema_location = /srv/www/htdocs/prj/DataObject class_location = /srv/www/htdocs/prj/DataObject require_prefix = DataObjects/class_prefix = DataObjects_proxy = FULL dont_die = false =================================================================== And this way.......... [DB_DataObject] ; PEAR::DB DSNdatabase_hardware =mysql://xxxxxx:xxxxxx@localhost/hardware database_userdb = mysql://xxxxxx:xxxxxx@localhost/userdb database_supportdb = mysql://xxxxxx:xxxxxx@localhost/supportdb table_hardware_catagory = hardware sequence_hardware_catagory = hw_cat_idtable_hardware_index = hardwaresequence_hardware_index = hardware_index_idtable_hardware_models = hardwaresequence_hardware_models = hardware_model_id table_hardware_manufacturer = hardware sequence_hardware_manufacturer = manufacturer_id table_users = userdb sequence_users = user_id table_user_locations = userdb sequence_user_locations = user_location_id table_locations = userdb sequence_location_id = location_id table_assigned_hardware = userdb sequence_assigned_hardware = assigned_hardware_id table_user_issues = supportdb sequence_user_issues = user_issue_id table_support_type = supportdb sequence_support_type = support_type_id table_support_index = supportdb sequence_support_index = support_index table_module_index = supportdb sequence_module_index = modules_id table_issue_index = supportdb sequence_issue_index = issue_log_id schema_location = /srv/www/htdocs/prj/DataObject class_location = /srv/www/htdocs/prj/DataObject require_prefix = DataObjects/class_prefix = DataObjects_proxy = FULL (sorry about the mess!) -----Original Message----- From: foxmask [mailto:foxmask@gmail.com] Sent: 26 March 2005 18:05 To: Ian Subject: Re: [PEAR] More DB_DataObject problems... what does the ini file look like ? On Sat, 26 Mar 2005 18:05:03 -0000, Ian <zen54565@zen.co.uk> wrote:This is the first time I've ever tried to use it so apologies for any foolish mistakes. I'm currently trying to run createTables.php with my ini file, the script appears to execute ok but then I get the following. #!/usr/bin/php -q DB_DataObject_Generator: 0: CREATING FOR hardware [db_error: message="DB Error: insufficient data supplied" code=-20 mode=return level=notice prefix="" info="SHOW TABLES [nativecode=0 **]"] The database isn't actually populated with any data (I need to sort stuff out to do that once I have DataObject running!!!) I did put some dummydatain though just in case and I got exactly the same problem. Any help is much appreciated!! Thanks, Ian. -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php