So, you have a database dump which you want to upload to Godaddy? There is the Import tab in phpmyadmin, but it often times out for big files, so it's not really good. Luckily, there is a better way using FTP:
Upload your dump with FTP into the _db_backups directory in the root of your hosting account. Then go to hosting management, databases and click on the pencil icon beside the database into which you want to pump data.
Then check out the icons on the top. Select Restore and you'll see your dump file there (possibly you have to give it a .sql extension, I used this extension in the first place).
Next select the file and start the restore. A warning will pop up saying the existing database contents will be lost, but don't worry, it happens only if you restore a complete databse dump with dropping tables and stuff. If your dump contains only insert statements and such then existing data won't be harmed. You can always create a database backup first in database managament if you want to be on the safe side.
The uploading of the dump may take a while, but that's it. I don't know why Godaddy doesn't have this description in their support pages. It's very useful.
Showing posts with label mysql. Show all posts
Showing posts with label mysql. Show all posts
Monday, August 31, 2009
Wednesday, June 17, 2009
The reason why PHP Can't connect to MySQL server on 'localhost'
If you can access the server from the command line with a mysql command issued without parameters then there is a good chance the server is configured to use a local socket or pipe on windows, so you need to specify this socket when connecting.
On Windows it's as simple as this: mysql_connect(".")
On Windows it's as simple as this: mysql_connect(".")
Labels:
connection,
mysql,
php,
windows
Subscribe to:
Posts (Atom)