qmail 관련 mysql 오류입니다....도와주세요...

samskara의 이미지

리눅스 관련 사항은 초보라서 이렇게 도움을 다시 한번 구하고자 합니다...
아래와 같은 메세지가 나타납니다...

[root@khol /]# mysql -u root -p qmail
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 35 to server version: 3.23.41

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

mysql> insert into users(id,crypt,name,uid,gid,shell,home,start_date) value('asline',encrypt('9999'),'asline12','9999',1250,1000,'/bin/false','/user2/mail01/asline','2003-08-27');
ERROR 1064: You have an error in your SQL syntax near 'value('asline',encrypt('9999'),'asline12','9999',1250,1000,'/bin/false','/user2/' at line 1

samskara의 이미지

mysql> desc user;
+-------------+---------------------+------+-----+------------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------------+------+-----+------------+-------+
| id | varchar(32) | | PRI | | |
| crypt | varchar(32) binary | | | | |
| passwd | varchar(32) binary | | | | |
| name | varchar(50) | | | | |
| uid | int(10) unsigned | | | 65534 | |
| gid | int(10) unsigned | | | 65534 | |
| shell | varchar(100) binary | | | | |
| home | varchar(100) binary | | | | |
| start_date | date | | MUL | 0000-00-00 | |
| expire_date | date | | MUL | 3000-12-31 | |
| active | enum('Y','N') | | MUL | Y | |
| quota_size | int(10) unsigned | | | 0 | |
| signature | tinytext | YES | | NULL | |
| ip | varchar(20) | YES | | NULL | |
+-------------+---------------------+------+-----+------------+-------+
14 rows in set (0.00 sec)

samskara의 이미지

mysql> insert into users(id,crypt,passwd,name,uid,gid,shell,home,start_date)
-> values('test',encrypt('9999'),'9999','test','9999',1250,1000,'/bin/false','/user2/mail01/test','2003-08-27');
ERROR 1146: Table 'qmail.users' doesn't exist
mysql>

supersky의 이미지

한참을 봤습니당. 뭐가 문제가 있나~~

^^

table 이름이 user입니까? users입니가?
users란 table은 없는것 같습니다. user table은 있는것 같구요..

그럼.~~

void main()
{
printf("Hello World\n");
exit(0);
}
/* 초심으로 돌아가자~~~~~ */

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.