Skip to main content

176 posts tagged with "Database"

Databases, Data Modeling, and Data Access

View All Tags

Fixed: "ERROR 1142 (42000): SELECT command denied to user for table 'data_locks'" in MySQL

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

Looking at MySQL's locks failed with ERROR 1142 (42000): SELECT command denied to user 'inventory_app'@'localhost' for table 'data_locks'. The table's fine, and so is the account: it just has no rights outside its own database. Here's the fix, on a separate account, so the application's account stays as it is.