just make a new directory under c:\httpd\Htdocs...(call it admin or phpmyadmin or so)...and there you putt the files extracted from the phpmyadmin zip.
then you go to config.inc.php (or php3, depending on what you downloaded)...and there you set
$cfgServers[1]['user'] = YOUR_MYSQL_LOGIN_HERE'; // MySQL user (only needed with basic auth)
$cfgServers[1]['password'] = YOUR_MYSQL_PASSWORD_HERE'; // MySQL password (only needed with basic auth)
(depending on how you did set up your mysql server on your home pc...but i guess you already needed this when you made the database...so you know how to deal with this)
$cfgServers[1]['host'] = 'localhost'; // MySQL hostname
this should be set on 'localhost' (but is already set so in this script if i'm right)
and that's it...just run than the index.php (3) under your phpmyadmin directory (in I.E. like you do with your other php scripts)
in the left frame you will see your databases you have, and under them the tables in them...
click on the database, and then click "View dump (schema) of database" (choose: "Structure and data ") and GO
just install phpmyadmin on the new server or go to your command line there, and paste in the sql queries that were put out by phpmyadmin...easy!
i use this system all the time...i make everything at home (i don't have permanent connection you know)...and then let phpmyadmin make the queries i need for duplicating the tables on my serverspace...
i have phpmyadmin in a password protected directory on the site...and have had a lot of pleasure with it...surely John Holmes is right with his arguments about knowing the actual commands at the command line, but the tool is there...just use it...will save you some time and so on...programming is not about being tuff and knowing all commands out of your head...it's about making good, working programs...and how you do, is of secondary interest (i mean...writing your php code in notepad or in homesite makes no difference for the script, but is much more nice for the programmer...and so is it for this phpmyadmin tool...it's a super tool...and use it...especially if you just fiddle a bit around with mysql and so on...use your time for your program, and not for learning the commands you'll use two times
Jay wrote:
Thank you for your reply. But I would like to clear some doubts. I have already downloaded phpMyAdmin. But how to use this.
I unzipped it to my hard-disk. But now what ? How to run this ? All other PHP scripts I make are in a (root) directory called c:\httpd\HtDocs ( I am using Omni web server on my home PC ). I type
http://localhost/myscript.php
in internet explorer and it runs in the browser. But how to run PhpMyAdmin ...
I am a new PHP programmer, so I would appreciate if you could help me with this...
Best Regards.