검색결과 리스트
MySQL에 해당되는 글 4건
- 2007.08.24 [MySql]is not allowed to connect to this MySQL server
- 2007.07.25 mysql , C 연동. 4
- 2007.07.19 mysql 에서 유저 추가 및 테스트...
- 2007.07.16 mysql: Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock'
글
[MySql]is not allowed to connect to this MySQL server
출처: http://blog.naver.com/ddak2ya?Redirect=Log&logNo=30004371547 Trouble Shooting - Error MSG: Host 'XXX' is not allowed to connect to this MySQL server Host 'mcr-tf3c16x72pp' is not allowed to connect to this MySQL server |
|
|
localhost로는 접속이 가능하고 IP로는 접속이 불가능한 이유는 접속가능한 IP로 등록이 되어 있지 않기 때문입니다. select * from mysql.user 로 보시면 localhost는 보이나 IP는 보이지 않을것입니다. mysql> grant all privileges on db명.* to 사용자계정@'IP주소' identified by '비밀번호' with grant option; mysql> grant reload,process on *.* to admin@localhost; mysql> FLUSH PRIVILEGES; 위의 명령어로 접속가능한 IP로 등록해 주면됩니다. |
'Computer > ETC' 카테고리의 다른 글
원격 데스크탑 포트번호 바꾸기 (3) | 2008.11.24 |
---|---|
아웃룩에서 "보안상 안전하지 않을 수 있으므로 다음 첨부 파일에 액세스할 수 없도록 막았습니다" (0) | 2008.05.09 |
mysql , C 연동. (4) | 2007.07.25 |
Windows batch programming (0) | 2007.07.16 |
WCDMA 인터넷 하기 (2) | 2007.04.19 |
설정
트랙백
댓글
글
mysql , C 연동.
프로젝트 하다가...찾은 내용들.
'Computer > ETC' 카테고리의 다른 글
아웃룩에서 "보안상 안전하지 않을 수 있으므로 다음 첨부 파일에 액세스할 수 없도록 막았습니다" (0) | 2008.05.09 |
---|---|
[MySql]is not allowed to connect to this MySQL server (0) | 2007.08.24 |
Windows batch programming (0) | 2007.07.16 |
WCDMA 인터넷 하기 (2) | 2007.04.19 |
Microsoft Word 단축키 (1) | 2007.03.31 |
설정
트랙백
댓글
글
mysql 에서 유저 추가 및 테스트...
은근.....복잡하다 -_- ....
DB명: profile
User ID: caw
-- system console --
mysql -u root
-- mysql console --
use mysql
insert into user (host,user,password) values ('localhost','caw',password('password'));
// 뒤의 y들은 다 권한들이다. schema를 잘 보고 개수를 잘 맞춰야함 ;;;
insert into db values('localhost', 'profile', 'caw', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y');
-- system console --
mysqladmin create profile
/etc/init.d/mysqld restart // root에서 작업
----- test -----
mysql -u caw -p password
show databases; // profile db가 생성되었는지 확인
use profile
show tables;
create table mytable(id int, name char(10));
insert into mytable values(1, 'namename');
select * from mytable;
drop table mytable;
'Computer > Linux Tips' 카테고리의 다른 글
grep 사용법 (0) | 2007.09.27 |
---|---|
mysql: Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock' (0) | 2007.07.16 |
MPlayer v1.0rc1 source compile trouble shooting (0) | 2007.07.10 |
"ld: cannot find -lX11" error가 날때. (2) | 2007.07.09 |
Linux Shell programming 관련 (0) | 2007.04.17 |
설정
트랙백
댓글
글
mysql: Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock'
Fedore에서 mysql을 설치하고 실행하려는데 다음과 같은 에러 발생.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock' (2)
대책을 찾던 중 KLDP에 나온 내용으로 해결.
'Computer > Linux Tips' 카테고리의 다른 글
grep 사용법 (0) | 2007.09.27 |
---|---|
mysql 에서 유저 추가 및 테스트... (0) | 2007.07.19 |
MPlayer v1.0rc1 source compile trouble shooting (0) | 2007.07.10 |
"ld: cannot find -lX11" error가 날때. (2) | 2007.07.09 |
Linux Shell programming 관련 (0) | 2007.04.17 |