I agree this is an excellent "How To" and I am following at the moment. I too have run into problems with:
mysqladmin -u root password yourrootsqlpassword
After typing the above, I now cannot access mysqladmin as in this example:
>mysqladmin ping
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
*update*
Ok, I found a way round it, I have to type <mysqladmin -p ping> BUT the downside with this is I have to type my password for every command I use???? How can I get it to remember my password so once it is typed once, it doesn't need be typed again for future mysqladmin commands?
*update2*
Ok, this is now sorted. There is a file called /etc/my.cnf (Global options) and/or ~/.my.cnf (User-specific options) which should contain a group called [client], if not then just create the group and the the line <password = your_password>, so you get something like:
Code:
[client]
password = your_password
The file should not be accessible to anyone but yourself, for obvious reasons. To ensure this, set the file access mode to 400 or 600. For example:
Code:
chmod 600 /etc/my.cnf
------------------------------------------------------------------------------------
*update*
Am still struggling with the below command. Is it really necessary? and if so how do I get it to work? I also get the same error if I try to access mysqladmin as a user... do I need to add some extra info into /etc/my.cnf ??
...and when I typed the following command:
mysqladmin -h HostBlade.dazblade.net -u root password yourrootsqlpassword <--- I typed same password as created with 1st command
mysqladmin: connect to server at 'HostBlade.dazblade.net' failed
error: 'Host 'HostBlade.dazblade.net' is not allowed to connect to this MySQL server'
I should also mention that I am a LINUX newbie so I appreciate that I have probably done something wrong or typed something incorrectly on the second command but I don't understand why I can no longer access mysqladmin since typing the first command...
Hope someone can assist - as I can't go on any further in the tutorial until this is understood by me.....
Recent comments
1 day 55 min ago
1 day 6 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 2 hours ago
2 days 2 hours ago
2 days 7 hours ago
2 days 14 hours ago
2 days 14 hours ago
2 days 16 hours ago