Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

MySQL DB Transfer.

Aloittaja Awesom, lokakuu 12, 2007, 08:12:26 AP

« edellinen - seuraava »

Awesom

How can I upload my database to another forum.

I downloaded the database form the old forum now I need to upload it but how can I do it and does it matter if the database names are different? Is this even possible?

Cheers.
www.javaownzu.com

Looking for affiliates PM me :)

青山 素子

Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Awesom

www.javaownzu.com

Looking for affiliates PM me :)

Awesom

Error

SQL query:

# MySQL Quick Admin Database Backup
# Backup made: October 12, 2007, 6:48 am
# Database: javaownz_zendurl1
# --------------------------------------------------------
#
# Table structure for table 'smf_attachments'
#
DROP TABLE IF EXISTS `smf_attachments` ;

MySQL said: Documentation
#1046 - No database selected

I get this error when importing it to new site.
www.javaownzu.com

Looking for affiliates PM me :)

青山 素子

That means the backup didn't have a database creation command in it. You'll need to create the database using the tools your host provides, then run the import with that database selected (in phpMyAdmin, use the import tab once you've clicked on the database name).
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


babjusi

How mb is your backup copy? Because phpmyadmin is known to have size limits. If your back is above the limit, then you will have to restore it in other ways then

Awesom

Thanks, I will try what you said now motoko sounds like it will work.

@babjusi Thanks but I know that the limit for my phpmyadmin is 10mb and my db is only 3mb ;)
www.javaownzu.com

Looking for affiliates PM me :)

metallica48423

it could also mean it literally, did you pick a database in the left pane of phpmyadmin before going to 'import'? :P
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

LainaaMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Awesom

I open phpmyadmin separately with each database it has:  databasename - settings - phpmyadmin and its a button.

I also tried motoko's idea and it didn't work but I think I know why.

my database name I created couldn't be exactly the same so does it need to be and for all parts? Because the old forums I had have like

/home/zendurl/public_html/j/javaownz/forums/Sources/

and my new forums would only be (I don't know exact atm I can find obviously if it's important but it would be like this

public_html/smf/Sources/  I think. Do I need to change all that in the backup also ?

www.javaownzu.com

Looking for affiliates PM me :)

metallica48423

the URL's are irrelevant to the DB, if the db imported, you can use repair_settings.php (What is repair_settings.php?) to fix your files and db settings.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

LainaaMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Awesom

OK Well it still didn't work. the database name was originally like javaownz_zendurl1 I think and the new forums when I made database it is 7716_javaownz so I changed the zendurl one in the backup.txt to the 7716_javaownz (found all and replaced all) but it still has same error
www.javaownzu.com

Looking for affiliates PM me :)

青山 素子

At the very top of the file add the following line:


USE databasename;


Replace "databasename" with the name of the database on your new host.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Advertisement: