When it comes to website building I'm the first to admit my knowledge is almost non-existent. I'm trying to install some forum software but it requires initially setting up a MySQL database for it on the server. I've tried to do some research but everything seems to point towards SSH/telnet and other stuff which I have no idea about. I'm competent with Windows, FTP and that's about it! Can anybody suggest what course of action to take - is this something I should be able to sort out myself or should I just give someone my server details (slightly reluctant!) and pay them to do it for me... Thanks for reading my frustrated ramblings!
Your hosting company will have to set one up, though they may do this automatically when you sign up. Either way, it's likely included in your hosting.
In terms of backing up your mysql database, phpmyadmin is a good choice. Another one is to just use mysqldump. You need to log on to your webserver account (a program called 'putty' will let you do this) and issue the following command:
mysqldump -u yourmysqlusername -p yourdatabasename -a -B>databasebackup.txt
That will dump your mysql database out to a text file with everything needed to do a full restore. Fine for smaller backups, you'll need something better if you have a large forum.
If you ever needed to restore it, you could issue the following command:
mysql -u yourmysqlusername - <databasebackup.txt
I don't think you need to be concerned with anything else to do with mysql.
thanks to both of you for that - I think you're right about learning a little bit more about what I'm doing, is downloading and reading about Putty a good place to start? At the moment, I don't know much about using commands as I just use a basic FTP programme, but I assume this is going to be a fairly important part of what I need to know for even the most basic dumping/restoring functions..
Msg#: 2615 posted 10:45 am on Dec 15, 2005 (gmt 0)
To really get to grips with Mysql it might be a good idea to download it and install it on your PC. You can use this as a learnign zone, without needing to worry about breaking things. If you make a mistake it's not an "in use" database.