Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (Gizmo, zackfrost, Dunny), 29 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/08/06
Posts: 1437
Top Posters (30 Days)
Ruben 65
SD 57
Gizmo 53
gliderdad 32
Iann128 22
Dunny 21
Steve C 20
driv 18
dbremer 16
Stan 15
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
Page 1 of 2 1 2 >
Topic Options
#238036 - 07/20/10 09:42 PM SQL Error #: 1146
jarmerson Offline
stranger
Registered: 07/20/10
Posts: 13
I was thrown into a project where we're moving a forum from one server to another. I have no experience with ubbthreads, but I like what I see so far smile

My current issue is outlined below.

UBB Message We encountered a problem. The reason reported was

Script: /home/mdsfound/public_html/forums/libs/user.inc.php
Line#: 467
SQL Error: Table 'mdsfound_forum.ubbt_USERS' doesn't exist
SQL Error #: 1146
Query: SELECT t2.USER_TIME_OFFSET,t2.USER_TOPIC_VIEW_TYPE,t2.USER_TIME_FORMAT, t1.USER_ID, t1.USER_DISPLAY_NAME, t1.USER_PASSWORD, t1.USER_SESSION_ID, t1.USER_MEMBERSHIP_LEVEL, t1.USER_IS_BANNED,t1.USER_RULES_ACCEPTED, t1.USER_IS_UNDERAGE, t2.USER_TOTAL_PM, t2.USER_STYLE, t2.USER_HIDE_LEFT_COLUMN,t2.USER_HIDE_RIGHT_COLUMN, t2.USER_LANGUAGE, t2.USER_MOOD, t2.USER_RELATIVE_TIME, t2.USER_TIME_OFFSET,t2.USER_SHOW_ALL_GRAEMLINS, t2.USER_AVATAR, t2.USER_TITLE, t2.USER_CUSTOM_TITLE, t2.USER_NAME_COLOR, t2.USER_SHOW_LEFT_MYSTUFF FROM ubbt_USERS as t1, ubbt_USER_PROFILE as t2 WHERE t1.USER_ID = '' AND t1.USER_ID = t2.USER_ID

Please click back to return to the previous page.

Any insight would be awesome! We have this setup so DNS is still pointing to live site. I've changed my host file so local DNS resolves to the new server while we work out the bugs.

Thanks in advance for your insights!
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#238037 - 07/20/10 10:16 PM Re: SQL Error #: 1146 [Re: jarmerson]
JAISP Offline
old hand
Registered: 02/10/07
Posts: 1144
The database file was not uploaded into the MySQL.

If it is a large file I usually always do it by command line into the MySQL Server.
Top
#238046 - 07/21/10 01:14 PM Re: SQL Error #: 1146 [Re: JAISP]
jarmerson Offline
stranger
Registered: 07/20/10
Posts: 13
I resolved the error by changing the values of the files in questions. The old database used UPPERCASE for tables and the new uses lowercase. I simply changed UPPERCASE values to lowercase and it worked smile

Now my issue looks like:

Fatal error: require_once() [function.require]: Failed opening required '/home/mdsfound/public_html/forums/scripts/libs/functions_forums.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mdsfound/public_html/forums/scripts/cfrm.inc.php on line 50

Anything look wrong here>?
Top
#238047 - 07/21/10 01:21 PM Re: SQL Error #: 1146 [Re: jarmerson]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
The table name issue is definitely a gotcha when going from windows to linux. We're going to finally resolve that in v8.

As for your new error. It's a bit strange. It's looking for /forums/scripts/libs/functions_forums.inc.php when it should be looking for /forums/libs/functions_forums.inc.php

Are you getting that from the main page?
Top
#238048 - 07/21/10 01:24 PM Re: SQL Error #: 1146 [Re: jarmerson]
jarmerson Offline
stranger
Registered: 07/20/10
Posts: 13
I think it has to do with my "FULL_PATH setting in config.inc.php

The old value was c:/inetpub/wwwroot/mds-foundation.org/forums

The new is /home/mdsfound/public_html/forums/scripts

Does this look right?
Top
#238049 - 07/21/10 01:26 PM Re: SQL Error #: 1146 [Re: jarmerson]
jarmerson Offline
stranger
Registered: 07/20/10
Posts: 13
That was it!!! I took out the /scripts so it refers to /forums without /scripts and I'm on the next error which are more UPPERCASE to lowercase related issues smile

I'll report back with stuff I get stuck on!
Top
#238050 - 07/21/10 01:26 PM Re: SQL Error #: 1146 [Re: jarmerson]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Ah, there's your problem. Chop the /scripts off the end of the new path.
Top
#238051 - 07/21/10 01:27 PM Re: SQL Error #: 1146 [Re: Rick]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Beat me to the punch smile
Top
#238052 - 07/21/10 01:34 PM Re: SQL Error #: 1146 [Re: jarmerson]
jarmerson Offline
stranger
Registered: 07/20/10
Posts: 13
Ok - so it seems that the only problems left are the UPPERCASE table names.

Is there any kind of something to help with this. I got the forum to come up, but of course visiting any link throws more errors.

Any help is greatly appreciated.
Top
#238053 - 07/21/10 01:38 PM Re: SQL Error #: 1146 [Re: jarmerson]
SD Offline
Registered: 04/19/07
Posts: 4031
Loc: SoCal, USA
you'll need to rename your tables to uppercase.. i've run into this a couple of times
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#238056 - 07/21/10 02:57 PM Re: SQL Error #: 1146 [Re: SD]
Ruben Offline

Registered: 12/20/03
Posts: 4264
Loc: Lutz,FL
Went through this myself a while back going from windows to Linux.
Assuming your Table Prefix is ubbt the default setting.

The first table should appear as:

ubbt_ADDRESS_BOOK
_________________________
Blue Man Group
Top
#238058 - 07/21/10 03:53 PM Re: SQL Error #: 1146 [Re: SD]
jarmerson Offline
stranger
Registered: 07/20/10
Posts: 13
Done and worked like a charm...

Now I just need to reset the admin password in phpMyAdmin...
Top
#238060 - 07/21/10 04:02 PM Re: SQL Error #: 1146 [Re: jarmerson]
Ruben Offline

Registered: 12/20/03
Posts: 4264
Loc: Lutz,FL
Okay , Don't forget the password is stored in the config.inc.php file via the ubb control panel.
_________________________
Blue Man Group
Top
#238061 - 07/21/10 04:05 PM Re: SQL Error #: 1146 [Re: Ruben]
jarmerson Offline
stranger
Registered: 07/20/10
Posts: 13
Password for database user?

I'll post a new topic about resetting my admin pass.
Top
#238063 - 07/21/10 04:10 PM Re: SQL Error #: 1146 [Re: jarmerson]
Ruben Offline

Registered: 12/20/03
Posts: 4264
Loc: Lutz,FL
Yes the database user login.
Kinda a catch 22.
Usually it is easier to edit the config file.
_________________________
Blue Man Group
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
A positive note
by SteveS
Yesterday at 09:36 PM
How to locate links to particular site if they are only used in images?
by Conrad
02/10/12 09:41 PM
Pictures not displaying
by Marker23
02/09/12 10:04 PM
Issue with logging out constantly
by Flanuva
02/09/12 07:05 PM
Long thread, UBB code not parsing
by Bad Frog
02/09/12 07:47 AM
Forum Stats
10211 Members
36 Forums
33666 Topics
180902 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image