Super User Privilege to MySQL user - mysql

I am trying to give super user privilege to MySQL user by executing below command
GRANT SUPER ON *.* TO indiaski_app#'localhost' IDENTIFIED BY 'appsocial'
But I am getting following error -
1045 - Access denied for user 'indiaskinexam'#'localhost' (using password: YES)

You don't have access to database with the user 'indiaskinexam'. Your password is wrong, that means you can't execute SQL-statements.

Related

Database permits main user 'in' but cannot 'see' any schemas

I'm on RDS and this is the situation:
Unable to progress with my RDS instance.
RDS instance master user is 'admin'
Can connect up to the instance using the admin user (MySQL WB or commandLine):
C:\Users\xx>mysql -u 'admin' -p --host=md-blahblah-db-instance.blahblah.ap-southeast-rds.amazonaws.com
Enter password: ********
Welcome to the MySQL monitor. etc etc
Type '\c' to clear the current input statement.
Now I'm in but (on MySQL WB or commandLine) cannot 'see' schema:
mysql> use uxxx
ERROR 1044 (42000): Access denied for user 'admin'#'fxxxx.lnk.telstra.net' to database 'uxxx'
mysql> GRANT ALL PRIVILEGES ON umb.* TO 'admin'#'%' WITH GRANT OPTION;
ERROR 1044 (42000): Access denied for user 'admin'#'fxxxx.lnk.telstra.net' to database 'uxxx'
mysql> GRANT ALL PRIVILEGES ON umb.* TO 'admin'#'%' IDENTIFIED BY 'somepass';
ERROR 1044 (42000): Access denied for user 'admin'#'fxxxx.lnk.telstra.net' to database 'uxxx'
mysql> CREATE USER test identified by 'password';
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
mysql> flush privileges;
ERROR 1227 (42000): Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
Have tried using ideas from the accepted answer at User cannot see databases in mysql workbench
but can't progress as can't create another user.
MySQL ERROR 1045 (28000): Access denied for user 'bill'#'localhost' (using password: YES) suggests that I have could possibly have another user named admin#'fxxxx.lnk.telstra.net', hence this problem.
Quoting:
Hence, such an anonymous user would "mask" any other user like '[any_username]'#'%' when connecting from localhost.
'bill'#'localhost' does match 'bill'#'%', but would match (e.g.) ''#'localhost' beforehand.
The recommended solution is to drop this anonymous user (this is usually a good thing to do anyways).
Reluctant to start again as a lot of CloudFormation stacks are associated with this database.
Any ideas? Appreciate all help.

Access denied for user 'user1'#'localhost' goddady

does anybody know in which table godaddy store the users table ?
I have a database created using database wizard and I have added a user using the mysql database wizard to the database. But I still get the error;
Connection failed: Access denied for user 'user1'#'localhost' (using password: YES)
I tried this:
GRANT ALL PRIVILEGES ON *.* TO 'user1'#'%'; FLUSH PRIVILEGES;
But I keep getting;
1045 - Access denied for user 'cpses_odldzcvpqv'#'localhost' (using password: YES)
It must have something to do with the USER_PRIVILEGES table in information_shema. when I type
SELECT * FROM `USER_PRIVILEGES`
IS_GRANTABLE is set to NO.
On unix based systems, mysql treats localhost and tcp/ip separately. If you wish to give access to localhost, you must also give an explicit permission to localhost along with %.
GRANT ALL PRIVILEGES ON *.* TO 'user1'#'localhost' identified by '<password>';
or you can connect via 127.0.0.1 instead of localhost. That'll work.
mysql -u user1 -p<password> --host 127.0.0.1

Receiving error: 'Access denied for user 'root'#'localhost' (using password: YES)' when trying to access localhost

I'm attempting to access localhost of a repository I just pulled from Github, and keep getting the error below. I'm using Windows 8.1. I'm one of two developers accessing this repository.
Mysql2::Error
Access denied for user 'root'#'localhost' (using password: YES)
Try GRANT ALL PRIVILEGES ON *.* TO 'root'#'localhost' WITH GRANT OPTION; which would grant your root user privileges to that database. Alternatively you could set the first asterisk to the name of the database, which is probably safer.

Can't get MySQL to recognize host names?

I'm running GRANT ALL PRIVILEGES ON *.* TO 'root'#'myHostname'; and on that hostname and running mysql --host=otherServer --user=root --password and it keeps saying access denied.
ERROR 1045 (28000): Access denied for user 'root'#'myHostname' (using password: YES)
Does MySQL not recognize hostnames?
In MySQL, each account is the combination of a user and the hostname, so the password on this new account is not necessarily the same as that of other root accounts.
Ensure you've created a password on the new account by adding an IDENTIFIED BY clause:
GRANT ALL PRIVILEGES ON *.* TO 'root'#'myHostname'
IDENTIFIED BY 'new_password';
If the account already has a password, the IDENTIFIED BY clause overwrites that password.

MySQL - granting permission

I don't get how to give a user permissions in MySQL.
I am using MySQL RDS on aws. I am creating a user and need access to the reports database. I created a hash password and ran the below.
SELECT PASSWORD('Test123');
GRANT ALL PRIVILEGES ON reports.* TO 'central'#'localhost'
IDENTIFIED BY PASSWORD '*D1AD25EDF929F55FBFF703358EC527';
mysql -u central -pTest123 -h test.com
ERROR 1045 (28000): Access denied for user 'central'#'112.198.130.xxx' (using password: YES)
Why? What did I do wrong?
You granted permission to 'central'#'localhost' but are attempting to authenticate as 'central'#'112.198.130.xxx'. Either connect from localhost, or grant permission to the appropriate hosts.