I was using phpmyadmin to adjust the privileges of the users.
I removed all access for user 'root'. Now I am unable to see the tables.
I tried signing in under another user but its not allowing me.
What options do I have at this point?
Step 1.
//Stop mysql server
zend
opt 6 zendDBi
opt 7 Stop ZendDBi
Step 2.
//Start mysql server
cd /usr/local/mysql/bin
mysqld_safe --skip-grant-tables
mysql FLUSH PRIVILEGES;
After I do this I get this long bit of text:
/usr/local/mysql-5.1.59-i5os-power-64bit/bin/mysql Ver 14.14 Distrib 5.1.59, for ibm-i5os (power) using readline 5.1
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Usage: /usr/local/mysql-5.1.59-i5os-power-64bit/bin/mysql [OPTIONS] [database]
-?, --help Display this help and exit.
.............
After the flush I try to reconnect with mysql server I get this error:
mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)