database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 1573 게시물 읽기
No. 1573
방명록 깔다가요... 어떻게 해야 되나요...
작성자
이한준
작성일
2000-05-11 20:14
조회수
5,984

방명록 소스를요... (PHP3으로 된...) 구해서 하라는대로 해서 깔려고 하다가 문제가 발생했는데요... table이 작성된 install.sql파일을 GB_DB라는 데이터 베이스에다가 만들라는 것이었는데 아래와 같이 하라고 해서 했는데 옵션이 필요하다더군요... 어떻게 해야할 지 좀 가르쳐 주세요...

 

[mysql@dp guestbook]$ mysql GB_DB < install.sql

 

/usr/local/mysql/bin/mysql Ver 9.32 Distrib 3.22.22, for pc-linux-gnu (i686)

By TCX Datakonsult AB, by Monty

This software comes with ABSOLUTELY NO WARRANTY.

 

Usage: /usr/local/mysql/bin/mysql [OPTIONS] [database]

 

-A, --no-auto-rehash No automatic rehashing. One has to use 'rehash' to

get table and field completion. This gives a quicker

start of mysql.

-B, --batch Print results with a tab as separator, each row on

a new line. Doesn't use history file

-C, --compress Use compression in server/client protocol

-T, --debug-info Print some debug info at exit

-e, --execute=... Execute command and quit.(Output like with --batch)

-f, --force Continue even if we get an sql error.

-i, --ignore-space Ignore space after function names

-?, --help Display this help and exit

-h, --host=... Connect to host

-n, --unbuffered Flush buffer after each query

-O, --set-variable var=option

Give a variable an value. --help lists variables

-o, --one-database Only update the default database. This is useful

for skipping updates to other database in the update

log.

-p[password], --password[=...]

Password to use when connecting to server

If password is not given it's asked from the tty.

 

-P --port=... Port number to use for connection

-q, --quick Don't cache result, print it row by row. This may

slow down the server if the output is suspended.

Doesn't use history file

-r, --raw Write fields without conversion. Used with --batch

-s, --silent Be more silent.

-L, --skip-line-numbers Don't write line number for errors

-N, --skip-column-names Don't write column names in results

-S --socket=... Socket file to use for connection

-t --table=... Output in table format

-u, --user=# User for login if not current user

-v, --verbose Write more (-v -v -v gives the table output format)

-V, --version Output version information and exit

-E, --vertical Print the output of a query (rows) vertically

-w, --wait Wait and retry if connection is down

 

Possible variables for option --set-variable (-O) are:

max_allowed_packet current value: 25165824l

net_buffer_length current value: 16384l

 

그래서 이번엔 mysql로 들어가서 database를 만들려했더니만 ... 아래처럼 나오네요...

설정파일을 고쳐줘야 되는 것 같은데.. 어떤 파일을 건드리면 되죠?

 

mysql> create database GB_DB;

ERROR 1044: Access denied for user: '@localhost' to database 'GB_DB'

 

아시는 분 부디 부탁합니다.... 감사합니다.

[Top]
No.
제목
작성자
작성일
조회
1576호환 DB를 찾고 있습니다..
조종흥
2000-05-12
4482
1578┕># Re: 호환 DB를 찾고 있습니다..
토 ㄲ ㅣ
2000-05-12 10:14:49
4903
1575write와 read를 동시에 실행시 접속 끊기는 문제 [치명적]
지니
2000-05-12
5457
1579┕># Re: write와 read를 동시에 실행시 접속 끊기는 문제 [치명적] -&gt; 락을 걸어서 사용해보세요
문태준
2000-05-12 10:17:44
5143
1574설정시 다음과 같은 에러입니다. 어떻게 해야 합니까...
이한준
2000-05-12
4314
1582┕>Re: 설정시 다음과 같은 에러입니다. 어떻게 해야 합니까...
정재익
2000-05-12 13:18:19
4611
1573방명록 깔다가요... 어떻게 해야 되나요...
이한준
2000-05-11
5984
1577┕># Re: 방명록 깔다가요... 어떻게 해야 되나요...
토 ㄲ ㅣ
2000-05-12 10:13:55
4859
1571# mysql 재설치에 대해서 좀더 상세하게 답변희망.
전원탁
2000-05-11
4543
1572┕># Re: # mysql 재설치에 대해서 좀더 상세하게 답변희망. -&gt; 대몬없앰-&gt;디렉토리삭제
문태준
2000-05-11 13:29:07
5507
1568# 엑세스에서...
컴생컴사
2000-05-11
4540
1569┕>Re: # 엑세스에서...
정재익
2000-05-11 04:29:58
4440
1565mysql에도 혹시 이런 기능이(오라클에 있는)
베짱이
2000-05-10
4346
1566┕>Re: mysql에도 혹시 이런 기능이(오라클에 있는)
정재익
2000-05-11 01:08:59
5438
1570┕># [질문]rownum이나 inlineview와 같은 기능이 머죠?
문태준
2000-05-11 10:10:31
5195
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.021초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다