[GH-ISSUE #139] cant use another database name #108

Closed
opened 2026-02-26 09:35:57 +03:00 by kerem · 2 comments
Owner

Originally created by @radum706 on GitHub (May 30, 2015).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/139

hello. i just installed vimbadmin on my server using other name for database (mysql) than vimbadmin, so i got an error installing database. it was creating only first table (domain_admins) and that was all. i used even the fix for that, but i did got same result. after renaming my db as vimbadmin and redo install db step, i managed to install it. tested and worked well. i tried renaming the database to something els, changing settings and i got back to same error:

File
/var/www/vimbadmin/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php
Line
53
Message
An exception occurred while executing 'SELECT COUNT(a0_.id) AS sclr_0 FROM vimbadmin.admin a0_': SQLSTATE[42S02]: Base table or view not found: 1146 Table 'vimbadmin.admin' doesn't exist
Code
0
i tough it was a permission thing or something but after looking closely to that error i saw that it was searching for admin table in vimbadmin database. so, somewhere your script it's not using configured db name (from config file, ofc) but it go's back to vimbadmin.

P.S.: great project, thank you!

Originally created by @radum706 on GitHub (May 30, 2015). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/139 hello. i just installed vimbadmin on my server using other name for database (mysql) than vimbadmin, so i got an error installing database. it was creating only first table (domain_admins) and that was all. i used even the fix for that, but i did got same result. after renaming my db as vimbadmin and redo install db step, i managed to install it. tested and worked well. i tried renaming the database to something els, changing settings and i got back to same error: File /var/www/vimbadmin/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php Line 53 Message An exception occurred while executing 'SELECT COUNT(a0_.id) AS sclr_0 FROM vimbadmin.admin a0_': SQLSTATE[42S02]: Base table or view not found: 1146 Table 'vimbadmin.admin' doesn't exist Code 0 i tough it was a permission thing or something but after looking closely to that error i saw that it was searching for admin table in vimbadmin database. so, somewhere your script it's not using configured db name (from config file, ofc) but it go's back to vimbadmin. P.S.: great project, thank you!
kerem closed this issue 2026-02-26 09:35:57 +03:00
Author
Owner

@mfechner commented on GitHub (May 31, 2015):

If you like you can try my fork, there is this bug fixed and some additional features are added:
https://github.com/idefix6/ViMbAdmin

<!-- gh-comment-id:107156131 --> @mfechner commented on GitHub (May 31, 2015): If you like you can try my fork, there is this bug fixed and some additional features are added: https://github.com/idefix6/ViMbAdmin
Author
Owner

@barryo commented on GitHub (May 31, 2015):

Just fixed with a new version tagged - 3.0.12.

Thanks!

<!-- gh-comment-id:107173458 --> @barryo commented on GitHub (May 31, 2015): Just fixed with a new version tagged - 3.0.12. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#108
No description provided.