List:Internals« Previous MessageNext Message »
From:Chad MILLER Date:September 7 2007 3:09pm
Subject:Re: Mysql-5.1.23-alpha all tests fail
View as plain text  
On 7 Sep 2007, at 11:03, Chad MILLER wrote:
>> The primary log file feature is in master.err which says:
>>
>>    atal error: Please read "Security" section of the manual \
>>    to find out how to run mysqld as root!
>
> Are you running the mysql test suite as user root?  We discourage  
> running anything as root, so it's probably not tested very well.  I  
> would expect a better error message, though, if it always fails.

If you must run it as root, then this should help.  It's still a bad  
idea.  :(



===== mysql-test-run.pl 1.330 vs edited =====
--- 1.330/mysql-test/mysql-test-run.pl  2007-08-29 17:54:37 +02:00
+++ edited/mysql-test-run.pl    2007-09-07 17:03:09 +02:00
@@ -1364,7 +1364,7 @@ sub collect_mysqld_features () {
    #
    # --datadir must exist, mysqld will chdir into it
    #
-  my $list= `$exe_mysqld --no-defaults --datadir=$path_language -- 
language=$path_language --skip-grant-tables --verbose --help`;
+  my $list= `$exe_mysqld --no-defaults --datadir=$path_language -- 
language=$path_language --skip-grant-tables --user=$opt_user -- 
verbose --help`;

    foreach my $line (split('\n', $list))
    {
@@ -3723,7 +3723,7 @@ sub mysqld_arguments ($$$$) {
    }

    mtr_add_arg($args, "%s--no-defaults", $prefix);
+  mtr_add_arg($args, "%s--user=%s", $prefix,  $opt_user);
    mtr_add_arg($args, "%s--basedir=%s", $prefix, $path_my_basedir);
    mtr_add_arg($args, "%s--character-sets-dir=%s", $prefix,  
$path_charsetsdir);





- chad

--
Chad Miller, Software Developer                         chad@stripped
MySQL Inc., www.mysql.com
Orlando, Florida, USA                                13-20z,  UTC-0400
Office: +1 408 213 6740                         sip:6740@stripped

(If it's not cryptographically signed, it's not from Chad)



Attachment: [application/pgp-signature] This is a digitally signed message part PGP.sig
Thread
Mysql-5.1.23-alpha all tests failDavid Favor7 Sep
  • Re: Mysql-5.1.23-alpha all tests failChad MILLER7 Sep
    • Re: Mysql-5.1.23-alpha all tests failDavid Favor7 Sep
      • Re: Mysql-5.1.23-alpha all tests failChad MILLER7 Sep
        • Re: Mysql-5.1.23-alpha all tests failChad MILLER7 Sep
        • Re: Mysql-5.1.23-alpha all tests failDavid Favor7 Sep
          • Re: Mysql-5.1.23-alpha all tests fail getting fartherDavid Favor7 Sep
            • Re: Mysql-5.1.23-alpha all tests fail getting fartherChad MILLER7 Sep
              • Re: Mysql-5.1.23-alpha all tests fail getting fartherDavid Favor8 Sep
                • Re: Mysql-5.1.23-alpha all tests fail getting fartherJoerg Bruehe10 Sep