How do i connect to a mysql server from my windows machine?
Hi, ive been playing around making websites with php, and i want to create a mysql database. Ive got a book that tells me how to do it but it doesnt actually tell me how to connect to my server. Iv registered webspace that allows mysql databases, but how to I connect to it through a command prompt on my windows machine? Is there any software I have to install? Thanks for any replys, Ben.
Public Comments
- First you have to add an ODBC connection on your computer. You can do this on the control panel. You'll tell it the ip address of the mysql server, and other things. Then you'll have to have the php code that initiates the connection and manipulates the data.
- made it easy you use phpmyadmin software !! fast and easy connect database goodluck aojunk http://doshop.zzl.org
- Download "navicat" The rest is straightforward :)
- In order to connect to the mySQL database server, you will need a mySQL client of some sort. Your hosting provider probably has phpMyAdmin installed, which is a Web-based client that needs no software installation on your part. If your hosting provider has Webmin, you can use its mySQL module, which is like phpMyAdmin but not quite as well designed. phpMyAdmin will almost certainly be adequate for your needs, but if not, you can install a client of your own. Just find a client you like -- mySQL provides graphical clients at http://www.mysql.com/products/tools/ , and also a command-line client; other popular choices for Windows are SQL-Front ( http://www.sql-front.com/ ) and Navicat ( http://www.navicat.com/ ). You might also want to look at Power*Architect ( http://www.sqlpower.ca/page/architect ), which is a data modeling tool that has some client functionality as well. For security reasons, some hosting providers disable access from remote clients, so phpMyAdmin may be your only option. When you've found a client you like, you will need to give it connection information so it can find your database server (unless it's your host's phpMyAdmin installation, which will be preconfigured). Your hosting provider will give you that information, which you will also need for any PHP scripts that communicate with the database.
- Try phptirad. you can turn your windows machine into a php and mysql server. And this would allow you to create php pages on your computer and test them locally using the mysql database on the same computer. You can download phptriad from http://www.download.com/PHPTriad/3000-2165_4-10048390.html
Powered by Yahoo! Answers