1. Source downloads 

https://launchpad.net/test-db/

http://dev.mysql.com/doc/employee/en/employees-introduction.html 



2. Data load 

C:\employees_db>c:\mariadb\bin\mysql -u root -p employees < employees.sql

Enter password: *****

INFO

CREATING DATABASE STRUCTURE

INFO

storage engine: InnoDB

INFO

LOADING departments

INFO

LOADING employees

INFO

LOADING dept_emp

INFO

LOADING dept_manager

INFO

LOADING titles

INFO

LOADING salaries



3. Data validation

C:\employees_db>c:\mariadb\bin\mysql -u root -p employees

Enter password: *****

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 8

Server version: 10.0.15-MariaDB mariadb.org binary distribution


Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [employees]> select count(dept_no) from departments ;

+----------------+

| count(dept_no) |

+----------------+

|              9 |

+----------------+

1 row in set (0.00 sec)


MariaDB [employees]> select count(emp_no) from employees ;

+---------------+

| count(emp_no) |

+---------------+

|        300024 |

+---------------+

1 row in set (0.12 sec)


MariaDB [employees]> select count(emp_no) from dept_emp;

+---------------+

| count(emp_no) |

+---------------+

|        331603 |

+---------------+

1 row in set (0.10 sec)


MariaDB [employees]> select count(dept_no) from dept_manager;

+----------------+

| count(dept_no) |

+----------------+

|             24 |

+----------------+

1 row in set (0.00 sec)


MariaDB [employees]> select count(emp_no) from salaries ;

+---------------+

| count(emp_no) |

+---------------+

|       2844047 |

+---------------+

1 row in set (0.42 sec)


MariaDB [employees]> select count(emp_no) from titles;

+---------------+

| count(emp_no) |

+---------------+

|        443308 |

+---------------+

1 row in set (0.16 sec)


MariaDB [employees]>



4. Data Schema

(- http://dev.mysql.com/doc/employee/en/sakila-structure.html)








블로그 이미지

Melting

,

-- 64bit kernel --

# wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-headers-3.14.1-031401_3.14.1-031401.201404141220_all.deb

# wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-headers-3.14.1-031401-generic_3.14.1-031401.201404141220_amd64.deb

# wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-image-3.14.1-031401-generic_3.14.1-031401.201404141220_amd64.deb



-- kernel installation --

# dpkg -i  linux-*.deb


# shutdown -r now


# lshw -C network



-- kernel removal --

# apt-get remove linux-headers-3.14.1* linux-image-3.14.1*


블로그 이미지

Melting

,
--- install ---
# apt-get install trash-cli
$ vi .bashrc
alias rm='trash-put'


--- usage ---
$ trash-list  
$ restore-trash
$ trash-empty 





블로그 이미지

Melting

,