Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Installation / Upgrade Questions

Installation / Upgrade Questions Questions or issues concerning the installation of the Easy PHP Calendar script.

Closed Thread
 
Thread Tools Search this Thread Display Modes

MySQL syntax error
Old 04-09-2011, 01:39 PM   #1
wampa
Calendar User
 
wampa is offline
Join Date: Apr 2011
Posts: 2
Default MySQL syntax error

I encountered an error while trying to set up the database. Here's what I get in the database menu:

There was an error reading data from the mySQL database.

However, the connection to the database was successful!

Please click to run the installation script, setupSQL.php
to set up the database.

The error was reported as:

Unknown column 'startDate' in 'where clause'


No events will be saved until this issue is resolved.


Then when I click on setupsql.php I get this back:

> The connection to the mySQL database was successful!

> There was an error creating the mySQL database table.

The error was reported as:
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 'TYPE=MyISAM AUTO_INCREMENT=6' at line 19



I'm really new at MySQL so I haven't had much luck yet. Before running the above I made sure to create a database with a epc_calendar table that is blank except for the first field having a name of id. I tried changing the storage engine from InnoDB to MyISAM but that didn't seem to make a difference. I read up on there being problems with having 'TYPE' in the script vs 'ENGINE' but I'm not sure how to access the script to change it, or if that is even the real issue. Any help you guys could give would be greatly appreciated.

BTW I'm currently running xampp and php 5.3.5
 

Old 04-09-2011, 06:35 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Try running this SQL and see if it works:

CREATE TABLE `epc_calendar` (
`id` int(7) NOT NULL auto_increment,
`startDate` int(11) NOT NULL default '0',
`endDate` int(11) NOT NULL default '0',
`startTime` time NOT NULL default '00:00:00',
`endTime` time NOT NULL default '00:00:00',
`eventType` text NOT NULL,
`repeatx` int(7) NOT NULL default '0',
`title` text NOT NULL,
`descr` text NOT NULL,
`days` int(7) NOT NULL default '0',
`stop` int(7) NOT NULL default '0',
`month` tinyint(2) NOT NULL default '0',
`weekDay` tinyint(1) NOT NULL default '0',
`weekNumber` tinyint(1) NOT NULL default '0',
`category` text NOT NULL,
`eventKey` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 04-09-2011, 06:40 PM   #3
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

If that doens't work, remove "TYPE=MyISAM AUTO_INCREMENT=1".
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 04-09-2011, 11:23 PM   #4
wampa
Calendar User
 
wampa is offline
Join Date: Apr 2011
Posts: 2
Default

I took out the last line and it worked. Thanks Brian!
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected '?' frameitsam General Support 1 01-03-2010 08:24 PM
Parse error: syntax error, unexpected T_REQUIRE link2philly Installation / Upgrade Questions 1 06-28-2009 09:53 PM
MySQL Connection Error & Trial License KristyKay Installation / Upgrade Questions 2 12-28-2008 08:07 PM
error connecting to the mySQL database tracydem Installation / Upgrade Questions 4 10-05-2007 12:01 AM
There was an error creating the mySQL database table mkiely Installation / Upgrade Questions 3 11-10-2006 05:16 PM



All times are GMT -4. The time now is 04:28 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |