ITEM | ACTION |
Install |
sudo apt-get install apache2 php libapache2-mod-php mysql-server phpmyadmin
|
Setup database |
- Log into mySQL
mysql -u root -p
- Within mySQL create database
mysql> create database [dbname];
mysql> quit;
- Load DB file
mysql -u root -D [dbname] -p < DB.sql
|
View table |
- Log into mySQL
mysql -A -u root -p
- Select database to work with
mysql> use [dbname];
- Show available tables
mysql> show tables;
- Show table fields
mysql> desc [table];
- Show table contents
mysql> SELECT * FROM [table];
|
Refs |
|