patrickkasie
Verified User
Dear forum,
I'm aware that this is probably in the wrong section and should be among bugs, but I've got a problem and no good question to ask, so I'll explain the problem in short. I believe this could be a bug. Either with DA or with AlmaLinux, I hope someone with a deeper knowledge of either can tell me here.
When suspending, unsuspending a user or attempting to create/edit databases within the user, we're getting the following error:
Unable to set password for db useramas_db : View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
Unable to set password for db useramas : View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
Full situation below.
We've got 2 VPS'es right now. An old one that has CentOS 8, and a new one that has AlmaLinux 8.5.
After completely installing AlmaLinux, I've moved a user from the old VPS to the new VPS.
When trying to unsuspend the user, we got the aforementioned error.
When Googling for the error, the following suggestions showed up for me:
I do not have enough knowledge to take out the neccessary information from the above sources, but what I do understand is that I have to set the MariaDB version to 10.3 in order to get it to work again.
However, the old VPS is using MariaDB 10.4, and the new one is using 10.6. So this should not be a problem. So I had decided to set the MDB versions to the same version: 10.4
After setting the new VPS' MDB to 10.4, it spewed out the following information:
Now I am not completely unable to make changes to a user, but the MDB service is down. It's now on the same version as the old server is. I needhelp information because I do not have enough knowledge on what is happening here, so I've reverted the version from 10.4 back to 10.6. This went without any problems whatsoever.
With no change at all, I could update the user (suspend, unsuspend, create and edit a db user). I did have to delete the existing user and restore it before the whole thing started to work again. I should have probably made a screenshot of this error too, as I could not access the domain userdomain.vps11.dhost.nl (DNS zone A record from [userdomain.vps11.dhost.nl -> 93.119.13.214] (vps14.dhost.nl) to make this userdomain visible while using the old link, but this is completely unrelated to the problem at hand)
I'm aware that everything I've just explained looks like a mess, but these are all the steps that I have executed in order to make the best out of the whole thing. Hit me up with any questions you may have.
I'm aware that this is probably in the wrong section and should be among bugs, but I've got a problem and no good question to ask, so I'll explain the problem in short. I believe this could be a bug. Either with DA or with AlmaLinux, I hope someone with a deeper knowledge of either can tell me here.
When suspending, unsuspending a user or attempting to create/edit databases within the user, we're getting the following error:
Unable to set password for db useramas_db : View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
Unable to set password for db useramas : View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
Full situation below.
We've got 2 VPS'es right now. An old one that has CentOS 8, and a new one that has AlmaLinux 8.5.
After completely installing AlmaLinux, I've moved a user from the old VPS to the new VPS.
When trying to unsuspend the user, we got the aforementioned error.
When Googling for the error, the following suggestions showed up for me:
ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
I have tried query but there is an error. Does anybody solved the error? MariaDB [mysql]> UPDATE user SET Host='%' WHERE User='root'; ERROR 1356 (HY000): View 'mysql.user' references invalid t...
stackoverflow.com
ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them - Blog for Database and System Administrators
Starting with the MariaDB-10.4+ the mysql.user is a view rather than a table. Read the post for to resolve the Error 1356.
dbsysupgrade.com
However, the old VPS is using MariaDB 10.4, and the new one is using 10.6. So this should not be a problem. So I had decided to set the MDB versions to the same version: 10.4
After setting the new VPS' MDB to 10.4, it spewed out the following information:
Now I am not completely unable to make changes to a user, but the MDB service is down. It's now on the same version as the old server is. I need
With no change at all, I could update the user (suspend, unsuspend, create and edit a db user). I did have to delete the existing user and restore it before the whole thing started to work again. I should have probably made a screenshot of this error too, as I could not access the domain userdomain.vps11.dhost.nl (DNS zone A record from [userdomain.vps11.dhost.nl -> 93.119.13.214] (vps14.dhost.nl) to make this userdomain visible while using the old link, but this is completely unrelated to the problem at hand)
I'm aware that everything I've just explained looks like a mess, but these are all the steps that I have executed in order to make the best out of the whole thing. Hit me up with any questions you may have.