Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: How could I connect a database to another drive than C:\lianja\...

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    264

    How could I connect a database to another drive than C:\lianja\...

    For temporary (to less) space reasons:
    Could I connect a database to another drive than C:\lianja\data\ and C:\Lianja\cloudserver\tenants\public\data\

    And how?

    Thanks Georg

  2. #2

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    264
    Thank you, Yvonne!
    I know where the directories for the cloud server are entered.
    However, is it possible to change the data directory for a single application?

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Georg

    No the data directories in web apps are shared across all Apps.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    264
    Thank you, Barry!
    Last question:
    How could I change the datadir of the App Builder?
    Does it make sense to put a Lianja.setAttr("datadir",....) anywhere?

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Georg

    You change the location of the data directory in the app inspector / app settings / data directory. This will persist after closing and reopening the app builder.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  7. #7
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    264
    You change the location of the data directory in the app inspector / app settings / data directory. This will persist after closing and reopening the app builder.
    Unfortunately that does not work!

    My proceed:
    I copy the database xyz for the app abc
    from
    c:\lianja\data\ e.g. to e:\lianja\data\
    and enter that into the app attributes.

    The app says => the database is not found.

    Also, the database, which is now located at e:\lianja\data\xyz, cannot be displayed in the data work space.

    The following in the console work space does also not work:
    > cd e:\lianja\data\ or e:\lianja\data\xyz
    > open database xyz
    => The database is not found.
    However, the tables can be displayed after use table.

  8. #8
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    Hi Georg,

    Did you click the green tick after changing the Data Directory App Setting?

    https://www.lianja.com/doc/index.php...ing_Attributes

    What does this return?

    Code:
    ? Lianja.datadir
    Regards,

    Yvonne

  9. #9
    Senior Member
    Join Date
    Feb 2012
    Location
    Germany, near Jena and Weimar
    Posts
    264
    Very strange but not it is ok!
    I will observe it further...
    The console workspace: Is it necessary to select the new data directory?

    I didn't use the "app inspector" but the cog for "app settings".

    I had a botton with for
    Lianja.getAttr("datadir");
    in my app:
    Result for datadir and appdir was ok everytime... althougt the database wasn't found.

    Thanks you!

  10. #10
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,842
    Can you attach a screenshot with the App setting and the Console result of

    Code:
    ? Lianja.datadir
    Regards,


    Yvonne

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us