Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 01-24-2005, 01:51 AM   PM User | #1
mat106
New Coder

 
Join Date: Jun 2004
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
mat106 is an unknown quantity at this point
Getting started with MySQL

Hi.

I'm completely new to MySQL. My host has MySQL installed and i'd like to experiment with using it but don't know how to get started. I know i have to create a table and put some data in it but i don't know how to connect to the server or database (if that's what i have to do?!?)

Where would i go to get started?
mat106 is offline   Reply With Quote
Old 01-24-2005, 01:54 AM   PM User | #2
Brandoe85
teh Moderatorinator


 
Join Date: Sep 2004
Location: USA
Posts: 2,435
Thanks: 2
Thanked 38 Times in 38 Posts
Brandoe85 will become famous soon enough
Search google for mysql tutorials. http://www.google.com/search?hl=en&q...=Google+Search
__________________
-Brando
Why using tables for eating is stupid!
Brandoe85 is offline   Reply With Quote
Old 01-24-2005, 01:56 AM   PM User | #3
mat106
New Coder

 
Join Date: Jun 2004
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
mat106 is an unknown quantity at this point
Yeah i've done that but any tutorial i read seems to assume that i know how to connect to the database which i don't . I haven't installed MySQL locally. It's on the hosts server.
mat106 is offline   Reply With Quote
Old 01-24-2005, 02:06 AM   PM User | #4
Brandoe85
teh Moderatorinator


 
Join Date: Sep 2004
Location: USA
Posts: 2,435
Thanks: 2
Thanked 38 Times in 38 Posts
Brandoe85 will become famous soon enough
You host should provide you with what you need to connect to it. Do they provide you with phpmyadmin or something in that matter that lets you connect? If not, you'll have to contact them and see how you can connect.
__________________
-Brando
Why using tables for eating is stupid!
Brandoe85 is offline   Reply With Quote
Old 01-24-2005, 02:08 AM   PM User | #5
mat106
New Coder

 
Join Date: Jun 2004
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
mat106 is an unknown quantity at this point
Thanks. Will check and see.
mat106 is offline   Reply With Quote
Old 01-24-2005, 07:50 AM   PM User | #6
Yaggles
Regular Coder

 
Join Date: Jan 2005
Posts: 153
Thanks: 0
Thanked 0 Times in 0 Posts
Yaggles is an unknown quantity at this point
If your host has CPanel on their server and allows you to access the mysql part, then it should have your database name and database username with a string for connecting to it with PHP and Perl. An example is:
<?
$dbh=mysql_connect ("localhost", "username", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("database");
?>

That is how you do so in PHP.
Yaggles is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 11:32 PM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.