After reading how to get the MySQL password, I attempted to edit my .my.cnf file, and for some reason I didn't make a backup. When I screw up, I screw up big.
Somehow, I edited the first 2 lines of the file. Scrolling up to see what I did, I thought I put it back the way it was, but I didn't.
Now when I try to do:
mysql -u root mysql
I get:
error: Found option without preceding group in config file: /root/.my.cnf at line: 2
(It was originally line one before I went and edited it again with what I thought was the first 2 lines.)
Anyone have any suggestions? Re-installing isn't something I'm very keen on.
Thanks.
Silwenae
silwenae@silwenae.com