Open Source Web Development with LAMP Using Linux, Apache, MySQL, Perl, and PHP [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Open Source Web Development with LAMP Using Linux, Apache, MySQL, Perl, and PHP [Electronic resources] - نسخه متنی

James Lee, Brent Ware

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید










5.5 Loading and Dumping a Database


We can load a database or otherwise execute SQL commands from a file. We simply put the commands or database into a filelet's call it mystuff.sql and load it in with this command:


$ mysql people < mystuff.sql

We can also dump out a database into a file with this command:


$ mysqldump people > entiredb.sql

For fun, try the mysqldump command with the people database (a gentle reminder: the password is LampIsCool):


$ mysqldump -uapache -p people
Enter password:

Notice that this outputs all the SQL needed to create the table and insert all the current records. For more information, see man mysqldump.


/ 136