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

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-03-2002, 09:05 PM   PM User | #1
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
Error during MySQL Setup...

I'm going through the PHP/MySQL tutorial on Webmonkey, and I got to the part where we create a DB - I'm getting this error though...

C:\MYSQL\BIN>mysqladmin -u root create mydb
MYSQLADMIN: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' (
Check that mysqld is running on localhost and that the
You can check this by doing 'telnet localhost 3306'


what do I do now??

help please

~Quack

Last edited by QuackHead; 07-04-2002 at 05:08 PM..
QuackHead is offline   Reply With Quote
Old 07-03-2002, 09:17 PM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
You need to make sure mySQL is running before you can connect to it. Look in the folder where you installed it and find the startup file as it mentioned in the error.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-03-2002, 09:38 PM   PM User | #3
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
now I get this error...

C:\MYSQL\BIN>mysqladmin -u root create mydb
MYSQLADMIN: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'

when I use a password I get this

C:\MYSQL\BIN>mysqladmin -u root -p[root] create mydb
MYSQLADMIN: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'

help please?

~Quack
QuackHead is offline   Reply With Quote
Old 07-03-2002, 10:12 PM   PM User | #4
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
yes i think i had the same problem with my mysql. the thing is i hadnt set the password i think (i really dont want to go back and remeber that again ) anyways to set the password (under windoze if thats what your using quack)

mysqladmin -u root password 'mynewpassword'

after that you should be set. another thing is that when you start up the mySQL server use the winmysqladmin executable: it will open a managemnt system and also start up the mysl server executable (mysqld) it wil then show up as a set of traffic lights in the systray (red if the mysqld exec is not running and green if it is meaning your servers up!)

also get the mysqlGUI from the mySQL site (its hideous and garish but its beter than command line) this is a perfect alternative to the countless different command lines execs there are in the /bin
hope that does you. i found installing mySQL the hardest part because it is sooooooooo badly documented. hey jeewhiz couldnt you put a tutorial on how to install mysql on a mindows 9x system or i could do one if you want
__________________
photoshop too expensive? use the GIMP! www.gimp.org

Last edited by whackaxe; 07-03-2002 at 10:36 PM..
whackaxe is offline   Reply With Quote
Old 07-04-2002, 01:56 PM   PM User | #5
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
Thanks - I still got an error from Dos, but I downloaded the GUI and it seemed to work for me to change my password.

How do I create a DB from MySQL GUI ??

thanks all help is MUCH appreciated!!!

~Quack
QuackHead is offline   Reply With Quote
Old 07-04-2002, 02:18 PM   PM User | #6
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
k, I figured out how to make a DB from MySQL GUI, but I get the same error....

can someone post some decent step by step directions of how to install MySQL and PHP ??

This is really starting to bug me...

thanks

~Quack
QuackHead is offline   Reply With Quote
Old 07-04-2002, 03:44 PM   PM User | #7
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Unless you actually want to learn how to set up and configure all these I would just download phpdev4. It installs all of that already configured for you. Plus using phpMyAdmin is much easier to work with mySQL.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-04-2002, 04:08 PM   PM User | #8
Jeewhizz
Regular Coder


 
Join Date: May 2002
Location: London, England
Posts: 369
Thanks: 0
Thanked 0 Times in 0 Posts
Jeewhizz is an unknown quantity at this point
What spook forgot to say was the url

www.firepages.com.au

Enjoy

Jee

p.s., spook, don't worry dude, just getting old
__________________
Jeewhizz - MySQL Moderator
http://www.sitehq.co.uk
PHP and MySQL Hosting
Jeewhizz is offline   Reply With Quote
Old 07-04-2002, 04:09 PM   PM User | #9
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
phpdev4 - is this compatible with IIS ???

Like I've said - I'm really new to this, so I don't really know what I'm doing

~Quack
QuackHead is offline   Reply With Quote
Old 07-04-2002, 04:35 PM   PM User | #10
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Quote:
Originally posted by Jeewhizz
What spook forgot to say was the url

www.firepages.com.au

Enjoy

Jee

p.s., spook, don't worry dude, just getting old
Yeah im getting forgetful in my old age.

phpdev has it's own obviously superior web server Apache. If all you want to do is develop PHP/mySQL stuff and practice with it I would download that as it is all set up and configured for you. PHP and mySQL can run with IIS but you have to go through all the trouble of installing each of those and configuring them. If you want to learn how to do that then that's okay. But if you just want to be able to get started learning to write PHP and working with mySQL db's then I would just install phpdev.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-04-2002, 05:01 PM   PM User | #11
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
The thing is that I need to keep my current configuation active .. is it possible to run both of them side by side?

~Quack
QuackHead is offline   Reply With Quote
Old 07-04-2002, 05:06 PM   PM User | #12
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
I've run both of them before. I used phpdev for devoping php, mysql, perl stuff and used the other for asp stuff.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-04-2002, 05:46 PM   PM User | #13
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
Ok, well I think I'd like to see some instructions on doing it the other way - I tried in stalling phpdev but it didn't work...



~Quack
QuackHead is offline   Reply With Quote
Old 07-04-2002, 07:26 PM   PM User | #14
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Ok to install each component individually as you intend you should read the documentation and installation instructions that comes with each one.

As for phpdev it works just fine. If you give a better explanation than it don't work than we can help you get up and running.

When I first installed phpdev I simply ran the install file and executed the batch file that starts Apache and MySQL and everything ran just fine. You did start everything right?
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 07-04-2002, 08:58 PM   PM User | #15
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
yeah, I started everything properly, but it didn't link up to the right file (broken link on the start page...)

Anyways, I think I'm just gunna give up on my PHP endevour..

thanks for all your help though...

~Quack
QuackHead 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 06:55 PM.


Advertisement
Log in to turn off these ads.