Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    10

    Default Upgraded to mysql 5 and now it would not start?

    Moderator please Sticky this for a long time!!

    Upgraded to mysql 5 and now it would not start with error like:

    Starting MySQLCouldn't find MySQL manager or server[FAILED]

    This may or may not be a bug, but for the thousands of webmasters with customised my.cnf files it needs to be a STICKY reminder please Moderator (have the problem confirmed from others first if you like, but I bet most just revert to downgrading because mysql would not start and it's a very simple solution that is hard to figure.)
    I had that problem, that was because I have customized the my.cnf file, OK it seems before mysql 5, but for mysql 5, it would not start if you have:

    ######
    [mysql.server]

    user=mysql

    basedir=/var/lib
    ############

    For Mysql 5 to start, change it to:
    #############
    [mysql.server]

    user=mysql

    #basedir=/var/lib
    ##############
    I commented out the basedir line as you can see above with # in my.cnf (/etc/my.cnf), for some reason mysql 5 does not need patronising :), then it'll starts OK.

    What I did also is follow the tweak settings recommendation for upgrading to mysql, I did not tick the use password for 4.0 (that depends on what you have as scripts..). I changed the root password for none, gracefully rebooted the whole server twice after updating software, apache and executing this command: /scripts/perlinstaller --force Bundle::DBD::mysql (to update the Perl DBD TO MYSQL 5).

    I have a lot of other customised statement in that file, mysql 5 seems to be OK with that.
    We use Linux CentOS 4.3 / cpanel latest default Apache 1.xx ., but the above problem may be OS independent, I don't know for sure!
    Last edited by festprint; 10-21-2006 at 02:34 PM.
    http://www.freeonlinehost.com/forums/ - FreeOnlineHost.com - Free Web Hosting and Forums

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2002
    Location
    Pula, Croatia
    Posts
    196
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Yes, same here, after i comented it out, it started. I wonder how did you figure it out, since it was nothing in mysqld.log

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    10

    Default

    Quote Originally Posted by gemby
    Yes, same here, after i comented it out, it started. I wonder how did you figure it out, since it was nothing in mysqld.log

    I had to comment out that one because it has to do with the server itself. I was lucky to hit a lucky note there after a while wondering, trying and testing other avenues. I was close to downgrading again when I thought mysql usually comes with default my.cnf let's have it as it comes and commented out what should not be there as I have a test server, although a windows box, it gave me a hint in the my.ini (windows), I went and changed the Linux server accordingly, commenting out one at a time (starting a restarting) utill it worked.

    I wish someone will point that out on the mysql website or at least on the commercial and open source server admin software and control panel's websites (Cpanel, Plesk, Webmin etc), although this could only be a cpanel problem. I WISHED SOMEONE also would sticky this as you said there is nowhere this "bug" is highlighted and probably thousands of webmasters just downgrade and go to a lot of trouble for nothing.
    Last edited by festprint; 10-21-2006 at 02:33 PM.
    http://www.freeonlinehost.com/forums/ - FreeOnlineHost.com - Free Web Hosting and Forums

  4. #4
    Member
    Join Date
    Nov 2005
    Posts
    64

    Default

    Nice work! Thanks for this most excellent tip. It sure came in really helpfully when I was wondering what happened to my MySQL 5.0 failing along with the other services that depended on it too.

    Thanks festprint!

  5. #5
    Member
    Join Date
    Mar 2005
    Posts
    8

    Default

    Worked for me. Thank you!

  6. #6
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default

    Worked for me too!
    Comming Soon - EnfinityAlerts.com - Server Monitoring
    EnfinityHost.com
    - Domains, Shared Hosting, Reseller Packages, and Dedicated Servers
    Authorize.net Merchant Accounts
    Want to sell Merchant Accounts?

  7. #7
    Member
    Join Date
    Feb 2003
    Posts
    39

    Default

    What purpose does "basedir" serve? Does commenting it out present any security risks or issues down the road?

  8. #8
    Registered User
    Join Date
    Jun 2006
    Posts
    1

    Smile

    Exelent post, it worked for me also...

  9. #9
    Registered User
    Join Date
    Jan 2004
    Posts
    2

    Default

    Just wanted to say it worked for me also.

Similar Threads & Tags
Similar threads

  1. MySQL Upgraded but NOT upgraded???
    By emergingdzns in forum Database Discussions
    Replies: 3
    Last Post: 06-30-2010, 11:22 AM
  2. MySQL Upgraded but NOT upgraded???
    By emergingdzns in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-30-2010, 11:22 AM
  3. Upgraded to MySQL v5.1.30
    By AndyReed in forum cPanel and WHM Discussions
    Replies: 44
    Last Post: 11-12-2009, 06:28 AM
  4. HELP! Upgraded to MySQL5 and MySQL won't start now
    By uneedawebsite in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-03-2007, 08:06 AM
  5. Upgraded MySQL to 4.1 and ????
    By jdearing in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-28-2005, 12:19 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube