Granting privilege for remote access to mysql database
up vote
0
down vote
favorite
When i am trying to grant privilege in order to access MySql 8.0 database remotely. I get the following error.
Command:-
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
Error:-
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'password' WITH GRANT OPTION' at line 1
I have tried to check what could be wrong but cannot seem to make it work. Any help is much appreciated.
Also, What is the use of this 'password' mentioned in the above line??
remote-access mysql-8.0
add a comment |
up vote
0
down vote
favorite
When i am trying to grant privilege in order to access MySql 8.0 database remotely. I get the following error.
Command:-
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
Error:-
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'password' WITH GRANT OPTION' at line 1
I have tried to check what could be wrong but cannot seem to make it work. Any help is much appreciated.
Also, What is the use of this 'password' mentioned in the above line??
remote-access mysql-8.0
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When i am trying to grant privilege in order to access MySql 8.0 database remotely. I get the following error.
Command:-
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
Error:-
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'password' WITH GRANT OPTION' at line 1
I have tried to check what could be wrong but cannot seem to make it work. Any help is much appreciated.
Also, What is the use of this 'password' mentioned in the above line??
remote-access mysql-8.0
When i am trying to grant privilege in order to access MySql 8.0 database remotely. I get the following error.
Command:-
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
Error:-
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'password' WITH GRANT OPTION' at line 1
I have tried to check what could be wrong but cannot seem to make it work. Any help is much appreciated.
Also, What is the use of this 'password' mentioned in the above line??
remote-access mysql-8.0
remote-access mysql-8.0
asked Nov 9 at 15:19
Abhinav Mehrotra
449
449
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228486%2fgranting-privilege-for-remote-access-to-mysql-database%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown