public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dave Strydom <strydom.dave@gmail.com>
To: gentoo-server@lists.gentoo.org
Subject: Re: [gentoo-server] mysql-4.1
Date: Sat, 22 Oct 2005 15:31:17 +0200	[thread overview]
Message-ID: <fc38b710510220631q51787c41lb22f1993c4557ffa@mail.gmail.com> (raw)
In-Reply-To: <c3ff02000510220626o774d21e6xd4559f1d7fda53ee@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3648 bytes --]

try with my scripts?

On 10/22/05, Barry Marler <barry.marler@gmail.com> wrote:
>
> On 10/22/05, Dave Strydom <strydom.dave@gmail.com> wrote:
> > oh yeah, and change the --password='' field to your own password, dont
> just
> > copy past.
> >
> > Dave
> >
> >
> > On 10/22/05, Dave Strydom <strydom.dave@gmail.com> wrote:
> > > Man, this ...... page messed up my mysql stuff seriously, ok, for
> those
> > who had the same libmysqlclient.so.12 problems i had or for those people
> who
> > get to the importing of all your database backup and it stuffs up. here
> is
> > DAVE'S guide to upgrading to MySQL 4.1
> > >
> > >
> > > # = commands to type
> > > = = comments
> > >
> > > ====================================
> > > # mkdir -p /home/backup/mysql
> > > # nano mysql_backup.php
> > >
> > > ==
> > > = Place the code below into the mysql_backup.php and save the file =
> > > ==
> > >
> > > /*------mysql_backup.php---------*/
> > > <?
> > > print("mysql backup\n");
> > > foreach (glob('/var/lib/mysql/*') as $fullname)
> > > {
> > > $database = basename($fullname);
> > > $command = sprintf('mysqldump -a -B %s -c -v -Q >
> > /home/backup/mysql/%s.sql --password=\'Our@db$IG\'', $database,
> $database);
> > >
> > > exec($command);
> > > print($database . ' : ' . $command . "\n\n\n");
> > >
> > > }
> > > ?>
> > >
> > >
> > > /*-----------------------------------------------------*/
> > >
> > > # nano mysql_restore.php
> > >
> > > ==
> > > = Place the code below in the mysql_restore.php and save the file =
> > > ==
> > >
> > > /*------mysql_retore.php---------*/
> > > <?
> > >
> > > print("mysql backup\n");
> > >
> > > $dir = '/home/backup/mysql/';
> > > if ($fp = opendir($dir))
> > > {
> > > print('running...');
> > > while (($file = readdir($fp)) !== FALSE) {
> > > echo "$file\n";
> > >
> > > $database = basename($file);
> > > $command = sprintf('mysql < /home/backup/mysql/%s
> > --password=\'Our@db$IG\'', $database);
> > > print($database . ' : ' . $command . "\n\n\n");
> > > exec($command);
> > >
> > > }
> > > closedir($fp);
> > > }
> > > else
> > > {
> > > print('cannot open path ' . $dir);
> > > }
> > >
> > > ?>
> > >
> > > /*---------------*/
> > >
> > > # php mysql_backup.php
> > >
> > > ==
> > > = This will make individual backup's of all your databases, the reason
> i
> > make it create scripts for each database
> > > = instead of just pumping it all into 1 database, is because if there
> is a
> > problem on like 486590 of a 5 million
> > > = line file, its going to be a bitch to work with, this way it just
> > simplifies matters
> > > ==
> > >
> > > # quickpkg dev-db/mysql
> > > # /etc/init.d/mysql stop
> > > # emerge -C mysql
> > > # rm -rf /var/lib/mysql/ /var/log/mysql
> > > # emerge mysql
> > > # etc-update
> > > # emerge --config =mysql-4.1.14
> > > # revdep-rebuild --soname libmysqlclient.so.12
> > > # php mysql_restore.php
> > > # mysql_fix_privilege_tables
> > --defaults-file=/etc/mysql/my.cnf --user=root
> > --password='PASSWORD'
> > > # /etc/init.d/mysql restart
> > >
> > > And thats it.
> > > =======================================
> > >
> > > Dave
> > >
> >
> >
>
> The upgrade TOTALLY pfutzed my test box. After installing 4.1,
> revdep-rebuild wanted to build a bunch of ~x86 stuff (mod_php among
> them). I went back to the old version. I have three production servers
> running MySQL/Apache2/PHP, none of which will get this upgrade. For
> the 1st time in 3 years, Gentoo is really pissing me off.
>
> --
> gentoo-server@gentoo.org mailing list
>
>

[-- Attachment #2: Type: text/html, Size: 5284 bytes --]

  reply	other threads:[~2005-10-22 13:33 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20  4:42 [gentoo-server] mysql-4.1 Ben Munat
2005-10-20  4:49 ` Bertrand CHERRIER
2005-10-20  5:34 ` W.Kenworthy
2005-10-20  7:03   ` Dave Strydom
2005-10-20  6:51 ` W.Kenworthy
2005-10-20 13:16   ` Francesco R.
2005-10-20 13:42     ` Wolf Giesen
2005-10-20 13:55       ` Dark
2005-10-20 15:41         ` [gentoo-server] mysql-4.1, revdep-rebuild Wolf Giesen
2005-10-21 12:00     ` [gentoo-server] mysql-4.1 William Kenworthy
2005-10-21 13:15       ` Francesco R.
2005-10-20 13:03 ` Francesco R.
2005-10-21  3:18 ` Ben Munat
2005-10-21  4:55   ` Dave Strydom
2005-10-21  6:31     ` Ben Munat
2005-10-21 10:07       ` Francesco R.
2005-10-21 13:17         ` Francesco R.
2005-10-21 13:22         ` Lance Albertson
2005-10-22 12:11           ` Dave Strydom
2005-10-22 12:16             ` Dave Strydom
2005-10-22 13:26               ` Barry Marler
2005-10-22 13:31                 ` Dave Strydom [this message]
2005-10-22 13:50                 ` Lance Albertson
2005-10-22 13:55                   ` Dave Strydom
2005-10-22 14:01                     ` Craig Webster
2005-10-22 14:32                       ` Luca Longinotti
2005-10-22 14:51                         ` Craig Webster
2005-10-22 19:43                           ` Francesco R.
2005-10-22 19:46                             ` Craig Webster
2005-10-22 20:57                               ` Francesco R.
2005-10-22 22:13                               ` Luca Longinotti
2005-10-22 22:53                                 ` Petteri Räty
2005-10-22 17:00                   ` Barry Marler
2005-10-23 20:37                     ` [gentoo-server] routing bittorent radu herinean
2005-10-24  8:19                       ` Wolf Giesen
2005-10-24 14:13                       ` Marton Gabor
2005-10-22 19:46                 ` [gentoo-server] mysql-4.1 Francesco R.
  -- strict thread matches above, loose matches on Subject: below --
2005-10-20 13:40 Covington, Chris
2005-10-20 13:50 ` Dark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc38b710510220631q51787c41lb22f1993c4557ffa@mail.gmail.com \
    --to=strydom.dave@gmail.com \
    --cc=gentoo-server@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox