Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
MySQL Database Move - For Hire
I need to have databases moved onto my new server account. I have everything else already moved, but could not quite grasp the whole phpmyadmin/SQL database thing. If one of you techies are "for hire," please email me at Texafina @gmail.com. Thanks so much.
0
This discussion has been closed.
Comments
In short, phpMyAdmin should be able to create a "dump" of your database. The dump will contain a series of SQL statements that your new server can read to create a new copy of the database.
This works best when your database is relatively small. How many discussions and comments would you guess are on your current forum?
Are the old databases still intact on your old server?
If your files have names ending with ".frm" and ".MYD" and ".MYI", those are MySQL binary files (that's bad). If they end in ".sql", they are probably dump files (that's good). If they end with ".zip" or ".gz", open one in Winzip and see what's inside.
If you open a dump file in Notepad, you will see SQL statements like this:
CREATE TABLE IF NOT EXISTS `LUM_Category` ( `CategoryID` int(2) NOT NULL auto_increment, `Name` varchar(100) collate utf8_unicode_ci NOT NULL default '', `Description` text collate utf8_unicode_ci, `Priority` int(11) NOT NULL default '0', PRIMARY KEY (`CategoryID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
If not, you will probably need to get an SQL dump from the person who owns your old server before anyone here can help you.
- Under the heading Export click "Select All". This will get all tables from the database.
- Under that, click the radio button marked "SQL". This will get the SQL dump format I was talking about.
- Find the heading Structure and make sure the box next to it is checked. This will get the database structure, not just the data.
- Under that heading, I have only the following options checked:
- Find the heading Data and make sure the box next to it is checked. This will get the data.
- Under that heading, I have the following options checked:
- Enclose table and field names with backquotes
- Extended inserts
- Use hexadecimal for BLOB
- Also under that heading, make sure "Export type" is "INSERT".
- Also under that heading, I have "Maximal length of created query" set at "50000". I don't know if that's statements or bytes or what. Just to be safe, crank it way up. Don't worry, your database probably isn't large enough to cause problems.
- Find the heading Save as file and make sure the box next to it is checked. This will make your life easier when uploading to your new server.
- Under that heading, choose a type of "Compression". It doesn't matter which one, phpMyAdmin will figure it out when you import on your new server.
Hope that helps.- Add IF NOT EXISTS
- Add AUTO_INCREMENT value
- Enclose table and field names with backquotes
All other options in the Structure box are unchecked.For a link back