전체 글
-
Mysql USER 추가Linux/Tools 2015. 11. 21. 07:53
1. user create mysql> CREATE USER 'user'@localhost IDENTIFIED BY ??????; mysql> GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost'; mysql> FLUSH PRIVILEGES; 2. DB create mysql> create database testdbname; 3. premition DB ALL PRIVILEGES - 모든데이터베이스에 대한 권한을 가지게 됨 CREATE - 새로운 테이블 또는 데이터베이스를 생성할 수 있음 DROP -테이블 또는 데이터 베이스를 삭제 DELETE - 테이블 삭제 INSERT - 테이블에 row 를 삽입가능 SELECT - 데이터베이스의 select 명령문을 사용 UPD..
-
디스크 마운드(mount) 하기Linux/Ubuntu 2015. 6. 7. 12:41
0) 제 2의 하드 디스크가 물리적으로 붙은 상태에서 부팅 1) HDD 파티션 & mkfs $ sudo fdisk /dev/sdbd 명령으로 기존 파티션 삭제 후n 명령으로 하나의 프라이머리 파티션 생성w 명령으로 저장 후 q 명령으로 종료==> /dev/sdb1 파티션 생성 $ sudo mkfs.ext4 /dev/sdb1위 명령으로 파일 시스템 생성합니다. 2) /etc/fstab 에 넣고 mount & chown $ sudo blkid/dev/sda1: UUID="5031-6925" TYPE="vfat" /dev/sda2: UUID="a8068ce6-6d75-4925-ad44-32022364b836" TYPE="ext2" /dev/sda3: UUID="amJDny-UNl5-s4VM-N4Dl-oA6E-..
-
aptitude 명령어Linux/Commands 2014. 9. 27. 22:21
About aptitude aptitude is the text-based front-end for the APT package management system. It allows the user to view the list of packages and to perform package management tasks such as installing, upgrading, and removing packages. Actions may be performed from a visual interface or from the command-line. Syntax aptitude [...] {autoclean | clean | forget-new | keep-all | update} aptitude [...] ..
-
apt-cache 명령어Linux/Commands 2014. 9. 27. 22:19
About apt-cache apt-cache queries the package cache of the Advanced Packaging Tool (APT), which is common on Linux systems such as Debian and Ubuntu. Most commonly, this is used to search for packages and package names. It's also useful for helping you keep track of software dependencies. Syntax apt-cache [-agipns] [-o=config_string] [-c=config_file] {gencaches | showpkg pkg... | showsrc pkg... ..
-
apt-get 명령어Linux/Commands 2014. 9. 27. 22:17
About apt-get apt-get is the command-line tool for working with APT software packages. APT (the Advanced Packaging Tool) is an evolution of the Debian .deb software packaging system. It is a rapid, practical, and efficient way to install packages on your system. Dependencies are managed automatically, configuration files are maintained, and upgrades and downgrades are handled carefully to ensure..