Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 1999
Posts: 118
Enthusiast
Enthusiast
Offline
Joined: Jul 1999
Posts: 118
I am upgrading from 6.1 to 6.3

Problems

a) I think it is very inconvenient to do this with web based altertable routines. The web page usually timed out after 10 minutes or so. Then I just had an error message, did not know if the update step really had been done.

I watched the server activity with the top command, that kind of helped me to see when the mysql activity had died down, so I assumed that step had been finished.

So after a timeout at an url like xxxxxxx.com/ubbthreads/altertable-6.1-6.2.php?step=step3 I got an error page like "server could not be found"

So I tried a logical thing: hit the reload button. This seems to have the effect that the same step will be executed again, as suddenly the database was using up all the cpu time again, for a long time.

So instead of hitting reload on that url
xxxxx.com/ubbthreads/altertable-6.1-6.2.php?step=step4

I tried to guess the next url, like
xxxxx.com/ubbthreads/altertable-6.1-6.2.php?step=step4


then of course, I also did not get a page, but the altertable just went through its next step.

** summary:
this web based altertable with timeout is definitely not user friendly or easy to use. It does not allow to really verify if the database changes have been done correctly. Do you have another suggestion how to verify if I ended up corrupting the database? When the webserver times out, are you sure the altertable continues?

Also I had to watch the altertable constantly, without feedback. If there was some feedback (maybe execute 10 000 changed, then output a progress message), things were much easier, maybe even the timeout could be avoided.

I suggest that there should be at least a log file on the server that shows the success or failure of the altertable steps.

=====
now my problem.
while xxxxx.com/ubbthreads/altertable-6.1-6.2.php

was running, I got bored and wanted to look at then next step. So I clicked on http://www3.xxxxxx.com/ubbthreads/altertable-6.2-6.3.php expecting I would be warned before it would execute.

Instead, in the middle of altertable 6.1 to 6.2, the altertable 6.2 to 6.3 ran. with error message as follows

=======
Altering the Posts table to store the parent user id to restore the in reply to userrname.
SQL ERROR: Wed, Jun 18 2003 12:49:56 -0400 Unable to do_query: ALTER TABLE w3t_Posts ADD B_ParentUser INT(9) UNSIGNED, ADD B_LastPosterId INT(9) UNSIGNED, ADD B_LastPostNum INT(11) UNSIGNED
Duplicate column name 'B_ParentUser'Altering the Users table to add a field for banned users.
SQL ERROR: Wed, Jun 18 2003 12:50:02 -0400 Unable to do_query: SELECT B_Uid FROM w3t_Banned
Unknown column 'B_Uid' in 'field list'
Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/www3.angeles2.com/ubbthreads/mysql.inc.php on line 131
Adding a table to store languages users can choose from...
Done

The Re: Username was re-introduced with this version and will appear on new posts. If you would like to update old posts you can now run this script to update these posts. This may take a while and might time out. If it does time out you can just reload the script and it will pick up where it left off. You may need to do this several times before it actually finishes.
------------

at the end, after the (hopefully) completion of the altertable 6.1 6.2, I ran this routine again.

this time I got these error messages.
Question: what should I do now??

==========
Altering the Posts table to store the parent user id to restore the in reply to userrname.
Altering the Users table to add a field for banned users.
SQL ERROR: Wed, Jun 18 2003 14:00:06 -0400 Unable to do_query: ALTER TABLE w3t_Users ADD U_Banned INT(1) UNSIGNED DEFAULT '0', ADD U_CoppaUser INT(1) UNSIGNED DEFAULT '0'
Duplicate column name 'U_Banned'SQL ERROR: Wed, Jun 18 2003 14:00:06 -0400 Unable to do_query: SELECT B_Uid FROM w3t_Banned
Unknown column 'B_Uid' in 'field list'
Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/www3.angeles2.com/ubbthreads/mysql.inc.php on line 131
Adding a table to store languages users can choose from...
SQL ERROR: Wed, Jun 18 2003 14:00:06 -0400 Unable to do_query: CREATE TABLE w3t_Languages ( L_Entry INT(9) NOT NULL AUTO_INCREMENT PRIMARY KEY, L_Language VARCHAR(255), L_Description VARCHAR(255), L_Active INT(1) )
Table 'w3t_Languages' already existsSQL ERROR: Wed, Jun 18 2003 14:00:06 -0400 Unable to do_query: CREATE TABLE w3t_Mailer ( M_Time INT(11), M_Subject VARCHAR(255), M_Message TEXT, M_Groups VARCHAR(255), M_Bogus VARCHAR(255), M_Onebyone INT(1), M_Loop INT(9), M_Type VARCHAR(10) )
Table 'w3t_Mailer' already existsDone

The Re: Username was re-introduced with this version and will appear on new posts. If you would like to update old posts you can now run this script to update these posts. This may take a while and might time out. If it does time out you can just reload the script and it will pick up where it left off. You may need to do this several times before it actually finishes.

===============

Sponsored Links
Entire Thread
Subject Posted By Posted
Altertable problems 6.1 beta to 6.3. Did I screw up the database????? mario2 06/18/2003 9:02 PM
here is my mysql error file mario2 06/18/2003 9:25 PM
Re: Altertable problems 6.1 beta to 6.3. Did I screw up the database????? JoshPet 06/18/2003 9:26 PM
Re: Altertable problems 6.1 beta to 6.3. Did I screw up the database????? Astaran 06/18/2003 9:29 PM
ok, so how do I recover the private messages/ mario2 06/19/2003 1:21 AM
Re: ok, so how do I recover the private messages/ JoshPet 06/19/2003 5:03 AM
Re: ok, so how do I recover the private messages? mario2 06/19/2003 11:02 AM
Re: ok, so how do I recover the private messages? JoshPet 06/19/2003 4:44 PM
This bug has been known for months, and infopop still does not fix it??? mario2 06/20/2003 12:09 AM
Re: This bug has been known for months, and infopop still does not fix it?? slayer60 06/20/2003 5:04 AM
Re: This bug has been known for months, and infopop still does not fix it?? mario2 06/20/2003 10:44 AM
Re: This bug has been known for months, and infopop still does not fix it?? JoshPet 06/20/2003 11:25 AM
Re: This bug has been known for months, and infopop still does not fix it?? AllenAyres 06/20/2003 3:00 PM
Please make altertable routines "timeout proof" mario2 06/20/2003 9:15 PM
Re: Please make altertable routines "timeout proof" JoshPet 06/20/2003 9:37 PM
Re: Please make altertable routines "timeout proof" navaho 06/20/2003 11:24 PM
these statements are patently wrong!! Instructions are faulty!! mario2 06/21/2003 3:22 AM
Re: these statements are patently wrong!! Instructions are faulty!! JoshPet 06/21/2003 5:05 AM
Please explain where my logic is wrong? mario2 06/21/2003 6:00 AM
Re: Please explain where my logic is wrong? JoshPet 06/21/2003 6:30 AM
Re: Please explain where my logic is wrong? navaho 06/21/2003 6:55 AM
Re: these statements are patently wrong!! Instructions are faulty!! AllenAyres 06/21/2003 8:40 AM
Re: these statements are patently wrong!! Instructions are faulty!! slayer60 06/21/2003 7:34 PM
Re: these statements are patently wrong!! Instructions are faulty!! AllenAyres 06/21/2003 8:06 PM
Re: these statements are patently wrong!! Instructions are faulty!! JoshPet 06/21/2003 9:07 PM
how can I delete the unwanted PM now? mario2 06/23/2003 6:15 PM
Re: how can I delete the unwanted PM now? JoshPet 06/23/2003 8:18 PM
Re: how can I delete the unwanted PM now? slayer60 06/23/2003 8:33 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)