Moved forum files through FTP.

Then, following your guidance in another post, edited the config.php file for new server.

Moved the database through phpmyadmin.

How to get most recent posts through FTP method?

Or, should I always try to work from backups?

hmmmm....okay. But, I actually didn't use the database backup (another question for later) because I didn't know how to uncompress tar.gz file.  Instead I just opened up two FTP windows and transferred from old server to new server. This is when the cache folder was blocked, so I naturally thought what was missing was in the cache.

hot damn again!  The forum is "correlating" and being seen by the database. It's loaded up and functioning. Thought this was sooo esoteric, reallly had no idea this was so simple! : )  VERY COOL.

One small issue needing rectifying though:

When I moved (FTP'ed) forum files from one server to the other the old server blocked me from moving the cache folder stating it could not be "opened because the server says you do not have the required permissions." Same thing happened when I tried to download the files to my own computer.

So, I tried a workaround by creating a new, but empty, cache folder on the new server. Which, worked but.....the forum is not up to date with the latest posts.

How to get all of the posts onto the new server?

Learning curve question(s):

What connects the imported database with the actual web address, or, what allows the imported database to be seen on the internet?

The data has been imported successfully already, the various tables and fields are visible through myphpadmin. My host/server tells me i need proper php connection strings.  What gives?

Smartys wrote:

config.php is not meant to be loaded directly, it's simply a configuration file you need to edit.
The db_prefix depends on what your table names are. If you specified a prefix at the install, then you need to put it in there. If not, blank is OK

ok -- so, i should upload most recentt backup of the punbb forum from old server onto new server via FTP?

THEN, this backup I've FTP'ed will "correlate" with the recent mysql database dump i've successfully imported and the forum should be accessible as it was on old server?

(hoping yes)

what should the db_prefix be? mine is blank presently.

I've edited config.php to connect to new server and uploaded it...but when I type in the address as

www.webaddress.com/hk/forum/config.php

nothing happens. This should load the config file and direct the database shouldn't it?
What am I doing wrong here?

THANKS.

I've successfully imported my database onto new server but don't know how to get the database connected and seen as a webaddress. Any help greatly appreciated.

For instance, tyring to find out how to connect the database now with new host? My server provides this:

"MySQL Server Database Connection Settings
Description:

   

This example describes using PHP to connect to a MySQL Database on a Linux hosting account.
<?php
//Connect To Database
$hostname="your_host_name_address";
$username="your_username";
$password="your_password";
$dbname="you_database_name";
$usertable="your_tablename";
$yourfield = "your_field";

mysql_connect($hostname,$username, $password) OR DIE ("Unable to connect to database! Please try again later.");
mysql_select_db($dbname);

$query = "SELECT * FROM $usertable";
$result = mysql_query($query);
if($result) {
    while($row = mysql_fetch_array($result)){
        $name = $row["$yourfield"];
        echo "Name: ".$name;
    }
}
?>

----------------

I can figure out most info to add in, but what would "your_tablename"  and "your_field" be?

HOT DAMN!!!    that's all i can really say.

I've been working on this for a LONG time. And, I just read for the first time   -----

"Import has been successfully finished."

Perhaps should have ended that post "most dumbly,"     : ) 

FINALLY, I'm beginning to put some dots together and figure out how some of this coding works. Really appreciate the patience given me. Still learning....

***********

Once I changed the code (through a text editor) you initiallly provided then again tried to phpmyadmin import, I began to see patterns emerge.

Instead of getting error on CREATE TABLE 'bans' ... I'm gettting error on CREATE TABLE 'categories" ...which is the next set of code...and...which indicates the code you provided is working? Thus more editing of problematic syntax on each subsequent set is needed?

THIS ENTIRE SITUATION perhaps is actually occurring not because I'm trying to go from older version of MySQL to newer one but because conversely I'm trying to go from a server running newer MySQL version 4.1.21-standard to other server running older MySQL 4.0.24 version.

unfortunately, i just don't know enough about how to do this kind of editing/changing of code yet. wish i could do it...but just don't know how. anyone know any good tutorials for mysql work like this? as always THANKS to everyone here who has tried to help me in this learning process.

most humbly, will

now, i'm getting the following message. Thanks for any help.

MySQL said: Documentation
#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 'DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci' at line 1

Looking more elbekko...I see that the code you provided has changed the collation from latin1_swedish_ci to utf8_unicode_ci on the 'bans' table.

But, that the remaining tables are still using latin1_swedish_ci.

Would you suggest changing this collation for/on all tables?
If so, how to? THANKS.

OKOK!!  : )

sure, no need to create table 'bans'   if it already exists. but then, how to edit it considering the error message? THANKS.

pasted it in the SQL tab in phpMyAdmin but got this:

Error

SQL query:

CREATE TABLE `bans` (
`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
`username` varchar( 200 ) default NULL ,
`ip` varchar( 255 ) default NULL ,
`email` varchar( 50 ) default NULL ,
`message` varchar( 255 ) default NULL ,
`expire` int( 10 ) unsigned default NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM

MySQL said: Documentation
#1050 - Table 'bans' already exists


-----

Should I erase the 'bans' table first then paste this in?

Or change "CREATE TABLE" to "EDIT TABLE" ?

will

Thanks!

Hate to admit this but I'm so inexperienced (but wanting/willing to learn) in all this that I don't even know how to use this code ---- For instance, how do I go about putting this where it needs to go? How to change this SQL syntax? Much appreciation for all the help.

I suck so bad. Keep getting this error:


Error

SQL query:

CREATE TABLE `bans` (
`id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT ,
`username` varchar( 200 ) default NULL ,
`ip` varchar( 255 ) default NULL ,
`email` varchar( 50 ) default NULL ,
`message` varchar( 255 ) default NULL ,
`expire` int( 10 ) unsigned default NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1;

MySQL said: Documentation
#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 'DEFAULT CHARSET=latin1' at line 9

OK. The database is created, not the table. I have both myphpadmin exported and mysqldump copies of the database on my new server. You're saying I should be able to use phpmyadmin to import the backup database and it will load itself? But then, how do I change the config.php file as you noted earlier?

Reading some instructions online, it is stated that I should first create a database and then import the  exported database into it via unzipping. When I'm in phpmyadmin it asks for number of fields in order to create new database.

are these steps accurate? if so, how many fields? THANKS.

WILL

OK! I've run the dump and have uploaded to new server. THANKS for the walking me through steps. Really appreciate it.

How to turn this file into a database recognized on new server? phpMyAdmin again, import from new server?

Smartys wrote:

OK, use mysqldump to get the database from the old server

ok-- I've downloaded the mysqldump php file. I've uploaded this via FTP to old server and then run it. pulled up page w/MySQL connection parameters. Is this correct so far?

the error exactly, is as follows:


import.php: Missing parameter: import_type (FAQ 2.8)
import.php: Missing parameter: what (FAQ 2.8)

old server does use ssh. but new server does not for shared hosting, they only allow virtual dedicated and dedicated.