- Joomla! 1.5 Cookbook
- Tom Canavan
- 277字
- 2021-04-09 22:58:46
In this chapter, we will cover:
- Exporting a database
- Importing a database
- Working with database rows and tables
- Removing a table
- Emptying a table
In the first chapter and recipes, you were shown how to setup a database and establish users. The tool for driving this is called, phpMyAdmin.
phpMyAdmin is a popular, open-source tool that is a standard on most web hosts. Written in PHP, it enables you to handle all the administration of your MySQL database, keeping you from working in the command-line mode.
Here is an example of a command for setting up a new user:
CREATE USER 'jcookbookadmin'@'localhost' IDENTIFIED BY 'MyPassword';
or creating a database
CREATE DATABASE jbookdb;
or assigning privileges to it
GRANT ALL PRIVILEGES ON 'jbookdb' . * TO 'jcookbookadmin'@'localhost';
As you can see, attempting to remember all those commands is probably more than you want or need.
As Joomla! is primarily a database-powered system, from time to time you will need to know your way around phpMyAdmin for some of the tasks you may face.
One important item that phpMyAdmin can help you with is exporting your database. What this means is backing up your database and putting it in a safe place.
In later chapters, you will learn how to install and use tools to assist with backup and recovery; however in an emergency having knowledge of this tool is important.
This tool can also be dangerous and I STRONGLY RECOMMEND, you backup your database (using export) before you try anything. That way you can quickly restore it.
Before diving in, let's learn some terms that are used in describing databases.

- UG NX 9.0中文版基礎(chǔ)與實(shí)例教程
- 邊做邊學(xué):Photoshop+CorelDRAW綜合實(shí)訓(xùn)教程
- UG NX 完全實(shí)例解析
- Photoshop+Adobe Camera Raw+Lightroom(攝影后期照片潤飾實(shí)戰(zhàn))
- Premiere視頻編輯應(yīng)用教程:PremierePro 2020(微課版)
- 攝影輕松入門:Photoshop后期處理
- After Effects 2022從入門到精通
- Photoshop CC入門與提高(超值版)
- Refactoring with Microsoft Visual Studio 2010
- 中文版UG NX 7.0基礎(chǔ)教程
- 剪映專業(yè)版:短視頻創(chuàng)作案例教程(全彩慕課版)
- UG NX 12.0中文版實(shí)戰(zhàn)從入門到精通
- Cinema 4D/After Effects印象 影視包裝技法精解基礎(chǔ)篇
- SPSS統(tǒng)計(jì)分析與應(yīng)用
- 中文版Photoshop CC 2018基礎(chǔ)培訓(xùn)教程(全彩版)