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.
Related
I try to change a ddev database password for a single project.
I need to check sign-escaping for a project, because I want to know how and if that works.
How can I change a database password in a single ddev-project?
I use
Docker 3.5.1 (66090)
ddev 1.17.2
macOS Catalina 10.15.7
I got answers in slack, thanks for that, but I run into those errors, if I do so:
ddev mysql
MariaDB [db]> GRANT ALL PRIVILEGES ON *.* TO 'db'#'%';
ERROR 1045 (28000): Access denied for user 'db'#'localhost' (using password: YES)
MariaDB [db]> ALTER USER 'db'#'localhost' IDENTIFIED BY 'test/test:test#test?test#test&test"';
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
MariaDB [db]> ALTER USER 'db'#'db' IDENTIFIED BY 'test/test:test#test?test#test&test"';
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
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.
Having trouble logging in and accessing my database. Currently using Windows 10 EasyPHP 13.1
I tried logging into my database. Using
"C:\Program Files (x86)\EasyPHP 13.1\binaries\mysql\bin\mysql.exe" -u jim -p;
An error message appeared saying
WARNING: Using a password on the command line interface can be insecure
ERROR 1045 (28000): Access Denied for user 'jim'#'localhost' (using password: YES).
Then I tried
"C:\Program Files (x86)\EasyPHP 13.1\binaries\mysql\bin\mysql.exe" -u jim;
This logged me in. However, I still cannot access the database.
Whenever I type the following command.
USE publications;
I get the error
ERROR 1044 (42000) : Access denied for user ' '#localhost to database 'publications'
I have even tried the following
GRANT ALL ON publications.* TO 'jim' IDENTIFIED BY 'mypasswd';
and
GRANT ALL ON publications.* TO 'jim'#'localhost' IDENTIFIED BY 'mypasswd';
and
GRANT ALL PRIVILEGES ON *.* TO 'jim'#'localhost' WITH GRANT OPTION;
as recommended at mysql> use mysql; but ... ERROR 1044 (42000): Access denied for user '' # 'localhost' to database 'mysql'
Even Logging in as a -u root won't let me access the database. I'm at a loss as to what the problem might be. Any ideas?
Try this:
"C:\Program Files (x86)\EasyPHP 13.1\binaries\mysql\bin\mysql.exe" -ujim
Notice i remove spaces between -u and jim
Try this:
GRANT ALL ON *.* TO 'jim'#'%' IDENTIFIED BY 'mypasswd';
FLUSH PRIVILEGES;
I have a mysql database (version 5.5), and I am trying to add a new user.
But I don't have the privileges to create it.If I try to show the list of all users:
select * from mysql.user;
It gives this error:
ERROR 1142 (42000): SELECT command denied to user ''#'localhost' for table 'user
It seems like I am not able to do anything.How to grant the privileges for a user without using the grant command?
There's a way? I also tried this:
CREATE USER 'ramy'#'localhost' IDENTIFIED BY 'pass';
It says:
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
I don't see any way to handle privileges, mysql show have a method to handle privileges for who have newly created a database.That's a vicious circle.
You need to login as the 'root' account
See this if you don't know the root password
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
I am logged into mysql as the root user and trying to setup MYSQL Replication. I have already setup my database as a Master but when I try the 'show master status;' command its saying:
ERROR 1227 (42000): Access denied; you need the SUPER,REPLICATION CLIENT privile
ge for this operation
When I try and add these privileges to the root user I am getting:
ERROR 1045 (28000): Access denied for user 'root'#'%' (using password: YES)
Im lost as to what I can do at this point.
Any help would be greatly appreciated,
Thanks in advance!
It might be necessary that you have to be on localhost, not on a remote machine.