TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Database Management > MySQL
MySQL Forum dedicated to the world's most popular open source database engine.

Reply
 
Thread Tools Display Modes
Old April 14th, 2010, 03:35 PM   #1 (permalink)
Jason
TechSpott Newbie
 
Jason's Avatar
 
Join Date: Apr 2010
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
Default MySQL REVOKE not working properly?

Im learning PHP & MySQL from a book and the MySQL version its working with is 5.0.67 and im working with 5.1.41. Now to get straight to the point, im learning about REVOKE and GRANT and when i copy from the book the REVOKE isn't working. Maybe its because some of the syntax changed since then?
原帖地å€: TechSpott - Computer and technology forums http://www.techspott.com//showthread.php?p=7193

Im running this from Windows CMD prompt and yes im logged in as "root". Ill add a comment to the part that isnt working and will give the error.

mysql> GRANT ALL
-> ON *.*
-> TO fred IDENTIFIED BY 'abc'
-> WITH GRANT OPTION;

So i created a user and that works, i verified by:
mysql> SELECT * FROM mysql.user;

Here is where i get an error:
mysql> REVOKE ALL PRIVILEGES, GRANT
-> FROM fred;
"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 'FROM fred' at line 2"

I then tried this but got the SAME error as above:
mysql> REVOKE ALL PRIVILEGES
-> FROM fred;
Jason is offline   Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
mysql, properly, revoke, working


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Announces MySQL Cluster 7.1 News Bot News 0 April 13th, 2010 09:47 PM
I cant connect to mysql? Myua MySQL 0 April 10th, 2010 08:21 AM
I have windows vista and my new GTAIV is not working properly hlep me please!? good wario Windows Vista 0 April 5th, 2010 07:00 PM
MySQL put error message in variable? Mark S MySQL 1 April 4th, 2010 03:04 AM
How do you get MySQL working on macbookpro? chesswizard MySQL 0 April 2nd, 2010 01:49 AM

 
Forum Stats
Members: 14,329
Threads: 20,336
Posts: 27,710
Total Online: 43

Newest Member: Veroniquepandachung

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 08:00 AM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO