On MySQL 5.1 for Windows, why can't I assign DBA role to "root" user? The MySQL Workbench allows me to add all the other roles except for DBA. Also, when I "alter schema" on any table, while logged in as root, I dont see all the tabs that show me all the database properties... I only see the first tab that allows me to change collation only.

What is wrong with this picture? How do i give root all priveleges? I've tried a few variations of GRANT ALL PRIVILEGES etc. from the command line but nothing works.

My root account is unable to alter column names, indexes, or options of any given table that I create. I can create tables and delete them but I can't alter them.

1 Answer
1

root has all privileges by default. Why do you think you need to give it more?

Try running these SQL statements to verify. Compare against almost every other account and you will see that root has far more privileges in the mysql.user table then any other account unless you have done something unusual.

Well, when I connect to a Amazon cloud instance of SQL (RDS) I can see all the tabs showing all the properties of each table (via MySQL Workbench). For this reason it appears that my local MySQL instance has less permissions, despite the fact that I am logged in as "root". I am almost certain I dont have all permissions and I dont know why. for example, right click on a table and 'alter schema' and I do not see the tabs for altering indexes, columns, etc.
–
djangofanMar 14 '11 at 23:18

@djangofan, I don't know much about the Amazon cloud or how you got that setup, but the standard mysql privileges don't even permit you to remotely connect as root. So whoever, or whatever set that up the system to permit you remote root access, may not have granted all the privileges correctly. If you don't have enough privileges you probably aren't going to be able to grant yourself more. Posting the output of the two sql statements I showed you may tell us a lot more.
–
ZoredacheMar 14 '11 at 23:24

Those sql queries seem to have fixed it for me. Thanks. I don't know why the UPDATE needed to have a 40 char encoded password, but it did... i never saw that before. examples on the net always seem to use the clear text password.
–
djangofanMar 14 '11 at 23:29

I didnt have any problems with the MySQL RDS on the amazon cloud. This question was all about my local instance.
–
djangofanMar 14 '11 at 23:30

@Zoredache - if root has all privileges, when why isnt the DBA checkbox checked in the Administrative roles tab of the MySQL Workbench account management?
–
djangofanMar 14 '11 at 23:33