View previous topic :: View next topic |
Author |
Message |
venquessa2 Apprentice
Joined: 27 Oct 2004 Posts: 283
|
Posted: Sun Feb 18, 2007 5:02 pm Post subject: MySQL upgrading (init.d scripts failure) [solved] |
|
|
I started upgrading MySQL following the guide: http://www.gentoo.org/doc/en/mysql-upgrading.xml
I was upgrading from 4.0.24 so I emerged mysql-4.0.27.
However, dev-perl/DBD-mysql was pulled in and it attempted to pull in myqsl-5.0.26 so I had to use
emerge --nodeps "<mysql-4.1"
It merged okay, but it removed the init scripts, which I found and...
emerge mysql-init-scripts
Went Okay.
However....
/etc/init.d/mysql restart
Killed the old server, failed to start a new one.
I did a etc-update and replaced my.cnf and edited it to listen on eth0 address again.
Still now when I run /etc/init.d/mysql start|stop|anything I get no output. None. No server starts, no log entries, nothing.
I marked this post urgent, as a lot of my network relys heavily on MySQL and it's borked, hundreds of warnings and no email, Cacti, Amarok playlists, websites etc.
I'm going to see if I can manually start the server for now. Any help would be greatly apprieciated.
**EDIT: Panic over, I got the server to run manually as root. I realise I will need to fix perms on the datadir when I'm finished, but the database server is functional for now. Still can't figure out the init script problem. Should I upgrade Python and fix it's modules??? _________________ Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done
Last edited by venquessa2 on Mon Feb 19, 2007 5:43 pm; edited 1 time in total |
|
Back to top |
|
|
venquessa2 Apprentice
Joined: 27 Oct 2004 Posts: 283
|
Posted: Mon Feb 19, 2007 5:42 pm Post subject: |
|
|
Sorted.
All the init.d scripts where failing. mysql, postfix, apache2 and so on. All just returned to the prompt with no output.
After some hair pulling and reading through some of the init.d stuff I found that all these init.d scripts had been linked into /var/lib/init.d/failed/
Removing these links and the init scripts started working again.
Also I continued upgrading to MySQL-5 and imported my backups and it appears to be working. _________________ Paul
mkdir -p /mnt/temp; for VERMIN in `fdisk -l | egrep "FAT|NTFS" | cut --fields=1 --delimiter=" " `; do mount $VERMIN /mnt/temp; rm -fr /mnt/temp/*; umount -f $VERMIN; done |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|