Results 1 to 3 of 3

Thread: MySQL 4.1 upgrade in remastered Knoppix will not start

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    3

    MySQL 4.1 upgrade in remastered Knoppix will not start

    I'm remastering a Knoppix CD to include an updated MySQL server/client version 4.1.

    When in the chroot'ed environment I apt-get installed the 4.1 MySQL server, and I am able to start the mysql server via '/etc/init.d/mysql start' ... but when the remastered version is either burned to CD or run from the iso on the hard drive, the mysql server will not start. There is also nothing (and I mean nothing ... they are empty files) written to any of the mysql logs or syslog.

    The error message received is:

    Starting MySQL database server: mysqld...failed.
    Please take a look at the syslog.
    /usr/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)'
    Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!


    When I try to start via '/usr/bin/mysqld_safe' the error received is:

    Starting mysqld daemon with databases from /var/lib/mysql
    mysqld_safe[2515]: started
    STOPPING server from pid file /var/run/mysqld/mysqld.pid
    mysqld_safe[2525]: ended


    I need the updated 4.1 mysql as this is the version being used in a course.

    Any ideas as to why this issue exists when running the remastered Knoppix?

    Many thanks.

  2. #2
    Junior Member registered user
    Join Date
    Feb 2004
    Posts
    17

    Mysql in Knoppix

    I think the problem is that the mysqld.sock file was created when you tested the program while chrooted. But while booted from the CD, the program detects the file is present and thinks that MYSQL is already running. I have tried deleting the file, but even with UNIONFS, it won't let me. I have the same problem, and although I haven't tried it yet, I think there are several ways to fix this:

    1. Run Mysql and use a flag to point to a different directory for the socket file, like /tmp/mysqld.sock

    or

    2. Remove the mysqld.sock file in chroot and remaster the iso

    or

    3. Make a symlink from /var/run/mysqld/mysqld.sock to another directory, like /tmp/mysqld.sock

    Let me know if that helps...

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Posts
    3
    The problem was that the MySQL server attempted to start, then failed to start -- thus causing the error. The solution was a bit complicated and required remastering several times, but the basic information needed for the solution was found in these two threads. (UnderScore's information was pretty much on target for my needs ... UnderScore, if you read this - Thanks!)

    http://www.knoppix.net/forum/viewtopic.php?t=17570
    http://www.knoppix.net/forum/viewtopic.php?t=17509

    1st) PROBLEM: After apt-get install of MySQL 4.1,the mysql server failed to start when burned to CD.
    1st) SOLUTION: The upgraded to MySQL apparently changed the InnoDB configuration. While the databases contained in /var/lib/mysql were copied over to the ram disk and were readable, the new file(s) with ibdata1...3 was a symlink to the /KNOPPIX/var/lib/mysql/ibdata1 and was read only. So I went in to the minirt24 file using the instructions in the above two threads and copied the 'ibdata' file(s) over to the ram disk.

    2nd) PROBLEM: Same problem different solution. Now the /var/mysql/log directory didn't exist on the read-only file system, and also wasn't copied over to the writable ram disk.
    2nd) SOLUTION: Similar to the first except that instead of copying files I created the needed directory and them copied over to the ram disk.

    3rd) PROBLEM: Same problem but now the solution was permissions. The /var/mysql/log directory was owned by root and MySQL couldn't write to them even when on the ramdisk.
    3rd) SOLUTION: I tried several times to change the owner and group within the minirt24 file, but the mysql user hasn't been created yet, so attempts to chown/chgrp errored. So I changed the permissions to 777. A more secure solution to a world readable/writable directory would have been to just add the directory when chroot'ed. I just wasn't in the mood and didn't have the time to create an all new compressed file system, and just changing the minirt24 script I only needed to update the md5sums.

    So, putting all this together ... the 4.1 upgrade apparently added some additional logging features and changed the InnoDB configuration which needed to be adjusted for the LiveCD environment.

    InnoDB info
    http://mysql.netvisao.pt/doc/mysql/e...iguration.html

Similar Threads

  1. KDE won't start after apt-get upgrade
    By adriang in forum Hdd Install / Debian / Apt
    Replies: 18
    Last Post: 10-28-2005, 09:50 AM
  2. X don't start after apt-get dist-upgrade (Knoppix 4.0.2)
    By tr in forum Customising & Remastering
    Replies: 1
    Last Post: 10-02-2005, 07:40 PM
  3. mysql datadir on vfat harddrive won't start.
    By Decibels in forum Customising & Remastering
    Replies: 9
    Last Post: 01-31-2005, 06:34 AM
  4. mySQL tables on the remastered CD are read only
    By lueckmw in forum Customising & Remastering
    Replies: 2
    Last Post: 10-24-2003, 11:29 PM
  5. Where to start: Apache, MySql, & PHP
    By mabhatter in forum General Support
    Replies: 2
    Last Post: 03-14-2003, 12:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1599.99



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR picture

DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR

$1100.00



IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671 picture

IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671

$230.00



IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER picture

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER

$349.99



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$111.70



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



IBM Power 720 8202-E4B Server - POWER7 4-Core 3GHz, 8GB, 2x 146GB HDD, 1725W PSU picture

IBM Power 720 8202-E4B Server - POWER7 4-Core 3GHz, 8GB, 2x 146GB HDD, 1725W PSU

$450.00



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99



IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU picture

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU

$225.00