Download E-Commerce Databases

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
E-Commerce Databases
Database management / administration
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
1
Database
Management
Ver: 1.0
Database Management
• Access Control (user control, access control to
database and tables)
• Back up and export/import of databases (dump
utility)
• Optimise Database (Performance)
• How to Connect (a first limited example)
through an API
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
2
User Control
• Granting access rights for users
• Either by calling GRANT or REVOKE or by
directly changing the user (defining user rights)
and db tables (defining access to certain
databases by users)
• See syntax in notes page below
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
3
Direct DB Table Change
• Granting access rights to
databases by directly inserting into
the db table
• see code examples in the notes
page
Db table with
different access
rights (privacy)
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
4
Direct User Table Change
• Granting access rights for users by
directly inserting into the user table
• see code examples in the notes
page
user table with
different access
rights (privacy)
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
5
Changing Rights with
phpMyAdmin
Open phpMyAdmin
Granting and
revoking
specific rights
rights
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Revoking user
access
Database Management
6
Changing Rights with
phpMyAdmin
Open phpMyAdmin
Granting and
revoking
specific rights
rights
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Revoking user
access
Database Management
7
How do APIs Work
• Imagine APIs (Application Interface) as a
standardised set of functions that allow
programs to access databases and execute
SQL statements on that database
• There are APIs for PHP, PERL, Java ... To work
with databases e.g. MySQL
• To connect you need to execute your
commands as a specific user which you need to
set up first (see previous slides)
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
8
Database Backup
• Dumping a Database
– Structure
– Structure and Data
– Only Data
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
9
Dump - Structure Only
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
10
Dump - Data Only
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
11
Import Dump
• Select SQL File
– browse for the .sql file
– choose GO
– Data / Structure will be
imported
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
12
Exercise 3 Master
Example 1 and 2
• Enter the user with appropriate rights through
which you later want to execute all commands
using the phpMyAdmin wizard
• Run and demonstrate a first structure dump
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
13
References
• http://www.mysql.com/doc/en/User_Account_Management.html
• MySQL Reference Manual , Michael Widenius, David Axmark, June
2002
• http://www.mysql.com/doc/en/MySQL_Database_Administration.ht
ml
E-COMMERCE JOBS
This project (Project number: HU/01/B/F/PP-136012)
is carried out with the financial support of the
Commssion of the European Communities
under the Leonardo da Vinci Programme
Database Management
14
Related documents