Knowledge Is Power: A Wise Man Has Great Power, and A Man of Knowledge Increases Strength (Proverbs 24:5)
Knowledge Is Power: A Wise Man Has Great Power, and A Man of Knowledge Increases Strength (Proverbs 24:5)
Jeong Chul
tland12.wordpress.com
www.youtube.com/user/tland12
Computer Science
ITC and RUPP in Cambodia
Step 1
Step 2
Step 3
Step 4
Step 5
Field 2
Field 3
Field name
Name
Age
Favorite Color
Record 1
Jeong Chul
30
Green
Record 2
Kim Chan
40
Blue
Record 3
Sophon Pho
22
Black
2.Install packages
# yum install mysql-server mysql mysql-devel mysql-libs mysql-connectorodbc
//configuration file
//data dir
//log file
//starting script file
//mysql binary files
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
2. Choosing options
# vi /etc/my.cnf
# /usr/libexec/mysqld verbose help | less
3. Service startup
3. Sorting data
mysql> select * from name order by lastname;
mysql> select * from name order by city;
3. Deleting table
mysql> drop table name;
2. Granting access
a. Full privileges
mysql> grant all privileges on data.* to tland@localhost;
mysql>select host,user,password from mysql.user where user = tland;
b. Limited privileges
mysql> grant delete,insert,select,update on data.* to tland@localhost;
mysql> flush privileges;
mysql> show grants for tland@localhost;
6. Rename user
mysql>rename user tland@localhost to chul@localhost;
mysql>select user from mysql.user where user = chul;
7. Deleting user
mysql> drop user chul@localhost;
3.Text backup
1) Back up from the Command Line using mysqldump
a. Backup one database
# mysqldump -u root -p data > data.sql
b. Backup certain tables
# mysqldump -u root -p data name address > data_backup.sql
//slower, older
d. phpMyAdmin configuration
Blowfish secret
www.question-defense.com/tools/phpmyadmin-blowfish-secret-generator
# vi /usr/share/phpMyAdmin/config.inc.php
$cfg['blowfish_secret'] = 't}T*_xZaN8z}5S*UTd}7UPByGu]}=1UT8|gv##zj=vNy|6';
Access testing
http://localhost/phpMyAdmin/
www.mysql.com/downloads
mysql-workbench-gpl-5.2.47-win32