Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: [-1] 1 - 2

Bottom
Install problems with MySQL
  • Posted: 01.02.2006, 12:20
     
    tazmon95
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    03.07.07
    Posts:
    137
    This problem is giving me fits!@!!!!$)*!@#$&*()$!&*() ARRRRGGGG!!!!!

    Ok... now that I got that out of the way. I've found some other parts that don't like the strict mode, for example, when new users try to register they get an error saying,

    Code

    1366: Incorrect integer value: '' for column 'pn_user_theme' at row 1

    or when using PNphpBB2 and you add a new post if you don't pick a message icon it has an error. I fixed this by editing a setting in a PNphpBB2 cache file and changing a value from "NONE" to "0" But right now the users one is really bothering me. So I've tried to disable the strict mode in SQL, I figure if it's something new that we didn't need before, then I don't need it now, especially if it jacks up everything I want to use.

    So here's what I've tried, opened my SQL/my.ini file and edited the SQL-mode line from:

    Code

    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    to

    Code

    sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    Ok now I can't create any new tables... I tried

    Code

    sql-mode="NO_ENGINE_SUBSTITUTION"
    No love either, so I tried

    Code

    sql-mode=""
    nope, still won't create the table. Anyone know the proper way to disable this "Strict Mode?"

    --
    Member of the PNphpBB Development Team
  • Posted: 01.02.2006, 12:31
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    09.11.08
    Posts:
    13413
    Take a look at the MySQL manual - that's usually a good place to look.

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 01.02.2006, 15:54
     
    tazmon95
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    03.07.07
    Posts:
    137
    Ok, I forgot to mention that I've searched and read every part of the MySQL manual... :P oops.

    Ok... well I've been spending a lot of time with this and I'm sure that there are others here who have dealt with this before themselves. The MySQL manual says that you can change the mysql_modes varible with

    Code

    SET [GLOBAL|SESSION] sql_mode='modes'
    So I tried

    Code

    SET global sql_mode='NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
    and the result says

    Code

    Query OK, 0 rows affected (0.01 sec)
    hmmm nothing affected? I try

    Code

    SELECT @@global.sql_mode;
    and I get

    Code

    mysql> +-------------------------------------------------------------------------------
    -----------------------------------------------------------------------+
    | @@global.sql_mode
                                                                           |
    +-------------------------------------------------------------------------------
    -----------------------------------------------------------------------+
    | STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_D
    IVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
    +-------------------------------------------------------------------------------
    -----------------------------------------------------------------------+
    1 row in set (0.03 sec)
    So then I try clearing it completly and it works.... :D

    Code

    mysql> SET global sql_mode='';
    Query OK, 0 rows affected (0.00 sec)

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


    With it set to nothing everything seems to work with PostNuke, I can install a new version, I can register new accounts, but I have a feeling that there are things I just enabled by getting rid of all the other variables there that I might want to use... Oh and if I try the command with only what I want to show up in the command, it still loads everything that was there originally...

    If anyone has experienced this and knows how to fix it, please help.

    PS Sorry if it seems like most of my posts from an "agitated" state, but I'm really about to start doing what HammerHeads little icon is doing and I don't want to break any more monitors.... :P One of mine died last week :( Luckily I had 3 more sitting in a closet here :D

    --
    Member of the PNphpBB Development Team

Goto page: [-1] 1 - 2

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula