• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1673
  • Last Modified:

GRANT SUPER, PROCESS .... Error

Hi!

Include my Command to execute to mysql.
But get this error messege:

ERROR 1064 at line 1: 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 '10.252.170.67 IDENTIFIED BY b2559d6155bab36db6dad9e0a5b37a2e

The line -> PXKILLR@10.252.170.67
is stored like this in my jobb.sql file:
GRANT SUPER, PROCESS ON WTCDATA.* TO <92>PXKILLR<92>@<92>10.252.170.67<92> IDENTIFIED BY <91>b2559d6155bab36db6dad9e0a5b37a2e<92>

Maby that is the problem ?

Please help ASAP.

Thanks



GRANT SUPER, PROCESS ON WTCDATA.* TO PXKILLR@10.252.170.67 IDENTIFIED BY b2559d6155bab36db6dad9e0a5b37a2e
 
GRANT SUPER, PROCESS ON WTDDATA.* TO PXKILLR@10.252.170.67 IDENTIFIED BY b2559d6155bab36db6dad9e0a5b37a2e
 
GRANT SELECT ON WTCDATA.WTCMERCHANT TO PXCHKR@10.252.170.67 IDENTIFIED BY 7949406f16d52140802b9e536e537a66

Open in new window

0
team2005
Asked:
team2005
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I am not sure which quotes you had, but it must be single quotes...


GRANT SUPER, PROCESS ON WTCDATA.* TO 'PXKILLR'@'10.252.170.67' IDENTIFIED BY 'b2559d6155bab36db6dad9e0a5b37a2e'

Open in new window

0
 
UmeshCommented:
BTW, You cannot simply grant these kind of GLOBAL PRIVILEGES at DB level.. they must be at server level..


GRANT SUPER, PROCESS ON WTCDATA.* TO 'PXKILLR'@'10.252.170.67' IDENTIFIED BY 'b2559d6155bab36db6dad9e0a5b37a2e'

Error Code : 1221
Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
(0 ms taken)

This should be ok...

GRANT SUPER, PROCESS ON *.* TO 'PXKILLR'@'10.252.170.67' IDENTIFIED BY 'b2559d6155bab36db6dad9e0a5b37a2e';

flush PRIVILEGES;
0
 
team2005Author Commented:
Thanks for help. Working just fine now...
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now