Loading...
 

 
 

1.  Import database.sql back in your server with phpmyadmin


There are two easy ways to proceed:
  1. Through web interface (Phpmyadmin), o
  2. Through command at a terminal screen (command mysql)

1.1. Through web interface (Phpmyadmin)

Go to your Phpmyadmin installation.
Image


Select your database name, from the drop down list on the left column in the previous screen.

Image


You have to go to the phpmyadmin tab which says "SQL", (versions 2.6.x of Phpmyadmin, like the one in the https://tiki.org/TikiLiveCD, or tab "Import", included in version 2.8.x of Phpmyadmin, for instance).

Export tab, in Phpmyadmin version 2.8.x
Export tab, in Phpmyadmin version 2.8.x


1.2. Through command at a terminal screen (command mysql)

Image


Image


Write a command like
mysql -uuser -ppass tiki19 < tiki19_backup_yymmdd.sql


In your case, change in the example above:
  • user for your username at the mysql server
  • pass for the password for that username at the mysql server
  • tiki19 for your database name, and
  • yymmdd for the two digits of year, month and day, respectively, for instance, to have your backups easily sorted by name and date of creation also.

If you had exported your database without the option to delete the tables (Drop tables, from the Backup instructions through Phpmyadmin) before attempting to restore them from the database backup, then you will have to empty the database tables first. (through phpmyadmin, for instance).

And in case that you have troubles with the character set used to import the database to mysql, you can specify the character set in which your sql database backup is encoded. In order to do so, you can add the parameter --default-character-set=code (and as code, you can set for instance utf8 or iso-8859-1)

As an example, in order to set the character set to utf8, you would have to write something like:
mysql -uuser -ppass --default-character-set=utf8 tiki19 < tiki19_backup_yymmdd.sql



1.3. Using MySqlDumper or HeidiSql

Both tools can import a sql file. See there homepages for details and examples.
  • http://www.mysqldumper.net/
  • http://www.heidisql.com/
  • BigDump (Staggered import of large and very large MySQL Dumps even through the web-servers with hard runtime limit and those in safe mode)
  • Adminer (formerly phpMinAdmin) is a full-featured MySQL management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server.

2. Working solution of simple interface for the assignment

Two pages are created for the simplest interface.

2.1. Wiki Page: r_test_xavi

Hola, mi primera prueba de interfaz web

{maketoc}

!!# Formulario de entrada de datos
{tracker trackerId="5" fields="57:9:25:32:39"}

!!# Listado de análisis efectuados
{trackerlist trackerId="5" fields="57:9:25:32:39" showlinks="y" ignoreRequestItemId="y" url="tiki-index.php?page=Day 3&itemId="}

!!# Resultado del cálculo de la potencia
{trackerlist trackerId="5" fields="57:9:25:32:39" tplwiki="r_test_xavi_template" max="1" view="user" showpagination="n"}


2.2. Wiki Page: r_tests_xavi_template

{wikiplugin _name=rr}

#require(pwr, lib="/home/tuusuario/R/x86_64-pc-linux-gnu-library/2.15" )
require(pwr)

pwr.t.test(n={$f_9},d={$f_25},sig.level={$f_32},alternative="{$f_39}")

{/wikiplugin}


2.3. Tracker definition: Tracker Id 5

To learn how to use the code shown below, see https://doc.tiki.org/Import+Trackers
[TRACKER]
autoAssignCreatorGroup = n
autoAssignCreatorGroupDefault = n
autoAssignGroupItem = n
autoCopyGroup = n
autoCreateCategories = n
autoCreateGroup = n
defaultOrderDir = asc
defaultOrderKey = -1
defaultStatus = o
doNotShowEmptyField = n
newItemStatus = o
oneUserItem = n
orderAttachments = created,hits,filesize
ratingOptions = -2,-1,0,1,2
showAttachments = n
showComments = n
showCreated = n
showCreatedBy = n
showCreatedView = n
showLastComment = n
showLastModif = n
showLastModifBy = n
showLastModifView = n
showRatings = n
showStatus = n
showStatusAdminOnly = n
simpleEmail = n
useAttachments = n
useComments = n
useRatings = n
userCanTakeOwnership = n
writerCanModify = n
writerGroupCanModify = n
trackerId = 5
name = Tracker de Xavi
descriptionIsParsed = n
created = 1337277268
lastModif = 1378807353
items = 4


2.4. Tracker fields from Tracker Id 5

To learn how to use the code shown below, see https://doc.tiki.org/Import+Trackers
[FIELD57]
fieldId = 57
name = Nombre del análisis
permName = nombreDelAnLisis
position = 0
type = t
options = 
isMain = y
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = y
description = 
descriptionIsParsed = n
[FIELD70]
fieldId = 70
name = Añadido por
permName = aAdidoPor
position = 10
type = u
options = 1,0
isMain = n
isTblVisible = y
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = 
descriptionIsParsed = n
[FIELD9]
fieldId = 9
name = n
permName = n
position = 20
type = n
options = 1,0,,,0
isMain = n
isTblVisible = n
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = Tamaño poblacional. Número entero.
descriptionIsParsed = n
[FIELD25]
fieldId = 25
name = d
permName = d
position = 30
type = n
options = 1,0,,,0
isMain = n
isTblVisible = n
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = Tamaño del efecto. Número decimal, normalmente entre 0 y 1,0. Ten en cuenta que el carácter a usar como separador decimal depende del navegador que uses: es la coma (,) con  Chrome y Safari, y el punto (.) con Firefox, Opera, IE9 y afines.
descriptionIsParsed = n
[FIELD32]
fieldId = 32
name = sig.level
permName = sigLevel
position = 40
type = n
options = 1,0,,,0
isMain = n
isTblVisible = n
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = Nivel de significación. Número decimal, entre 0 y 1,0. Ten en cuenta que el carácter a usar como separador decimal depende del navegador que uses: es la coma (,) con  Chrome y Safari, y el punto (.) con Firefox, Opera, IE9 y afines.
descriptionIsParsed = n
[FIELD39]
fieldId = 39
name = alternative
permName = alternative
position = 50
type = d
options = greater,less,less,two.sided
isMain = n
isTblVisible = n
isSearchable = y
isPublic = y
isHidden = n
isMandatory = n
description = 
descriptionIsParsed = n


3. Improve interface with tabs for insert, edit, and list runs with your template.

Similarly to the interface you can find in the r_test3? page, created by the profile r_test, using PluginTABS and PluginFADE, for instance. 


4. Where to find help from now onwards

Tiki Forums (in general):

Forum about Tiki & PluginR

Email lists:

IRC Canal (chat):

 


Show php error messages