1. Trang chủ
  2. » Công Nghệ Thông Tin

bài giảng introduction to phpmyadmin - leandro hermida

10 194 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 800,27 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

27-Aug-2007 2• Web Site – http://www.phpmyadmin.net/ • Installation – Method 1: RPM package distribution • Fedora package is phpMyAdmin • As root, from the terminal execute yum install p

Trang 1

Leandro Hermida

EMBnet August 28, 2007

Trang 2

27-Aug-2007 2

• Web Site

http://www.phpmyadmin.net/

• Installation

– Method 1: RPM package distribution

• Fedora package is phpMyAdmin

• As root, from the terminal execute yum install phpMyAdmin

• Dependencies will be installed for you – Method 2: From web site distribution

• Download zip archive

• As regular user, unzip into /home

• As root, unzip into /usr/local or /opt

• Additionally must manually configure Apache httpd.conf with <VirtualHost> container for phpMyAdmin

Trang 3

• Configuration

– Important files:

• /etc/httpd/conf.d/phpMyAdmin.conf Apache VirtualHost setup

• /usr/share/phpMyAdmin/config.inc.php phpMyAdmin configuration

• /etc/php.ini General PHP configuration

– For security reasons phpMyAdmin can only be used from localhost by

default You might have to change the phpMyAdmin.conf file to allow from IPv6 socket ::1 for localhost instead of 127.0.0.1 so look at

/etc/hosts to see what localhost refers to.

Trang 4

27-Aug-2007 4

• phpMyAdmin

SHOW DATABASES ;

Trang 5

• phpMyAdmin

SHOW STATUS ;

SHOW INNODB STATUS ;

Trang 6

27-Aug-2007 6

• phpMyAdmin

SHOW VARIABLES ;

Trang 7

• phpMyAdmin

GRANT privilege1, privilege2, ON TO user@hostname [ identified by password ]; REVOKE privilege1, privilege2, ON FROM user@hostname [ identified by password ];

Trang 8

27-Aug-2007 8

• phpMyAdmin

SHOW PROCESSLIST ;

SHOW FULL PROCESSLIST ;

Trang 9

• phpMyAdmin

[user@computer ~]$ mysqldump -u username -h host -p password database > export.sql

Trang 10

27-Aug-2007 10

• phpMyAdmin

[user@computer ~]$ mysql -u username -h host -p password -D database < import.sql

USE database_name ;

SOURCE import.sql ;

Ngày đăng: 17/10/2014, 07:23

w