Results 1 to 5 of 5

Thread: Error in Mysql inster

  1. #1

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    Error in Mysql inster

    For some reason it doesent like the timestamp part any ideas?

    It was working in one of my DB's then i had to change to a new server so i did a mysql dump, and tired reuploading and i get this

    CREATE TABLE `admin` (
    `id` int(11) NOT NULL auto_increment,
    `username` varchar(255) NOT NULL default '',
    `password` varchar(255) NOT NULL default '',
    `email` varchar(255) NOT NULL default '',
    `is_active` int(1) NOT NULL default '1',
    `lastlogin` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
    `admin` int(1) NOT NULL default '0',
    PRIMARY KEY (`id`),
    UNIQUE KEY `username` (`username`),
    UNIQUE KEY `email` (`email`)
    ) AUTO_INCREMENT=2 ;

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Error in Mysql inster

    Moved to database development.

    Are you getting an error when you run this? If so, what?

  3. #3

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    Re: Error in Mysql inster

    Yes im getting an error, it just says error near line:

    `lastlogin` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  4. #4

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    Re: Error in Mysql inster

    anyone?

  5. #5

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    Re: Error in Mysql inster

    anyone?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width