Previous Thread
Next Thread
Print Thread
Rate Thread
#210267 04/21/2001 4:13 PM
Joined: Oct 2000
Posts: 29
Power User
Power User
Offline
Joined: Oct 2000
Posts: 29
okay,
going crazy at this point. i'm moving my forums to a hosted server for bandwidth reasons, and right now i have everything working, -except- i can;t get my wwwthreads dump imported into mysql. going crazy.
( create the database, blank, haven't done a thing, and i get)

bash$ mysql whaleweb_WWWThreads < WWWThreads.dump
ERROR 1146 at line 21: Table 'whaleweb_WWWThreads.w3t_AddressBook' doesn't exist
(okay, so then, i figure, i'll just use createtable.pl, and try again..)
i get:
ERROR 1050 at line 11: Table 'w3t_addressbook' already exists

am i doing something wrong? i'm confused what i should do, ideas?
Thanks.
Keet



Sponsored Links
Joined: Oct 2000
Posts: 29
Power User
Power User
Offline
Joined: Oct 2000
Posts: 29
Okay, worked on it some more, and still, having the same trouble, some more info:
currently running windows 2000 and w3t 5.1.5 Perl, i downloaded the 5.2-5.3, mady a copy of my current version, and ran it, did a dump to a file, then restored the original on my server, and uploaded the w3t.dump over to the other server, where i've installed 5.3PHP version, works well and fine when i just use createtable and start from scratch, but i'm moving my users and stuff over, and need to import the databases. i've tried even using -f in mysql to force it to overwrite existing keys or whatever, but i'm still having no luck.. :o(



Joined: May 1999
Posts: 242
Coder
Coder
Offline
Joined: May 1999
Posts: 242
Howdy.

This may or may not help, but check out Importing and exporting your database.

If you're missing a step here and there, this may be of some help.

One thing: Unless I read it wrong, you're running your createtable. You don't do this at all when you're importing. To import, you simply create your database (using mysqladmin create databasename) and run your GRANT statements, and that's it. Don't mess with the createtable at all if you're importing.

Hope this helps.



[]/testimages/icons/smile.gif[/] 6 []/testimages/icons/frown.gif[/]
Screamers

Joined: Oct 2000
Posts: 29
Power User
Power User
Offline
Joined: Oct 2000
Posts: 29
nope, i'm just creating a fresh database, adding the user, and thats it, []/testimages/icons/frown.gif[/]
i dunno what do to at this point..


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
It almost looks like you are getting case sensitive stuff going on here because of the 2 different cases of w3t_Addressbook, unless that's just a typo.

What you can try doing is doing a fresh database and then import with the mysql wwwthreads < WWWThreads.dump. Then if you get an error stating a table doesn't exist, go into your mysql command prompt and do SHOW TABLES; to get a list of tables that currently exist.


UBB.threads Developer
Sponsored Links
Joined: Oct 2000
Posts: 29
Power User
Power User
Offline
Joined: Oct 2000
Posts: 29
Sorry for not getting back to you with this, have been busy with work and stuff.. anyway, i went in a ran the command, and get..
bash$ mysql whaleweb_WWWThreads < WWWThreads.dump -p
Enter password:
ERROR 1146 at line 21: Table 'whaleweb_WWWThreads.w3t_AddressBook' doesn't exist
bash$ mysql whaleweb_WWWThreads -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 21222 to server version: 3.23.32

Type 'help;' or '\h' for help. Type '\c' to clear the buffer

mysql> SHOW TABLES;
+-------------------------------+
| Tables_in_whaleweb_WWWThreads |
+-------------------------------+
| w3t_addressbook |
+-------------------------------+
1 row in set (0.00 sec)

mysql>

okay, so. the tables.. um, looking at them, i notice the differnt cases, i know unix is case sensitive, but is MySQL?
hmm.. the only solution i can think of would be. (eek) to try and editing my dump with a text editor and changing the case to match?
um.. (5am, not thinking well, lol) []/testimages/icons/wink.gif[/]
and i get the same error, either way, if i do a.
Fresh database>adduser> import> "error of "table_blah doesn't exist"
Fresh database>adduser> run createtable>imporrt> "table_blah already exists"

*scratches head and ponders*
well, your turn. heh. lemme know what you think..





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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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 20240430)