title: Error trying to import dump form mysql 5.7 into 8.0.23
body: <p>I am trying to import a dump that I created with <code>mysqldump</code> from <code>mysql:5.7</code>, into one instance of <code>mysql:8.0.23</code></p>
  <p>trying to import the .sql dump, gives me error</p>
  <pre><code>dest_host=myrds.eu-central-1.rds.amazonaws.com
  dest_username=theuser
  dest_password=thepasword
  dest_database=cats
  filename=&quot;2021-05-07_15_21_13.sql&quot;
  mysql -h ${dest_host} -u ${dest_username} -p${dest_password} ${dest_database} &lt; &quot;$filename&quot;
  
  mysql: [Warning] Using a password on the command line interface can be insecure.
  ERROR 1227 (42000) at line 18: Access denied; you need (at least one of) the SUPER, SYSTEM_VARIABLES_ADMIN or SESSION_VARIABLES_ADMIN privilege(s) for this operation
  </code></pre>
  <p>I am using the master user in the dest_* variables!
  The user created to manage the AWS RDS MySQL instance that is supposed to have all privileges</p>
  <p>(of course that is the user for version 8.0.23. I dumped fine the .sql from version 5.7 with the master user of v5.7 db)</p>
  <p>I really need help here how to import the dump ?</p>
  <p>And by the way error says line 18 and I have no idea what that line 18 is!!!</p>
  <p>If it refers to the dump file initial lines until 18 are:</p>
  <pre><code>-- MySQL dump 10.13  Distrib 5.7.34, for Linux (x86_64)
  --
  -- Host: sosecretolddb.eu-central-1.rds.amazonaws.com    Database: cats
  -- ------------------------------------------------------
  -- Server version   5.7.26-log
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8 */;
  /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  /*!40103 SET TIME_ZONE='+00:00' */;
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  SET @MYSQLDUMP_TEMP_LOG_BIN = @@SESSION.SQL_LOG_BIN;
  SET @@SESSION.SQL_LOG_BIN= 0;
  
  --
  -- GTID state at the beginning of the backup 
  --
  
  SET @@GLOBAL.GTID_PURGED='';
  
  --
  -- Table structure for table `activity_types`
  --
  
  DROP TABLE IF EXISTS `activity_types`;
  # and so on 1.3gb of data
  </code></pre>