Cy Think Survey

Cy Think Survey

Surveys, Polls, Questionaires, Quizzes & cetera

Home
Help Index
About Codes
About Maintenance
About Parms
About Users
Code Implementation
Code Maintenance
Control Heirarchy
Documentation Maintenance
Field Add
Function Maintenance
Menu Maintenance
Merge Core Procedure
Merge Client Procedure
Page Add
Page Change
Page Copy
Program Creation
Program Maintenance
Parameter Maintenance
Ring Maintenance
Site Appearance
Site Maintenance
Site Setup
Site Setup Prep
System Maintenance
Table Add
Text Maintenance
Admin

Programmer's Procedure to Copy a Database Table  

Copying a database table is a necessary task when upgrading a client website when one or more tables are missing on the target website. This does not introduce new functionality into the core CMS and does not require changing documentation or program modules. Since this involves changes in the database, this procedure is aimed at the programmer or database administrator.

The general procedure to copy a table from one database to another is the same for every table. If the sql query you need is already saved in the D:\CyThink\coreSMS\sql folder you can skip steps 1 through 7. This is the procedure.

  1. Determine the table name.
  2. Access phpMyAdmin using the host control panel of the source website: Login >> MySQL Administration >> phpMyAdmin.
  3. Click the table name in the list of tables on the left side of the page.
  4. Click Export in the row of tabs at the top of the page.
  5. Note the option settings. Export: SQL. Structure: Checked. Add DROP TABLE: Checked. Data: Unchecked. Save as file: Checked. Compression: None. Click Go.
  6. Save the file in an appropriate local directory such as D:\CyThink\coreSMS\sql.
  7. Close the phpmyadmin window. Log out of the Control Panel.
  8. Access phpMyAdmin using the host control panel of the target website: Login >> MySQL Administration >> phpMyAdmin.
  9. Click the database name at the top of the list of tables.
  10. Click SQL in the row of tabs at the top of the page.
  11. Browse for the command file using the Browse button in the lower half of the page.
  12. Select the file, click Open and then click Go.
  13. Examine the results and fix as needed. If copying the code table, be sure the "codecode-codecode" row is present.
  14. Close the phpmyadmin window. Log out of the Control Panel.

This procedure is abbreviated and high level. It is documented to prompt the programmer as to the needed steps and is not intended to be a detailed step-by-step procedures.

Copyright © 2008 Cy Think, Inc.