Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • ... that apparently MySQL is a bit like Perl, the first thing you need to do is "use strict"...

    Have you enabled strict mode?

    Note: I have no freaking idea how to turn it on myself, but I think it's being positioned as a "gotcha" ala use strict.
    • mysql> set @@session.sql_mode='traditional';
      Query OK, 0 rows affected (0.01 sec)

      mysql> SELECT @@session.sql_mode;
      +---------------------------------------------------------- ---------------------------------------------------------------------+
      | @@session.sql_mode                                                                                                            |
      +---------------------------------------------------------------------------- ---------------------------------------------------+
      +---------------------------------------------------------------------------- ---------------------------------------------------+
      1 row in set (0.00 sec)

      mysql> grant all on no_such_database.* to 'no_such_user'@'%' identified by 'some_password';
      Query OK, 0 rows affected (0.00 sec)

      But it's quite possible I'm misunderstanding this (and it's annoying as hell that "strict mode" appears to be "per connection" (though you can apparently set it up for the server, too).