Closed (fixed)
Project:
Drupal core
Version:
4.7.2
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2005 at 22:43 UTC
Updated:
2 Aug 2006 at 16:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
sepeck commentedThox, I posted a followup there with some links. It may be related to people using the mysql extensions instead of the mysqli extensions with MySQL4.1.3 or higher. I ran into this issue with Windows/IIS systems, switched and never thought twice about it.
Not an area I am an expert in, but it may be worth looking at as the actual cause.
Comment #2
cerberos commentedI tried a new and clear install of drupal 4.6.3 (new user :-D) in a server running Apache 2, php 5 and mysql 5. The sql query to create tables give an error on lines near 803 (no default value)... Adding a default value '' the cms seems work but gives many error later... Probably it's related with the use of php_mysql.dll instead php_mysqli.dll... I will try.
Comment #3
cerberos commentedUsing mysqli.dll cms doesn't work...probably it can't connect.
Comment #4
Thox commentedThe attached patch allows Drupal to install on MySQL 5.0.15. However, there are still one or more areas that do not work correctly.
The problem is that
taxonomy_save_vocabularytries to save the "required" (also the "multiple" field and maybe others) as a string when the value in those fields is empty - i.e. when they're not ticked.Comment #5
geeklight commentedHopefully helpful, from a drupal newbie: I noticed the source of the errors I was getting while loading the db (clean install) were related to the fact that the REPLACE statements for the 'blocks' table were running against an empty table, making them inserts (as assumption here that if inserts were intended they would have been written that way?) So, I commented those out, and the script can run successfully.
However, I try to create my first post in the new install, and get this:
Location /index.php?q=node/add/blog
Message Field 'revisions' doesn't have a default value query: INSERT INTO drup_node (status, moderate, promote, sticky, comment, title, body, format, uid, created, type, teaser, changed, nid) VALUES('1', '0', '1', '0', '2', 'Drupal Installed!', 'Check it out.', '1', '1', '1131138418', 'blog', 'Check it out.', '1131138436', '2') in C:\Inetpub\wwwroot\includes\database.mysql.inc on line 66.
One interesting thing to note - MySQL documentation indicates that TEXT datatypes cannot have DEFAULT VALUES. (the columns I'm seeing these messages for).
Good luck!
Comment #6
jholt commentedThe problem seems to be related to the "strict" setting in MySQL 5. I had the same problem, and reconfiguring with this setting turned off seems to have solved the problem. I just ran the database creation script for now, and it finished OK. It gave errors previously.
See also: http://db4free.blogspot.com/2005/10/web-apps-ready-for-mysql-5.html
Comment #7
dries commentedCommitted to HEAD. Thanks.
Comment #8
(not verified) commentedComment #9
drewish commentedI've created a patch to address some of the other issues. See #76743: Incompatibilities with MySQL 5.0