Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New database doesn't appear in Database Browser #1

Open
FerCampos opened this issue Jun 27, 2013 · 4 comments
Open

New database doesn't appear in Database Browser #1

FerCampos opened this issue Jun 27, 2013 · 4 comments

Comments

@FerCampos
Copy link

Hi
I would like to add a new scientific database to my daiquiri instance. I have edited my init.php file and I have added the name of the new database (curiehz_Planck1):
'user' => array(
'dbname' => 'daiquiri_curiehz_user_%',
'additional' => array('curiehzAHF','curiehz_Planck1'),

(curiehzAHF is the old database name, and it's working fine with this one)

I have also replicated the data.databases config for the new one:
'data' => array(
'databases' => array(
array(
'name' => 'curiehzAHF',
'description' => 'CurieHZ box AHF catalog',
'adapter' => 'user',
'publication_role_id' => '1',
'publication_select' => '1',
'publication_update' => '0',
'publication_insert' => '0',
'publication_show' => '0',
'autofill' => '1',
),
array(
'name' => 'curiehz_Planck1',
'description' => 'CurieHZ box with Planck1 cosmology',
'adapter' => 'user',
'publication_role_id' => '1',
'publication_select' => '1',
'publication_update' => '0',
'publication_insert' => '0',
'publication_show' => '0',
'autofill' => '1',
),

    )

I have executed the new SQL user permissions to allow the access to the new database (executing in a mysql prompt the output of ./init.php -u).

I have tried, with my init.php script, to sync (-s) and re-init (-i), but the new database doesn't appear in the database browser. I have even re-generated the application.ini file (./init.php -a).

Am I missing something??

I have noticed that ./init.php -i doesn't take almost any time to execute, and I think that the autofill option should last a bit: the new database has 2-3 hundreds of tables.

Thank you very much in advance.
Regards
Fer

@ghost ghost assigned jochenklar Jul 2, 2013
@jochenklar
Copy link
Member

Hi,

./init.php -s only works it the table is empty, which in your case is not the case.

you need to go to /data/databases/create and create the database entry using the form.

@FerCampos
Copy link
Author

Thanks @jochenklar!!
I have tried that way and looks like the auto-fill option takes so long that triggers some kind of PHP?? timeout and not all the tables from the scientific database appear in the Database Browser. Are there any way to do it with the init.php script??
I remember that @adrpar introduced a warning message due to the long time that the auto-filling can take, so maybe it could be better to add new and big databases from the script, but I don't know how to do it without starting from scratch and deleting the users databases...

Cheers
Fer

@adrpar adrpar reopened this Jul 5, 2013
@adrpar
Copy link
Contributor

adrpar commented Jul 5, 2013

Hi @FerCampos!

I could remove an unnecessary call to the database in the meta creation routine. Could you please pull the newest version and see if this mad any improvement? Further I try to set the php execution time to larger values. However this can only be done if PHP does not run in save mode (so it could be, that this does not work). Then you would need to set the value manually in php.ini to larger values.

Let me know if there's an improvement!

Cheers,

Adrian

@FerCampos
Copy link
Author

Incrementing timeout limit at php.ini didn't help... :(

@jochenklar jochenklar removed their assignment Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants