On 02-11-2022 17:48, 'Hugo Larson' via firebird-support wrote:
> I create a user (FB4) with isql
> SQL> CREATE USER newuser PASSWORD '123456' grant admin role;
> SQL> GRANT RDB$ADMIN TO newuser;
>
> Now I backup a FB25 a database and restore it with FB4.
>
> CONNECT DB.FDB USER 'newuser' password '123456' role 'rdb@admin';
1) You specified the role rdb@admin, not rdb$admin (though I guess this
is a typo in your question)
2) The RDB$ADMIN role is *per database*
Following your own description, you
1) With FB 4.0, created a user with RDB$ADMIN in the security database,
2) granted that user RDB$ADMIN in whichever database you were connected
to at that time,
and then you
3) restored a different database from 2.5 to 4.0
It sounds like the database you just restored in step 3 doesn't have
that user with role RDB$ADMIN.
You need to explicitly grant this user RDB$ADMIN in that database.
Mark
--
Mark Rotteveel