검색결과 리스트
Database에 해당되는 글 2건
- 2007.07.25 mysql , C 연동. 4
- 2007.07.19 mysql 에서 유저 추가 및 테스트...
글
mysql , C 연동.
Computer/ETC
2007. 7. 25. 14:12
프로젝트 하다가...찾은 내용들.
'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 에서 유저 추가 및 테스트...
Computer/Linux Tips
2007. 7. 19. 16:14
은근.....복잡하다 -_- ....
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 |