~ubuntu-branches/ubuntu/quantal/mysql-5.5/quantal-security

« back to all changes in this revision

Viewing changes to scripts/mysql_install_db.pl.in

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-01-16 10:11:37 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130116101137-w2lant30o21mzi0b
Tags: 5.5.29-0ubuntu0.12.10.1
* SECURITY UPDATE: Update to 5.5.29 to fix security issues (LP: #1100264)
  - http://www.oracle.com/technetwork/topics/security/cpujan2013-1515902.html
* debian/patches/CVE-2012-5611.patch: removed, included upstream.
* debian/patches/38_scripts__mysqld_safe.sh__signals.patch: refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
                                            "--bootstrap",
424
424
                                            "--basedir=$opt->{basedir}",
425
425
                                            "--datadir=$opt->{ldata}",
426
 
                                            "--skip-innodb",
427
 
                                            "--skip-bdb",
428
 
                                            "--skip-ndbcluster",
 
426
                                            "--log-warnings=0",
 
427
                                            "--loose-skip-innodb",
 
428
                                            "--loose-skip-ndbcluster",
429
429
                                            "--max_allowed_packet=8M",
 
430
                                            "--default-storage-engine=MyISAM",
430
431
                                            "--net_buffer_length=16K",
431
432
                                            @args,
432
433
                                          );
439
440
 
440
441
open(SQL, $create_system_tables)
441
442
  or error($opt,"can't open $create_system_tables for reading: $!");
 
443
open(SQL2, $fill_system_tables)
 
444
  or error($opt,"can't open $fill_system_tables for reading: $!");
442
445
# FIXME  > /dev/null ?
443
446
if ( open(PIPE, "| $mysqld_install_cmd_line") )
444
447
{
452
455
 
453
456
    print PIPE $_;
454
457
  }
 
458
  while ( <SQL2> )
 
459
  {
 
460
    # TODO: make it similar to the above condition when we're sure 
 
461
    #   @@hostname returns a fqdn
 
462
    # When doing a "cross bootstrap" install, no reference to the current
 
463
    # host should be added to the system tables.  So we filter out any
 
464
    # lines which contain the current host name.
 
465
    next if /\@current_hostname/;
 
466
 
 
467
    print PIPE $_;
 
468
  }
455
469
  close PIPE;
456
470
  close SQL;
 
471
  close SQL2;
457
472
 
458
473
  report_verbose($opt,"OK");
459
474