Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6142843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:26:36+00:00 2026-05-23T18:26:36+00:00

I has a MySQL database set up locally with phpmyadmin. I wanted to use

  • 0

I has a MySQL database set up locally with phpmyadmin. I wanted to use the available tables in a remote database, so I exported the SQL from phpmyadmin and tried to run it on the other DB.

This is what the export gave me:

CREATE TABLE IF NOT EXISTS `messages` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Title` varchar(255) NOT NULL,
  `Message` text NOT NULL,
  `MsgType` varchar(10) DEFAULT NULL,
  `Important` int(1) NOT NULL DEFAULT '0',
  `Poster` int(5) DEFAULT NULL,
  `Date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=37 ;

However, now it complains that there is a parse error

near ‘CURRENT_TIMESTAMP, PRIMARY KEY (ID) ) ENGINE=MyISAM DEFA”.

It worked on my local db, why not here? What changed and how do I fix it?

EDIT: I’ve tried using other functions like NOW() or CURDATE() as well, same problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:26:37+00:00Added an answer on May 23, 2026 at 6:26 pm

    From the documentation:

    Note In older versions of MySQL (prior to 4.1), the properties of the
    TIMESTAMP data type differed significantly in several ways from what
    is described in this section (see the MySQL 3.23, 4.0, 4.1 Reference
    Manual for details); these include syntax extensions which are
    deprecated in MySQL 5.1, and no longer supported in MySQL 5.5. This
    has implications for performing a dump and restore or replicating
    between MySQL Server versions.

    MySQL 4.0.24 is incredibly outdated, at this point – consider migrating to a version that starts with a 5. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I inherited MYSQL database that has lots of tables with data like CREATE TABLE
I have a mysql database which has grown to over 200 tables in it.
I'm working with a MySQL database that has some data imported from Excel .
I read data from a mysql database that has is filled by php scripts.
I have created a MySQL database using MySQL Workbench. It has about 20 tables.
i have a simple mysql database. it has 3 tables. here is the create
I am trying to return a result set from a MySQL database table of
In a MySQL database column that has been set to AUTO_INCREMENT , can I
I have three tables set up in a MySQL database called event, status and
I am trying to use sqlalchemy to connect with mysql database. I have set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.