Knowledge Base Article

I cannot create views in MySQL

Regular MySQL users do not have privileges to create views in MySQL. If you try to execute CREATE VIEW with a regular user, you will receive the following error message:

 

#1142 - CREATE VIEW command denied to user 'user'@'localhost' for table 'table'

 

If you want to create views in your databases, you should do it with your main cPanel username. It has the necessary privileges to execute CREATE VIEW on the server.



Rating

Please indicate if this article was helpful for you.

rating :  4.3 from 5
views :  1403
votes :  11

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!