MySql help

This is a discussion on "MySql help" within the Databases section. This forum, and the thread "MySql help are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 25th, 2007, 05:04
Junior Member
Join Date: Jul 2007
Location: Arkansas, USA
Age: 21
Posts: 45
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Cool MySql help

I am new to this whole PHP & MySQL stuff. Is there a way to connect to a database that is hosted on your computer. I have downloaded the Microsoft SQL Server 2005 onto my computer and was wanting to know if there is a way to connect to it.
Last Blog Entry: First Post! (Apr 18th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 25th, 2007, 06:22
Highly Reputable Member
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySql help

Quote:
Originally Posted by nashultz07 View Post
I have downloaded the Microsoft SQL Server 2005 onto my computer and was wanting to know if there is a way to connect to it.
That's not mySQL... (At least i don't think so, but I'm willing to be corrected...). You can connect to a SQL databank using PHP but I have no clue how you would do it. I'm sure there's other folks here who do.
Quote:
Originally Posted by nashultz07 View Post
Is there a way to connect to a database that is hosted on your computer.
If the PHP script that should be accessing the databank is running on your computer, or in your network, then yes you can. But from an internet server its a bit more complicated, especially if you're behind a router.

A good starter kit for testing on your local machine and learning how its done can be found at http://www.apachefriends.org/en/xampp.html . Just download the self-extracting installer and unzip it to a drive root (Ex. C:\\ or D:\\ ). Good luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 25th, 2007, 21:44
Most Reputable Member
Join Date: Dec 2006
Location: San Francisco
Age: 57
Posts: 1,567
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySql help

Definately go with Xampp. Phpadmin, mysql and an Apache server...can't beat it. excellent help files and easy to use.
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 26th, 2007, 10:59
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,798
Thanks: 0
Thanked 17 Times in 17 Posts
Re: MySql help

It completely depends on what type of work you are doing. If you are doing .NET work, use MSSQL (or Oracle) and if your doing PHP use MySQL. I have just installed Xampp on my laptop and it is superb I can connect to my local database using Toad for MySQL and do whatever i want; Toad for MySQL is alot easier and faster than using Phpmyadmin.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 27th, 2007, 09:11
New Member
Join Date: Jul 2007
Location: UK
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySql help

I use localhost to setup php sites and use SQL Manager this is probably the best for testing local MySQL connections, also you will need to create a connections file to connect to the server, if you use Dreamweaver you can do this by installing MXKollection this enable you to create database connections etc.

A connection for localhost connecting to SQL Manager usually looks a little like this:
PHP: Select all

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
HTTP="true"
$hostname_connection "localhost";
$database_connection "Database Name Here";
$username_connection "SQl Username Here";
$password_connection "Password Here";
$connection mysql_pconnect($hostname_connBoard$username_connection$password_connection) or die(mysql_error());
?>
You can download SQL Manager here: http://www.sqlmanager.net/products/mysql/manager

Hope this Helps

Jamie
www.2jdesign.co.uk

Last edited by karinne; Jul 27th, 2007 at 12:07. Reason: Please use [ php ]...[ /php ] tags when displaying PHP code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
microsoft sql connection

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP MySQL ccandeland Databases 3 Nov 17th, 2007 10:19
Mysql/php marie2007 PHP Forum 7 Jul 10th, 2007 13:20
Mysql Paul00000001 Databases 7 Sep 13th, 2006 21:48
ASP and MYSQL QuikFrozen Classic ASP 3 Aug 16th, 2006 17:58
Mysql Physt Databases 1 Aug 18th, 2004 21:45


All times are GMT. The time now is 05:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved