I have a online server with phpmyadmin. i want to use events, but i can't.
Ok, I had the same problem and I just fixed it. Try granting root permissions explicitly for the database you are using.
GRANT ALL PRIVILEGES ON ${database}.* TO 'root'#'localhost' IDENTIFIED BY '${pass}';
Related
I am trying to run the following command in MySQL as the root user:
set global log_bin_trust_function_creators=1;
However, this gives me the following error:
Access denied; you need (at least one of) the SUPER privilege(s) for this operation
To overcome this, I tried to grant the SUPER privilege to the root user by running:
GRANT SUPER ON *.* TO 'root'#'my-host' IDENTIFIED BY 'my-password';
This in turn gives me the error:
Access denied for user 'root'#'%' (using password: YES).
So I am not really sure what to do. The MySQL version is 5.7.36 and I am connecting to the database remotely. The root user is also set to mysql_native_password as well. Any ideas on what I can do?
This database was part of Google Cloud SQL and with managed databases like this and Amazon RDS, SUPER privileges are not supported. To enable this parameter, you need to set it through the Google Cloud SQL flags or in case of Amazon RDS, the parameter group.
I want to allow remote connection from a certain IP.
I have a use coszi_crawl and DB name is same too.
I am logged into server using coszi_crawl user.
I have run this command
GRANT ALL PRIVILEGES ON coszi_crawl.* TO 'coszi_crawl'#'39.32.%' IDENTIFIED BY 'abcqwe' WITH GRANT OPTION;
But this is giving me this error
ERROR 1044 (42000): Access denied for user 'coszi_crawl'#'localhost' to database 'coszi_crawl'
P.S.:
Though I can access coszi_crawl DB from Browser using PHPmyadmin with user coszi_crawl
How can I can solve this problem?
You should use the root account on your database server to update the priviledges, by default the user coszi_crawldoes not have access to granting priviledges on databases.
It means You don't have GRANT OPTION privilege. Login to user having GRANT OPTION privileges, only that user can give grant to other users.
Generally or by default root user has all the privileges so use that user.
Grant privilege
Need to access one mysql database for a user remotely. I know it will work if grant all privileges on all databases to that user, like:
grant all on \*.* to 'someone'#'%'
But I just want grant access permission to that user on the database specified, not every database, like:
grant all on mydb.* to 'someone'#'%'.
Unfortunately, remote access will be failed in this case.
Any idea to solve this? Thanks a lot.
Try this,
GRANT SELECT,UPDATE,INSERT,DELETE ON yourdb.* To your_user#'192.162.1.1' identified by 'password';
I have a user and 10 databases in my cpanel and i want grant this user to all databases in my host using sql command.
I used this command :
grant all privileges on *.* to 'myacc_myuser'#localhost identified by 'mypass' with grant option;
But it give me this error :
#1045 - Access denied for user 'myacc'#'localhost'
How i can resolve this problem ?
Thanks.
A friend of mine asked me to help him with some minor php/mysql job. He gave me his cpanel access and I have to create a database for him.
I get the error:
MySQL issue : Access denied for user 'user'#'localhost' (using password: YES)
When I type in phpMyAdmin:
CREATE DATABASE db_name;
Is there a way I can grant all priviledges to the user he provided, or is there a way I can create a database with other user?
You can grant usage by using
grant usage on *.* to prasad#localhost identified by 'passwd';
Another thing regarding access denied to even localhost is caused when your firewall is active. You can try disabling antivirus software and also firewall.
A suggestion will be if you are using mysql, then mysql workbench is a great to have. You can create databases through GUI quite easily