FIX: MySQL – SELECT Command Denied To User

The error SELECT command denied to user ‘user’@’host’ is often caused when the currently connected MySQL User does not have a SELECT grant to the targeted Database. This could be easily fixed on a Cloud Solutions or VPS hosting or Dedicated Server hosting:

FIX: MySQL – SELECT Command Denied To User

Depending on the hosting plan you use, you can follow the guidelines and fix this issue in less than a minute.

Shared Hosting:

1. Login to your cPanel and click on the MySQL® Databases tool which is located under the Databases section

2. Add the user you wish to grant with SELECT privileges to the database in question and make sure to provide the user with All Privileges.

 

VPS / Dedicated Server without WHM / cPanel:

Login via SSH as the root user and type the following:

mysql

GRANT SELECT ON database_name.* TO 'user'@'localhost';
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

What is php.ini?

Php.ini is one of the essential configuration files in PHP. When PHP starts, this is the file it...

Do you have any setup or hidden fees?

UniqueVPS does not charge any additional or hidden fees. All web hosting solutions, extra...

How many subdomains can I create with UniqueVPS?

You are free to create as many subdomains as you wish and install different site-building...

What is a subdomain?

A subdomain is a domain name that is part of a main domain. It might be a separate website with...

How to access the phpPgAdmin to manage my PostgreSQL?

Accessing phpPgAdmin is very straightforward. It is neatly located in every customers’ cPanel but...

Powered by WHMCompleteSolution