Upon creation of the tables, via phpMyAdmin, and continuing after 3 attempts, the core file 'database.4.1.mysql' throws an SQL error, reported as so:
-- $Id: database.4.1.mysql,v 1.1 2006/04/10 13:45:28 unconed Exp $
--
-- Table structure for table 'access'
and further described as so:
#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 'DEFAULT CHARACTER SET utf8' at line 13
This prevents the continued installation and use of Drupal 4.7RC4 completely, as the proper tables are not created.
The same is repeatedly generated on successive attempts to install.
Comments
Comment #1
killes@www.drop.org commentedAre you sure you are running mysql 4.1? Try the file for 4.0.
Comment #2
lanesharon commentedtry dowloading the zip file again. Drop all the tables in your database (through phpmyadmin). And enter the SQL again, rebuilding the dropped tables. I had a bad download on RC4. You may have also.
Comment #3
kbahey commentedI don't think this is a real issue.
I just tried it with a fresh install of RC4, and did not have this issue on MySQL 4.1 and PHP 4.4 and Linux.
Druppy, what is your environment exactly (operating system, PHP version, MySQL version)
Comment #4
Zen commentedMoving to support until problem can be verified.
-K
Comment #5
pfaocleNeeds to be confirmed for 4.7.0.
I haven't had a problem using MySQL 4.1 and the appropriate ...41.mysql file.
Comment #6
Celestina commentedI found this page by searching for the very error code you show in your posts. I got this error while trying to set up the Drupal MySQL database. I tried importing both the 4.0 and 4.1 sql files (in separate instances with a fresh, empty database), and neither one worked. The 4.1 gives me the error listed here, and the 4.0 tells me there is an error in my syntax.
Here is my system info:
Operating system Linux
Kernel version 2.4.21-37.0.1.ELsmp
Machine Type i686
Apache version 1.3.34 (Unix)
PERL version 5.8.4
PHP version 4.4.1
MySQL version 4.0.25-standard
cPanel Build 10.8.1-STABLE 114
Comment #7
Celestina commentedSorry - I forgot to mention that I'm using the release version of 4.7.0
Comment #8
Zen commentedWhat was the syntax error with 4.0?
-K
Comment #9
Celestina commentedI was unable to reproduce the syntax error with the 4.0 sql file import, although it did happen twice before. However, I now get this when I go to my site in a browser:
Comment #10
Celestina commentedI'm an ass. Go ahead, slap me. Really.
Turns out my problem with the 4.0 sql file import had to do with the table prefix. In the site's settings.php file, I had specified a table prefix of "drupal470". However, the database import file did not specify a prefix. Naturally, this meant that settings.php was told to find and use tables with a prefix of "drupal470", none of which existed. I changed settings.php to no table prefix, and now it works fine. Feel free to use me as a good example of why you should pay more attention during installation :)
Comment #11
magico commentedComment #12
(not verified) commented