Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    4

    Unhappy cron jobs not working

    Hi! I have a problem. The first being I know very little about cPanel operation and the 2nd being my coder guy is nowhere to be found. Oh, and the 3rd is my 5 minute crons are not running. Maybe all my crons.

    I've tried changing permissions in file manager, updating where the crond sends the crons (email) and deleting the stuff in the cron manager and reinstalling them.

    This is the error that the crond keeps sending me:

    <br />
    <b>Warning</b>: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'amazhun4'@'ans04.midphase.com' (using password: YES) in <b>/home/amazhun4/public_html/crons/4/as/mysql.php</b> on line <b>3</b><br />
    Access denied for user 'amazhun4'@'ans04.midphase.com' (using password: YES)

    Any detailed help would be greatly appreciated!

    Thank you, insanesquirrel

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    That is a database access issue. The php file is trying to connect to the database
    but seems to have invalid user name and or password.

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Your script is calling a database that either doesn't exist or the login information
    for that database (hostname, database name, login, or password) is wrong.

    I would look at the file '/home/amazhun4/public_html/crons/4/as/mysql.php'
    listed in that error message and find out what DB login parameters are being
    called and verify those to be working.

    However ...

    Looking closer at the error, I also see 'amazhun4'@'ans04.midphase.com' and
    this might actually be your problem because the script appears to be making a remote
    database connection to a database located somewhere else not on your server and
    that database server might be offline, down, or otherwise unreachable.

    I am assuming your server is not "ans04.midphase.com" because it if were then you
    would normally be using "localhost" as the hostname instead of "ans04.midphase.com"

    (Note that you can use your main Cpanel username with your database but it is not recommended
    because if you change your main account password then the database password will also
    get changed at the same and can render scripts not working such as like what you see now)
    Last edited by Spiral; 12-15-2006 at 06:33 PM.

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    4

    Default

    Thank you, Spiral. The password thing is most likely the culprit because I had to change it to prevent my site getting hijacked. Ummmm, my next question is...how do I get the new password to match up with whatever it needs to be matched up with?

    Please excuse my lack of techspeak, my boyfriend is offline for a few days and he normally handles these emergencies. I'm just a dumb blonde squirrel, lol.

    oh, and it's on a shared server so I don't know if I have access to the root login
    Last edited by InsaneSquirrel; 12-15-2006 at 07:09 PM.

  5. #5
    Registered User
    Join Date
    Dec 2006
    Posts
    4

    Default

    I figured it out Spiral, thank you very much! Everything is working now. I changed the password in that file.

Similar Threads & Tags
Similar threads

  1. Cron jobs are not working after moving to SuPHP
    By ukagg in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-29-2008, 08:42 AM
  2. Cron jobs in cPanel not working
    By footnet in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-02-2007, 04:27 PM
  3. cron jobs not working
    By carpman in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-14-2005, 06:14 AM
  4. Cron Jobs - Stopped Working
    By servmin in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-25-2005, 06:26 PM
  5. Cron Jobs -- not working anymore...?
    By OneSizeFitsAll in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-09-2003, 12:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube