Home > Database > Mysql Tutorial > mysql 无lock tables权限 报Access denied for user when using_MySQL

mysql 无lock tables权限 报Access denied for user when using_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:43:56
Original
1213 people have browsed it

bitsCN.com 普通用户备份mysql 数据库报错
 
mysql 无lock tables权限 报Access denied for user 'dbuser'@'localhost' to database 'db' when using LOCK TABLES
 
主要原因是该用户无lock tables 该权限,处理办法:
 
1. 给该普通用户赋予lock tables 权限,建议是删除该用户,重新用mysql命令建
 
2. 加上--skip-lock-tables即可
 
mysqldump -udbuser -p dbname --skip-lock-tables > dbname.sql
 
 
3. 使用root 备份
 
摘自 依恋的专栏 bitsCN.com

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template