I suppose you refer to https://www.akeeba.com/support/site-restoration/36772-restoring-database-access-denied-you-need-at-least-one-of-the-super-privilege-s-for-this-operation.html which was closed automatically because the client never replied to our question.
The error message comes from MySQL itself. I would like to know when it happens, though. So I need to ask you a few questions.
1. Which driver are you using: MySQLi or PDOMySQL? Please specify.
2. Please include a screenshot with the entire page of the restoration script. I need to know if it happens executing a SQL statement creating a procedure, function or trigger; or if it happens when we connect to the database server.
3. Are you using MySQL or MariaDB? What is the exact version? You may find that information in your hosting control panel. Otherwise please do ask your host.
The reason I am asking these questions is that the error message you get occurs in two separate circumstances. One is if we try to use the SET command to set a MySQL session variable but the user is not allowed to do that and the other one if you are executing a create statement for a procedure, function or trigger with a definer. The latter shouldn't happen since we remove the definers when dumping the database; it also wouldn't depend on the PHP version. I do leave a very small probability of a potential issue in an edge case we haven't seen before, that's why I am not discounting this outright. The former, however, can happen and it might be PHP version specific since PHP database drivers may also execute their own SQL statements when connecting to a database.
Having the answers to my questions would let me understand what is going on. I will have to see if it can be reproduced and then see if it can be fixed. I have a suspicion this happens only with the PDOMySQL driver and switching to MySQLi might fix it. But let's not get ahead of ourselves.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!