Altrea wrote:What was the full error message you get?
Your code contains just a simple INSERT query, so i can't believe this is a InnoDB issue (exept you are getting constraint integrety messages, which is at the end not the fault of InnoDB but of your way to insert data into it - changing to MyISAM instead just destroys the integrety).
I deleted and re-created the database and table.
The error read:
"MySQL Error (1064): 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 'event message content was here' at line 1"
So I read the MySQL error log:
- Code: Select all
130115 20:27:57 [Note] Plugin 'FEDERATED' is disabled.
130115 20:27:57 InnoDB: The InnoDB memory heap is disabled
130115 20:27:57 InnoDB: Mutexes and rw_locks use Windows interlocked functions
130115 20:27:57 InnoDB: Compressed tables use zlib 1.2.3
130115 20:27:57 InnoDB: Initializing buffer pool, size = 128.0M
130115 20:27:57 InnoDB: Completed initialization of buffer pool
130115 20:27:57 InnoDB: highest supported file format is Barracuda.
130115 20:27:58 InnoDB: Waiting for the background threads to start
130115 20:27:59 InnoDB: 1.1.8 started; log sequence number 1769800
130115 20:27:59 [Note] Server hostname (bind-address): '(null)'; port: 3306
130115 20:27:59 [Note] - '(null)' resolves to '::';
130115 20:27:59 [Note] - '(null)' resolves to '0.0.0.0';
130115 20:27:59 [Note] Server socket created on IP: '0.0.0.0'.
130115 20:27:59 [Note] Event Scheduler: Loaded 0 events
130115 20:27:59 [Note] mysqld: ready for connections.
Version: '5.5.24-log' socket: '' port: 3306 MySQL Community Server (GPL)
and the contents of my.ini associated with InnoDB that I tried to UNcomment
- Code: Select all
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = C:\mysql\data/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = C:\mysql\data/
#innodb_log_arch_dir = C:\mysql\data/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
I knew of another guy who used MyISAM albeit on an older version of MySQL so thought I'd give it a try since I couldn't get the UNcomment fo work out.