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

  • SEARCH
  • Home
  • 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 9033659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:17:12+00:00 2026-06-16T08:17:12+00:00

Possible Duplicate: 1064 error in CREATE TABLE … TYPE=MYISAM I am trying to install

  • 0

Possible Duplicate:
1064 error in CREATE TABLE … TYPE=MYISAM

I am trying to install a PHP script named php-stats, this one: http://www.php-stats.it/ that is a Php that provides information about statistic of web site.

I have used it in the past and it is pretty good.

Today I am trying to install it on my server but I have some problem

It need to be installed on the server and use the database…my problem is when it try to create the database table…go into error with many tables…

The errors have the form of the following one (this is related to one specific table):

Error executing: CREATE TABLE php_stats_cache ( user_id varchar(15) NOT NULL default ‘0’, data int(11) NOT NULL default ‘0’, lastpage varchar(255) NOT NULL default ‘0’, visitor_id varchar(32) NOT NULL default ”, hits tinyint(3) unsigned NOT NULL default ‘0’, visits smallint(5) unsigned NOT NULL default ‘0’, reso varchar(10) NOT NULL default ”, colo varchar(10) NOT NULL default ”, os varchar(20) NOT NULL default ”, bw varchar(20) NOT NULL default ”, host varchar(50) NOT NULL default ”, lang varchar(8) NOT NULL default ”, giorno varchar(10) NOT NULL default ”, level tinyint(3) unsigned NOT NULL default ‘0’, UNIQUE KEY user_id (user_id) ) TYPE=MyISAM
Error string: 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’ at line 17

I have also try to access inside the *.sql file that contains the query definition and execute the creation query table inside PHP MyAdmin, for example this query (related to the previus error):

DROP TABLE IF EXISTS php_stats_cache;
CREATE TABLE php_stats_cache (
  user_id varchar(15) NOT NULL default '0',
  data int(11) NOT NULL default '0',
  lastpage varchar(255) NOT NULL default '0',
  visitor_id varchar(32) NOT NULL default '',
  hits tinyint(3) unsigned NOT NULL default '0',
  visits smallint(5) unsigned NOT NULL default '0',
  reso varchar(10) NOT NULL default '',
  colo varchar(10) NOT NULL default '',
  os varchar(20) NOT NULL default '',
  bw varchar(20) NOT NULL default '',
  host varchar(50) NOT NULL default '',
  lang varchar(8) NOT NULL default '',
  giorno varchar(10) NOT NULL default '',
  level tinyint(3) unsigned NOT NULL default '0',
  UNIQUE KEY user_id (user_id)
) TYPE=MyISAM;

Ig I try to execute this query inside PhpMyAdmin I obtain the following error message:

#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 ‘TYPE=MyISAM’ at line 17

I also try to execute it on my local mysql server on my PC but I obtain always the same error message…

Why? What is the problem? How can I do to solve this problem?

Thank you

Andrea

  • 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-06-16T08:17:13+00:00Added an answer on June 16, 2026 at 8:17 am

    Using TYPE has been deprecated and it was removed in MySQL 5.5. Use ENGINE = MYISAM instead.

    CREATE TABLE php_stats_cache (....) ENGINE = MYISAM;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: storing money amounts in mysql I am trying to create a table
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: Whats wrong with this query mysql? I am using mysql and php
Possible Duplicate: How to get useful error messages in PHP? Im currently learning php
Possible Duplicate: nth-child for every two table rows I'm trying to work my way
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: PHP PDO: Can I bind an array to an IN() condition? I
Possible Duplicate: Learning to write a compiler I looked around trying to find out
Possible Duplicate: Reading through file using ifstream I'm trying to find a way to

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.