Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46915

Re: trying to save an old installation so I can upgrade ver 1.7.1 to 1.8 then onwards to 2+

$
0
0
by jb skaggs.  

OK i built a new xampp server with mysql 4.1.16 and php 4.3.0


I can now install and run moodle 1.6.9 I now can login and out etc.  BUT >>> When I upload my database it automatically begins upgrade and every goes fine till I get to "data" here are the errors:  BTW it is stuck in a loop now but maybe you can point me in a better direction now that you have the actually errors

Setting up module tables
 


data


(mysql): CREATE TABLE mdl_data ( id int(10) unsigned NOT NULL auto_increment, course int(10) unsigned NOT NULL default '0', name varchar(255) NOT NULL default '', intro text NOT NULL default '', ratings int(10) NOT NULL default '0', comments int(4) unsigned NOT NULL default '0', timeavailablefrom int(10) unsigned NOT NULL default '0', timeavailableto int(10) unsigned NOT NULL default '0', timeviewfrom int(10) unsigned NOT NULL default '0', timeviewto int(10) unsigned NOT NULL default '0', participants int(4) unsigned NOT NULL default '0', requiredentries int(8) unsigned NOT NULL default '0', requiredentriestoview int(8) unsigned NOT NULL default '0', maxentries int(8) unsigned NOT NULL default '0', rssarticles int(4) unsigned NOT NULL default '0', singletemplate text NOT NULL default '', listtemplate text NOT NULL default '', listtemplateheader text NOT NULL default '', listtemplatefooter text NOT NULL default '', addtemplate text NOT NULL default '', rsstemplate text NOT NULL default '', rsstitletemplate text NOT NULL default '', csstemplate text NOT NULL default '', approval tinyint(4) unsigned NOT NULL default '0', scale int(10) NOT NULL default '0', assessed int(10) unsigned NOT NULL default '0', assesspublic int(4) unsigned NOT NULL default '0', defaultsort int(10) unsigned NOT NULL default '0', defaultsortdir tinyint(4) unsigned NOT NULL default '0', editany tinyint(4) unsigned NOT NULL default '0', PRIMARY KEY (id)) TYPE=MyISAM COMMENT='Defines settings for each Database activity'  


1050: Table 'mdl_data' already exists

        adodb_mysql._execute(CREATE TABLE mdl_data (  id int(10) unsigned NOT NULL auto_increment,  course int(10) unsigned NOT NULL default '0',  name varch..., false) % line  853, file: adodb.inc.php     adodb_mysql.execute(CREATE TABLE mdl_data (  id int(10) unsigned NOT NULL auto_increment,  course int(10) unsigned NOT NULL default '0',  name varch...) % line   49, file: datalib.php  execute_sql(CREATE TABLE mdl_data (  id int(10) unsigned NOT NULL auto_increment,  course int(10) unsigned NOT NULL default '0',  name varch...) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): CREATE TABLE mdl_data_content ( id int(10) unsigned NOT NULL auto_increment, fieldid int(10) unsigned NOT NULL default '0', recordid int(10) unsigned NOT NULL default '0', content longtext NOT NULL default '', content1 longtext NOT NULL default '', content2 longtext NOT NULL default '', content3 longtext NOT NULL default '', content4 longtext NOT NULL default '', PRIMARY KEY (id)) TYPE=MyISAM  


1050: Table 'mdl_data_content' already exists

        adodb_mysql._execute(CREATE TABLE mdl_data_content (  id int(10) unsigned NOT NULL auto_increment,  fieldid int(10) unsigned NOT NULL default '0',  r..., false) % line  853, file: adodb.inc.php     adodb_mysql.execute(CREATE TABLE mdl_data_content (  id int(10) unsigned NOT NULL auto_increment,  fieldid int(10) unsigned NOT NULL default '0',  r...) % line   49, file: datalib.php  execute_sql(CREATE TABLE mdl_data_content (  id int(10) unsigned NOT NULL auto_increment,  fieldid int(10) unsigned NOT NULL default '0',  r...) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): CREATE TABLE mdl_data_fields ( id int(10) unsigned NOT NULL auto_increment, dataid int(10) unsigned NOT NULL default '0', type varchar(255) NOT NULL default '', name varchar(255) NOT NULL default '', description text NOT NULL default '', param1 text NOT NULL default '', param2 text NOT NULL default '', param3 text NOT NULL default '', param4 text NOT NULL default '', param5 text NOT NULL default '', param6 text NOT NULL default '', param7 text NOT NULL default '', param8 text NOT NULL default '', param9 text NOT NULL default '', param10 text NOT NULL default '', PRIMARY KEY (id)) TYPE=MyISAM  


1050: Table 'mdl_data_fields' already exists

        adodb_mysql._execute(CREATE TABLE mdl_data_fields (  id int(10) unsigned NOT NULL auto_increment,  dataid int(10) unsigned NOT NULL default '0',  typ..., false) % line  853, file: adodb.inc.php     adodb_mysql.execute(CREATE TABLE mdl_data_fields (  id int(10) unsigned NOT NULL auto_increment,  dataid int(10) unsigned NOT NULL default '0',  typ...) % line   49, file: datalib.php  execute_sql(CREATE TABLE mdl_data_fields (  id int(10) unsigned NOT NULL auto_increment,  dataid int(10) unsigned NOT NULL default '0',  typ...) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): CREATE TABLE mdl_data_records ( id int(10) unsigned NOT NULL auto_increment, userid int(10) unsigned NOT NULL default '0', groupid int(10) unsigned NOT NULL default '0', dataid int(10) unsigned NOT NULL default '0', timecreated int(10) unsigned NOT NULL default '0', timemodified int(10) unsigned NOT NULL default '0', approved tinyint(4) unsigned NOT NULL default '0', PRIMARY KEY (id)) TYPE=MyISAM  


1050: Table 'mdl_data_records' already exists

        adodb_mysql._execute(CREATE TABLE mdl_data_records (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  gr..., false) % line  853, file: adodb.inc.php     adodb_mysql.execute(CREATE TABLE mdl_data_records (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  gr...) % line   49, file: datalib.php  execute_sql(CREATE TABLE mdl_data_records (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  gr...) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): CREATE TABLE mdl_data_comments ( id int(10) unsigned NOT NULL auto_increment, userid int(10) unsigned NOT NULL default '0', recordid int(10) unsigned NOT NULL default '0', content text NOT NULL default '', created int(10) unsigned NOT NULL default '0', modified int(10) unsigned NOT NULL default '0', PRIMARY KEY (id)) TYPE=MyISAM  


1050: Table 'mdl_data_comments' already exists

        adodb_mysql._execute(CREATE TABLE mdl_data_comments (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  r..., false) % line  853, file: adodb.inc.php     adodb_mysql.execute(CREATE TABLE mdl_data_comments (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  r...) % line   49, file: datalib.php  execute_sql(CREATE TABLE mdl_data_comments (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  r...) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): CREATE TABLE mdl_data_ratings ( id int(10) unsigned NOT NULL auto_increment, userid int(10) unsigned NOT NULL default '0', recordid int(10) unsigned NOT NULL default '0', rating int(10) unsigned NOT NULL default '0', PRIMARY KEY (id)) TYPE=MyISAM  


1050: Table 'mdl_data_ratings' already exists

        adodb_mysql._execute(CREATE TABLE mdl_data_ratings (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  re..., false) % line  853, file: adodb.inc.php     adodb_mysql.execute(CREATE TABLE mdl_data_ratings (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  re...) % line   49, file: datalib.php  execute_sql(CREATE TABLE mdl_data_ratings (  id int(10) unsigned NOT NULL auto_increment,  userid int(10) unsigned NOT NULL default '0',  re...) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'view', 'data', 'name')  


1062: Duplicate entry 'data-view' for key 2

        adodb_mysql._execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'view', 'data', 'name'), false) % line  853, file: adodb.inc.php     adodb_mysql.execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'view', 'data', 'name')) % line   49, file: datalib.php  execute_sql(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'view', 'data', 'name')) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'add', 'data', 'name')  


1062: Duplicate entry 'data-add' for key 2

        adodb_mysql._execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'add', 'data', 'name'), false) % line  853, file: adodb.inc.php     adodb_mysql.execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'add', 'data', 'name')) % line   49, file: datalib.php  execute_sql(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'add', 'data', 'name')) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'update', 'data', 'name')  


1062: Duplicate entry 'data-update' for key 2

        adodb_mysql._execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'update', 'data', 'name'), false) % line  853, file: adodb.inc.php     adodb_mysql.execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'update', 'data', 'name')) % line   49, file: datalib.php  execute_sql(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'update', 'data', 'name')) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'record delete', 'data', 'name')  


1062: Duplicate entry 'data-record delete' for key 2

        adodb_mysql._execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'record delete', 'data', 'name'), false) % line  853, file: adodb.inc.php     adodb_mysql.execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'record delete', 'data', 'name')) % line   49, file: datalib.php  execute_sql(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'record delete', 'data', 'name')) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'fields add', 'data_fields', 'name')  


1062: Duplicate entry 'data-fields add' for key 2

        adodb_mysql._execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'fields add', 'data_fields', 'name'), false) % line  853, file: adodb.inc.php     adodb_mysql.execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'fields add', 'data_fields', 'name')) % line   49, file: datalib.php  execute_sql(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'fields add', 'data_fields', 'name')) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'fields update', 'data_fields', 'name')  


1062: Duplicate entry 'data-fields update' for key 2

        adodb_mysql._execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'fields update', 'data_fields', 'name'), false) % line  853, file: adodb.inc.php     adodb_mysql.execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'fields update', 'data_fields', 'name')) % line   49, file: datalib.php  execute_sql(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'fields update', 'data_fields', 'name')) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'templates saved', 'data', 'name')  


1062: Duplicate entry 'data-templates saved' for key 2

        adodb_mysql._execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'templates saved', 'data', 'name'), false) % line  853, file: adodb.inc.php     adodb_mysql.execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'templates saved', 'data', 'name')) % line   49, file: datalib.php  execute_sql(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'templates saved', 'data', 'name')) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error


(mysql): INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'templates def', 'data', 'name')  


1062: Duplicate entry 'data-templates def' for key 2

        adodb_mysql._execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'templates def', 'data', 'name'), false) % line  853, file: adodb.inc.php     adodb_mysql.execute(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'templates def', 'data', 'name')) % line   49, file: datalib.php  execute_sql(INSERT INTO mdl_log_display (module, action, mtable, field) VALUES ('data', 'templates def', 'data', 'name')) % line  193, file: datalib.php
modify_database(C:\xampp\htdocs\moodle/mod/data/db/mysql.sql) % line  224, file: adminlib.php
upgrade_activity_modules(http://localhost/moodle/admin/index.php) % line  229, file: index.php

Error




Viewing all articles
Browse latest Browse all 46915

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>