mysql 报错 1290

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statemen
先执行一下
flush privileges;
在执行添加用户命令
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> grant all privileges on contentdb.* to ‘user’@’%’ identified by ‘password’;
Query OK, 0 rows affected (0.00 sec)

如果报错如下信息:
Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia. Please verify its path and try again
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

到/etc/yum.repo.s下面把packetxxxx.repo和redhat.repo两个文件删除掉,再启动


版权声明:本文为qq_36334687原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。