mysql
文章平均质量分 81
辛勤汗水@
17年毕业于黑龙江大学,自学运维知识,走上运维的道路,目前在无人驾驶公司担任运维工程师,感谢大家的支持,与大家共同进步
展开
-
The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement 报错解决引起报错原因:忘记mysql密码,在配置文件添加–skip-grant-tables,重启数据库之后,无法修改密码解决办法:flush privileges;然后修改密码就ok了!!!!!!!!!!!...原创 2020-10-12 14:05:12 · 1382 阅读 · 0 评论 -
关于mysql5.5版本以下数据库设置用户权限问题解决方案
关于mysql5.5版本以下数据库设置用户权限问题解决方案mysql5.5版本以下数据库设置用户权限的时候是不生效的除非设置的是所有权限grant all privileges on . to root@’%’ identified by “password”;flush privileges;设置部分权限的时候需要先执行SET @@global.init_connect=’’;剩下的就正常就可以了create user ‘test’@’%’ identified by ‘test001原创 2020-09-08 19:13:48 · 867 阅读 · 0 评论 -
mysql数据出现Waiting for table metadata lock问题以及解决办法
mysql数据出现Waiting for table metadata lock问题以及解决办法问题:现象为锁表造成的,如果核心表出现这种问题,会造成灾难性的后果解决办法:show processlist;之后kill 掉 DDL所在的session.select * from information_schema.innodb_trx\Gkill 掉所有的sid(trx_mysql_thread_id)...原创 2020-09-08 18:54:57 · 841 阅读 · 0 评论 -
centos7 安装MYSQL5.7
创建mysql文件,拉取安装包mkdir -d /usr/local/mysqlcd /usr/local/mysql链接:https://pan.baidu.com/s/1O38HdTsuc9espuxmI1COpw 提取码:wgyw链接:https://pan.baidu.com/s/1Ym0j-zSdtVUz5hQoVkZHNQ 提取码:vfkmtar -xvf mysql-5.7.18-1.el6.x86_64.rpm-bundle.tar -C /usr/local/mysql/原创 2020-06-19 18:36:40 · 599 阅读 · 0 评论