SloppyGoat
Mon 30th Oct '06, 5:00pm
MySQL Permissions for Idiots
If anyone else runs into this, this is how I solved it. I'll make the instructions pretty detailed, for those who are as limited in MySQL knowledge as I am. This can be easier if you have some sort of decent MySQL manager.
1) Open a command prompt at /MySQL/bin
2) To log on to your root, type this:
mysql --user=root --password=yourpassword
You will then be at a mysql prompt and logged into your root. If your root does not have a password, I suggest you create one.
3) Create and Grant your new user all privileges. Make sure you have a damn good password for security reasons. According to Jerry, you really only have to GRANT SELECT? But this worked for me, and if you can figure out my password, you can do anything to my database anyway, so I granted all.
I had to run both of these before Impex would work. Before, I only had privileges on localhost, and Impex would stop after a certain point. I don't really know what "%" is, but you must have all privileges on that too.
grant all privileges on *.* to someusr@"%" identified by 'passwrd';
grant all privileges on *.* to someusr@"localhost" identified by 'passwrd';
4) Now make sure your Impex config file has the proper data and run it again. It should import flawlessly. I was thrilled when it finally ran! :D
This info should actually be posted in a FAQ here, IMO. It would save a lot of headaches. I see I'm not the only one who has ran into this before, and not the only one who didn't know what to do and couldn't find any specific instructions. So, I hope this helps someone. ;) If anything can be done better or differently, please feel free to comment and/or correct me.
If anyone else runs into this, this is how I solved it. I'll make the instructions pretty detailed, for those who are as limited in MySQL knowledge as I am. This can be easier if you have some sort of decent MySQL manager.
1) Open a command prompt at /MySQL/bin
2) To log on to your root, type this:
mysql --user=root --password=yourpassword
You will then be at a mysql prompt and logged into your root. If your root does not have a password, I suggest you create one.
3) Create and Grant your new user all privileges. Make sure you have a damn good password for security reasons. According to Jerry, you really only have to GRANT SELECT? But this worked for me, and if you can figure out my password, you can do anything to my database anyway, so I granted all.
I had to run both of these before Impex would work. Before, I only had privileges on localhost, and Impex would stop after a certain point. I don't really know what "%" is, but you must have all privileges on that too.
grant all privileges on *.* to someusr@"%" identified by 'passwrd';
grant all privileges on *.* to someusr@"localhost" identified by 'passwrd';
4) Now make sure your Impex config file has the proper data and run it again. It should import flawlessly. I was thrilled when it finally ran! :D
This info should actually be posted in a FAQ here, IMO. It would save a lot of headaches. I see I'm not the only one who has ran into this before, and not the only one who didn't know what to do and couldn't find any specific instructions. So, I hope this helps someone. ;) If anything can be done better or differently, please feel free to comment and/or correct me.