Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (capnbob, GregK), 37 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 88
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#176272 - 01/31/07 02:39 PM Recreating a database to import
ehm1 Offline
member
Registered: 06/07/06
Posts: 183
I have my database in 6.5x in one server.
I want to recreate this database in a new server, before migrate to the version 7.1
What I did was I create a backup from all tables on 6.4
Download it to my PC
opeh phpMyAdmin on the new server
and try to import the files to my new server to a new database.
The problem is that many files are bigger then the mysql file limit and will not import.
How go to around of that?
Files like post, users, messages, etc. are on the Giga sizes, so what other option I would have to import it?
Thank you
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."
#176279 - 01/31/07 02:48 PM Re: Recreating a database to import [Re: ehm1]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
My recommendation is to not use a PHP script (PHPMyAdmin) to create or import databases; instead use MySQL from the command line (as utilizng the webserver to import/export you'll be at the mercy of the max size limits)

Commands:
MySQL Export: mysqldump -uuser -ppass database_name > dump_name.sql
MySQL Import: mysql -h localhost -uuser -ppass database_name < dump_name.sql
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#176286 - 01/31/07 02:59 PM Re: Recreating a database to import [Re: Gizmo]
ehm1 Offline
member
Registered: 06/07/06
Posts: 183
 Originally Posted By: Gizmo


Commands:
MySQL Export: mysqldump -uuser -ppass database_name > dump_name.sql
MySQL Import: mysql -h localhost -uuser -ppass database_name < dump_name.sql


sounds a good idea...
So I replace the -uuser with -ehm and -ppass with -xxxx
or -uuser with -uehm and -ppass with -pxxx

?
Top
#176290 - 01/31/07 03:04 PM Re: Recreating a database to import [Re: ehm1]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
no, -u[username] -p[password]

-u -p -h etc are required, they tell the system that you're using a username, password, host, etc
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#176292 - 01/31/07 03:09 PM Re: Recreating a database to import [Re: Gizmo]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
The above method works fine - tried and tested \:\)
Top
#176294 - 01/31/07 03:18 PM Re: Recreating a database to import [Re: Gizmo]
ehm1 Offline
member
Registered: 06/07/06
Posts: 183
Gizmo,
sorry. I'm totally rookie with mysql+php... \:\(

Would you mind to help me a little more?

This is what I have:

my mysql server name = libra.SQLserver.com
my username = elton
my password = river50 (no, it's not the real one \:\) )
my database name = myserver_ubbimigrar

then the location of my file is on my server (not on teh SQLserver), under /foruns/backup2/w3t_address.sql (for example)

How can I construct this line, to run using phpmyadmin

It should be a very basic question, but honest I have no clue...
Top
#176299 - 01/31/07 03:25 PM Re: Recreating a database to import [Re: ehm1]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
MySQL Import: mysql -h libra.SQLserver.com -uelton -priver50 myserver_ubbimigrar < /foruns/backup2/w3t_address.sql
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#176301 - 01/31/07 03:33 PM Re: Recreating a database to import [Re: Gizmo]
ehm1 Offline
member
Registered: 06/07/06
Posts: 183
still getting error:

SQL query:
mysql - h libra.sqlServer.net - uadmin - priver99 sqlad_ubbimigrar & lt;

/ foruns / backup2 / w3t_Banned.sql
MySQL said:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql -h libra.sqlServer.net - uadmin - priver99 sqlad_ubbimigrar

note that the < signal was changed to & lt;

sorry ...
Top
#176302 - 01/31/07 03:57 PM Re: Recreating a database to import [Re: ehm1]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
The < needs to be a < and not its ascii varient.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#176303 - 01/31/07 04:01 PM Re: Recreating a database to import [Re: Gizmo]
ehm1 Offline
member
Registered: 06/07/06
Posts: 183
Gizmo,
on the input window I'm typing the < , but when the error message displays, it shows the ascii code.
I'm not sure if that has something to do withe the problem...
Top
Page 1 of 2 1 2 >



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

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

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