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 1821 게시물 읽기
No. 1821
Re: Re: Re: shell script로 DB connect 하려는데 안돼네여..
작성자
정재익
작성일
2000-05-25 16:53
조회수
4,542

su - root

로 로그인 한 후에 다시 해 보시기 바랍니다.

만약 root로 로그인 후 된다면 뭔가 grant table 의 구성이 잘못된 것입니다.

 

> > > [root@stockchat bin]# pwd

> > > /usr/local/mysql/bin

> > > [root@stockchat bin]# ./mysql -u root -p password db; <--이렇게 하면

> > > 아래와 같이 에러가 떨어지네요.

> > > ./mysql Ver 9.36 Distrib 3.22.27, for pc-linux-gnu (i686)

> >

> > > 근데..접근이 안되니까...

> > > 아시는 분 계시면...답변좀...

> >

> > ./mysql -u root --password='password' -e 'SQL syntax' db

> > 이렇게 실행해 보시기 바랍니다.

>

> 아래와 같이 해두 안되네여...

>

> [www@stockchat bin]$ ./mysql -u root --password='password' db;

> ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)

>

> root에서는 mysql로 들어가거 든요..

>

> [root@stockchat bin]# ./mysql stock

> 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 \.

> Your MySQL connection id is 476869 to server version: 3.22.27

>

> Type 'help' for help.

>

> mysql>

>

> 근데 왜 스크립트에서는 access denied가 되는 거지요?

[Top]
No.
제목
작성자
작성일
조회
1818[질문]입니다.. C++Builder와 mySQL을 바로 연결하는 방법..
임승택
2000-05-25
4585
1815윈도우에서 작업한 DB를 리눅스로...
허상철
2000-05-25
4294
1817┕>Re: 윈도우에서 작업한 DB를 리눅스로...
정재익
2000-05-25 15:06:46
5168
1812초보입니다. 갈쳐 주세요
갈매기
2000-05-25
4426
1813┕>Re: 초보입니다. 갈쳐 주세요
정재익
2000-05-25 14:22:05
4364
1810shell script로 DB connect 하려는데 안돼네여..
서현수
2000-05-25
4584
1811┕>Re: shell script로 DB connect 하려는데 안돼네여..
정재익
2000-05-25 13:54:24
4276
1816 ┕>Re: Re: shell script로 DB connect 하려는데 안돼네여..
서현수
2000-05-25 15:05:42
4467
1821  ┕>Re: Re: Re: shell script로 DB connect 하려는데 안돼네여..
정재익
2000-05-25 16:53:40
4542
1826┕>Re: shell script로 DB connect 하려는데 안돼네여..
김순석
2000-05-26 02:29:03
4734
1807# 왜 이런 에러가?(ERROR 1045: Access denied for user...)
오원근
2000-05-25
4686
1809┕>Re: # 왜 이런 에러가?(ERROR 1045: Access denied for user...)
정재익
2000-05-25 10:59:46
5021
1803# 체크박스의 DB구성
김현석
2000-05-25
3963
1804┕>Re: # 체크박스의 DB구성
정재익
2000-05-25 03:56:32
4602
1802# [급질문]ASP 연결 할때?
송현정
2000-05-24
4265
1814┕>Re: # [급질문]ASP 연결 할때?
정재익
2000-05-25 14:35:53
4794
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.025초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다