Difference between revisions of "NATS4 MySQL Settings"
TmmStephen (talk | contribs) |
|||
Line 43: | Line 43: | ||
component must be directed to your Host, Server Admin, or Server | component must be directed to your Host, Server Admin, or Server | ||
Technician. | Technician. | ||
+ | |||
+ | == open_files_limit == | ||
+ | Please make sure open_files_limit = 2048 is set in your my.cnf file. The default value on some servers is too low to allow partitioned table to work properly. | ||
== Database Copy Errors == | == Database Copy Errors == |
Revision as of 15:57, 23 November 2010
MySQL Server 5.x Requirement Information
NATS 4.0 requires MySQL 5.0 or greater. Future versions of NATS4 will require MySQL 5.1 or greater.
Important Settings and Features
The following settings are critical in ensuring proper functionality with any Too Much Media product:
NO_UNSIGNED_SUBTRACTION
MySQL server modes are mostly mutually exclusive, so globally setting the MySQL mode will disable all other modes. The trick is how and where this mode is set. MySQL Server has 3 different places that settings can be changed or exist: the my.cnf file (MySQL configuration file), the start-up switches, and the current session settings (both globally and for individual sessions). Failure to turn ON unsigned subtraction causes potential problems with financial calculations causing absurdly large numbers to appear in place of fairly small numbers.
STRICT MODE
"Strict Mode" is one of many settings that are classified to be a "strict mode". Strict mode must be disabled in order for any Too Much Media product to function properly. If any of the following modes are enabled, they must be disabled and/or removed: TRADITIONAL, STRICT_ALL_TABLES, or STRICT_TRANS_TABLES. These settings alter how MySQL handles default data types and null field values, which can adversely affect normal operation. As stated above for NO_UNSIGNED_SUBTRACTION, if you remove any pre-existing strict mode settings and make sure that NO_UNSIGNED_SUBTRACTION is set, MySQL 5 will be configured properly for NATS, CARMA, and RSSdish.
You can check your current MySQL server mode by connecting to the MySQL database and running the following queries:
SELECT @@global.sql_mode; SELECT @@session.sql_mode;
Please Note: Too Much Media does not configure or support MySQL. Any issues related to repairing, installing, or configuring any server related component must be directed to your Host, Server Admin, or Server Technician.
open_files_limit
Please make sure open_files_limit = 2048 is set in your my.cnf file. The default value on some servers is too low to allow partitioned table to work properly.
Database Copy Errors
The following error, which sometimes occur when you copy your NATS database from one server to another, means you didn't escape the MySQL reserved word, cascade:
ERROR 1064 at line 678: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'cascade char(16) NOT NULL default '', siteid int(10) unsigned
Escape the word cascade with a high comma (`) in the SQL query. Note: the high comma is also called a back-tic, and on US keyboards, it is usually left of the number 1 key.