MySQL installation help!

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



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 31st, 2007, 15:22
Up'n'Coming Member
Join Date: Aug 2007
Location: United Kingdom
Age: 21
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Question MySQL installation help!

I don't know what i'm doing wrong but I'm having loads of trouble installing MySQL, Apache and PHP on Windows! I think its a combination of me not actually understanding it fully or that even my lecturer doesn't know how to help lol

Well, if anyone could give me a guide as to what to do with like the correct one to download etc I will be extremely grateful

And also, I have php on my MAC installed fine, but again confused about installing MySQL and Apache on there?

I have books but I just don't understand!
Thank you
Reply With Quote

  #2 (permalink)  
Old Aug 31st, 2007, 15:47
Reputable Member
Join Date: Feb 2006
Location: London
Age: 25
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Re: MySQL installation help!

Doing it all from scratch is tough, especially when you've not done it before.

I still have nightmares about it.

Do you have any particular error messages?


For mac, try using this: http://www.mamp.info/en/index.php - I use this at home for testing and it's great.
Reply With Quote
  #3 (permalink)  
Old Aug 31st, 2007, 15:58
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,799
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: MySQL installation help!

can't you use iis?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #4 (permalink)  
Old Aug 31st, 2007, 16:24
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

doesn't get any easier than this: http://www.apachefriends.org/en/xampp.html
download, run, select a drive root as target (ex: C:\ or D:\), wait for it to finish extracting, and start using!!!
Reply With Quote
  #5 (permalink)  
Old Aug 31st, 2007, 16:41
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,799
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: MySQL installation help!

i downloaded the installer :
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #6 (permalink)  
Old Sep 2nd, 2007, 14:24
Up'n'Coming Member
Join Date: Aug 2007
Location: United Kingdom
Age: 21
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

Thanks so much I have used http://www.apachefriends.org/en/xampp.html and I think I've got it working!
Reply With Quote
  #7 (permalink)  
Old Sep 2nd, 2007, 14:46
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,799
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: MySQL installation help!

i didn't, it couldn't use port 80, (i think cos i have iis).
shame
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #8 (permalink)  
Old Sep 2nd, 2007, 21:36
Up'n'Coming Member
Join Date: Aug 2007
Location: United Kingdom
Age: 21
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

well i've got everything but the mysql working, well it's working but the databases aren't linking to the php, I'm doing it locally and I keep getting errors on the page, mainly ;
An error occurred in script 'C:\xampp\htdocs\xampp\mysql_connect.php' on line 12:
mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES)
Date/Time: 9-2-2007 22:35:47

YES isnt my password btw it just come up with that lol

Any suggestions what i need to do? thanks
Reply With Quote
  #9 (permalink)  
Old Sep 2nd, 2007, 22:03
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,799
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: MySQL installation help!

have you used the mysql terminal to create a user?
also there may be a syntax error, post your code and **** your password
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #10 (permalink)  
Old Sep 3rd, 2007, 03:41
sannbe's Avatar
SuperMember

SuperMember
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 installation help!

Quote:
i didn't, it couldn't use port 80
try port 3306
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
Reply With Quote
  #11 (permalink)  
Old Sep 3rd, 2007, 08:51
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

Check the password setting in the xammp control panel. go to admin on mysql then check my.ini setup you should see the password assigned to mysql. so long as it corresponds to your connect.php it should work.
all the best

Pat
Reply With Quote
  #12 (permalink)  
Old Sep 3rd, 2007, 10:42
Up'n'Coming Member
Join Date: Aug 2007
Location: United Kingdom
Age: 21
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

i dont seem to have connect.php :-S !!
Reply With Quote
  #13 (permalink)  
Old Sep 3rd, 2007, 10:49
Up'n'Coming Member
Join Date: Aug 2007
Location: United Kingdom
Age: 21
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

I have this code, but it still doesnt seem to work?

PHP: Select all

<?php
// This file contains the database access information. 
// This file also establishes a connection to MySQL and selects the database.
// Set the database access information as constants.
DEFINE ('DB_USER''username');
DEFINE ('DB_PASSWORD''password');
DEFINE ('DB_HOST''localhost');
DEFINE ('DB_NAME''sitename');
// Make the connnection.
$dbc = @mysql_connect (DB_HOSTDB_USERDB_PASSWORD) OR die ('Could not connect to MySQL: ' mysql_error() );
// Select the database.
@mysql_select_db (DB_NAME) OR die ('Could not select the database: ' mysql_error() );
?>
Reply With Quote
  #14 (permalink)  
Old Sep 3rd, 2007, 13:46
SuperMember

SuperMember
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

You can try this.

PHP: Select all

<?php

$hostname_database 
"your hostname";
$database_database "your database name";
$username_database "your username";
$password_database "your password";
$database mysql_pconnect($hostname_database$username_database$password_database) or trigger_error(mysql_error(),E_USER_ERROR); 
?>
make sure the password and username are set in my.ini
Reply With Quote
  #15 (permalink)  
Old Sep 3rd, 2007, 15:55
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,799
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: MySQL installation help!

Quote:
Originally Posted by sannbe View Post
try port 3306
How can you change it?
it won't even start.
thanks
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #16 (permalink)  
Old Sep 3rd, 2007, 15:58
Up'n'Coming Member
Join Date: Aug 2007
Location: United Kingdom
Age: 21
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

I think my problem is linking the php to the databases, I'm doing it on localhost. Is there something that I need to make the php script link to the database?
Reply With Quote
  #17 (permalink)  
Old Sep 3rd, 2007, 16:03
Up'n'Coming Member
Join Date: Aug 2007
Location: United Kingdom
Age: 21
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Re: MySQL installation help!

On phpMyAdmin I'm getting;

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

What does this mean!? Sorry for all the questions!
Reply With Quote
  #18 (permalink)  
Old Sep 5th, 2007, 10:14
Reputable Member
Join Date: Feb 2006
Location: London
Age: 25
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Re: MySQL installation help!

Quote:
Originally Posted by lisafelst12 View Post
On phpMyAdmin I'm getting;

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Nice one mate, that means mysql's working.

It's basically saying the query you are doing is using incorrect syntax.

If you post the query you are trying to run and we can have a look.
Reply With Quote
Reply

Tags
apache, help, installation, mysql, php

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
Wordpress installation problem marSoul Website Planning 7 Jan 15th, 2008 09:24
Installation interactive flash map Dan1539 Web Page Design 1 Aug 21st, 2007 12:28
NEW to php but stuck on installation charliechops PHP Forum 7 Nov 3rd, 2006 19:22
phpMyAdmin installation Audioz Databases 3 Mar 4th, 2005 15:19
php installation munim PHP Forum 3 Mar 18th, 2004 15:14


All times are GMT. The time now is 09:25.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43