Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-07-2004, 10:36 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 22
Rep:
|
How to resolve log rotation error?
Hi,
My log file rotation function is not working, I keep getting the following error emailed to me from Cron:
Enter password: /usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'
Anyone know how I can resolve this? The root account is set up with a password in the MySQL user table. Do I need to set up a new account with no password required?
Thanks!
|
|
|
09-07-2004, 10:40 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,216
|
One solution is this, i.e. create a new full priviledged user with to password and the other is to supply the root password in mysqladmin. If I remember well you can run it with -u root -p password to do your job.
Regards
|
|
|
09-07-2004, 11:42 AM
|
#3
|
LQ Newbie
Registered: Jul 2004
Posts: 22
Original Poster
Rep:
|
Thanks for your help!
When I try to edit mysqladmin, I get a bunch of weird characters. How can I edit this file to supply the password? (I assume that's what I need to do?)
Also, if instead, I create a new full-privileged user with no password, do I simply need to set up the cron job under that username?
|
|
|
09-07-2004, 12:06 PM
|
#4
|
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851
Rep:
|
If you get a bunch of wierd characters, I think it's probably a binary. Personally, I don't use SQL, but i think you may actually want to run it like this:
Code:
[user@host ~]$ mysqladmin -u root -p PASSWORD
|
|
|
09-08-2004, 03:48 AM
|
#5
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,216
|
You don't edit mysqladmin. You just have to run it as scuzzman said. Or if you can create a full priviledged user with no password you can run it like this:
Code:
mysqladmin -u full-user
so it does not ask for a password
Perhaps you can provide us with the script or the crontab entry to help you more.
|
|
|
All times are GMT -5. The time now is 05:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|