LinuxÒÁµéÔ°ÂÛ̳'s Archiver

mooncold ·¢±íÓÚ 2006-11-15 16:11

Mysql ½¨Á¢ tableµÄÎÊÌâ¡£¡£

mooncold@debian-mooncold:~$ su
Password:

debian-mooncold:/home/mooncold# mysql -u xywu -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 49 to server version: 4.0.24_Debian-10sarge2-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use pdf;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> create table book ( id INT(11), filename VARCHAR, filetype CHAR );
ERROR 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 ' filetype CHAR )' at line 1
mysql> create table book ( id INT(11) );
ERROR 1: Can't create/write to file './pdf/book.frm' (Errcode: 13)
mysql> create table book ( id INT(11), filename VARCHAR, filetype CHAR);
ERROR 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 ' filetype CHAR)' at line 1
mysql>

ÉÏÃæµÄ mysqlµÄÕÊ»§ ¾ßÓÐËùÓеÄȨÏÞ ¡£ÎÒ»» mysqlµÄrootÕÊ»§½¨Á¢Êý¾Ý±íµÄʱºòÒ²ÊdzöÏÖͬÑùµÄÎÊÌâ¡£
ÎÒµÄϵͳÊÇ debian 3¡£1µÄ¡£°²×°µÄ mysqlÊÇϵͳËù´øµÄ¡£
Apache+PHP+MysqlÓÃÆðÀ´¶¼Ã»ÎÊÌâ¡£

Roc.Ken ·¢±íÓÚ 2006-11-15 18:40

> Errcode: 13
Õâ¸öÒ»°ãÊÇȨÏÞ²»×ãÒýÆðµÄ, ÇëÈ·¶¨mysql¶ÔÏà¹ØÄ¿Â¼ÓÐдȨÏÞ

mooncold ·¢±íÓÚ 2006-11-15 19:34

лл ¡£¡£¡£

²éµ½ÊÇʲôÎÊÌâÁË ¡£¡£

ÐÞ¸Ä ËùÔÚĿ¼µÄȨÏÞºó¾ÍokÁË¡£

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.