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.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.1.2. Through command at a terminal screen (command mysql)

Image


Image


Write a command like
Copy to clipboard
 
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:
Copy to clipboard
xxxxxxxxxx
 
mysql -uuser -ppass --default-character-set=utf8 tiki19 < tiki19_backup_yymmdd.sql



1.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.

1.2. Working solution of simple interface for the assignment

Two pages are created for the simplest interface.

1.2.1. Wiki Page: r_test_xavi

Copy to clipboard
x
 
1
Hola, mi primera prueba de interfaz web
2
3
{maketoc}
4
5
!!# Formulario de entrada de datos
6
{tracker trackerId="5" fields="57:9:25:32:39"}
7
8
!!# Listado de análisis efectuados
9
{trackerlist trackerId="5" fields="57:9:25:32:39" showlinks="y" ignoreRequestItemId="y" url="tiki-index.php?page=Day 3&itemId="}
10
11
!!# Resultado del cálculo de la potencia
12
{trackerlist trackerId="5" fields="57:9:25:32:39" tplwiki="r_test_xavi_template" max="1" view="user" showpagination="n"}


1.2.2. Wiki Page: r_tests_xavi_template

Copy to clipboard
xxxxxxxxxx
8
 
1
{wikiplugin _name=rr}
2
3
#require(pwr, lib="/home/tuusuario/R/x86_64-pc-linux-gnu-library/2.15" )
4
require(pwr)
5
6
pwr.t.test(n={$f_9},d={$f_25},sig.level={$f_32},alternative="{$f_39}")
7
8
{/wikiplugin}


1.2.3. Tracker definition: Tracker Id 5

To learn how to use the code shown below, see https://doc.tiki.org/Import+Trackers
Copy to clipboard
xxxxxxxxxx
40
 
1
[TRACKER]
2
autoAssignCreatorGroup = n
3
autoAssignCreatorGroupDefault = n
4
autoAssignGroupItem = n
5
autoCopyGroup = n
6
autoCreateCategories = n
7
autoCreateGroup = n
8
defaultOrderDir = asc
9
defaultOrderKey = -1
10
defaultStatus = o
11
doNotShowEmptyField = n
12
newItemStatus = o
13
oneUserItem = n
14
orderAttachments = created,hits,filesize
15
ratingOptions = -2,-1,0,1,2
16
showAttachments = n
17
showComments = n
18
showCreated = n
19
showCreatedBy = n
20
showCreatedView = n
21
showLastComment = n
22
showLastModif = n
23
showLastModifBy = n
24
showLastModifView = n
25
showRatings = n
26
showStatus = n
27
showStatusAdminOnly = n
28
simpleEmail = n
29
useAttachments = n
30
useComments = n
31
useRatings = n
32
userCanTakeOwnership = n
33
writerCanModify = n
34
writerGroupCanModify = n
35
trackerId = 5
36
name = Tracker de Xavi
37
descriptionIsParsed = n
38
created = 1337277268
39
lastModif = 1378807353
40
items = 4


1.2.4. Tracker fields from Tracker Id 5

To learn how to use the code shown below, see https://doc.tiki.org/Import+Trackers
Copy to clipboard
xxxxxxxxxx
90
 
1
[FIELD57]
2
fieldId = 57
3
name = Nombre del análisis
4
permName = nombreDelAnLisis
5
position = 0
6
type = t
7
options = 
8
isMain = y
9
isTblVisible = y
10
isSearchable = y
11
isPublic = y
12
isHidden = n
13
isMandatory = y
14
description = 
15
descriptionIsParsed = n
16
[FIELD70]
17
fieldId = 70
18
name = Añadido por
19
permName = aAdidoPor
20
position = 10
21
type = u
22
options = 1,0
23
isMain = n
24
isTblVisible = y
25
isSearchable = y
26
isPublic = y
27
isHidden = n
28
isMandatory = n
29
description = 
30
descriptionIsParsed = n
31
[FIELD9]
32
fieldId = 9
33
name = n
34
permName = n
35
position = 20
36
type = n
37
options = 1,0,,,0
38
isMain = n
39
isTblVisible = n
40
isSearchable = y
41
isPublic = y
42
isHidden = n
43
isMandatory = n
44
description = Tamaño poblacional. Número entero.
45
descriptionIsParsed = n
46
[FIELD25]
47
fieldId = 25
48
name = d
49
permName = d
50
position = 30
51
type = n
52
options = 1,0,,,0
53
isMain = n
54
isTblVisible = n
55
isSearchable = y
56
isPublic = y
57
isHidden = n
58
isMandatory = n
59
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.
60
descriptionIsParsed = n
61
[FIELD32]
62
fieldId = 32
63
name = sig.level
64
permName = sigLevel
65
position = 40
66
type = n
67
options = 1,0,,,0
68
isMain = n
69
isTblVisible = n
70
isSearchable = y
71
isPublic = y
72
isHidden = n
73
isMandatory = n
74
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.
75
descriptionIsParsed = n
76
[FIELD39]
77
fieldId = 39
78
name = alternative
79
permName = alternative
80
position = 50
81
type = d
82
options = greater,less,less,two.sided
83
isMain = n
84
isTblVisible = n
85
isSearchable = y
86
isPublic = y
87
isHidden = n
88
isMandatory = n
89
description = 
90
descriptionIsParsed = n


1.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. 


1.4. Where to find help from now onwards

Tiki Forums (in general):

Forum about Tiki & PluginR

Email lists:

IRC Canal (chat):