Bug #29792 Cannot create table because of field count
| Submitted: | 13 Jul 2007 18:15 | Modified: | 15 Jul 2007 0:43 |
|---|---|---|---|
| Reporter: | Hui Ling Tan | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 5.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[13 Jul 2007 18:15]
Hui Ling Tan
[13 Jul 2007 21:43]
MySQL Verification Team
Thank you for the bug report. Are you able to create tables using the mysql client?. Thanks in advance.
[15 Jul 2007 0:18]
Hui Ling Tan
I tried your suggestion of creating table using MySQL client. But it did not work. This is how i create table using the client: mysql> CREATE Category (CatID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, CatName VARCHAR(30)); Now is the error message: ERROR1064 (42000): You have an error in your SQL syntax; check the manual that correspond to your MySQL server version for the right syntax to use near 'Category (CatID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, CatName VARCHAR(30)' at line 1
[15 Jul 2007 0:29]
MySQL Verification Team
Thank you for the feedback. This isn't a bug instead it is a wrong
syntax creating a table, please read the Manual how to use and use
SQL commands. Thanks in advance.
mysql> CREATE Category (CatID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> CatName VARCHAR(30));
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for
use near 'Category (CatID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
CatName VARCHAR(30))' at line 1
mysql> CREATE Table Category (CatID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
-> CatName VARCHAR(30));
Query OK, 0 rows affected (0.13 sec)
[15 Jul 2007 0:43]
Hui Ling Tan
Thanks for your help. But why is it that phpmyadmin can't create a table?
[21 Aug 2007 18:55]
john peters
Check this out : http://forum.php-myadmin.ru/viewtopic.php?pid=1862 Its in Russian, but this was the suggested "workaround" which worked for me, ie: comment out these lines // unset($_REQUEST[$key]); // unset($_GET[$key]); // unset($_POST[$key]); // unset($GLOBALS[$key]); in libraries.commonlib.php (under your phpmyadmin install)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.073 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.