Link to home
Start Free TrialLog in
Avatar of assaultkitty
assaultkitty

asked on

MySQL - PHP

I am working on a project.  It requires me to connect to the MySQL server from the wamp.  I am not sure what I need to do get started with this process.  I was told that you can go to the MySQL server and create the database.  Well, I started with the command mysql -h localhost -u bparson -p.  I got this output.  

C:\Users\student>mysql -h localhost -u user -p
'mysql' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\student>mysql -h localhost -u bparson -p
'mysql' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\student>
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Open your browser and goto "http://localhost" and you should see the WAMP home page.  One of the links there is for 'phpmyadmin' which you can use to manage your MySQL.  MySQL under WAMP is not registered as a system program so I don't know if you can use the 'mysql' command line.
Avatar of assaultkitty
assaultkitty

ASKER

DaveBaldwin,
At phpmyadmin, localhost@root is used to manage MySQL.  According to my book, I am to use the mysql command line.  
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\student>C:\wamp\bin\mysql\mysql5.5.16\bin
'C:\wamp\bin\mysql\mysql5.5.16\bin' is not recognized as an internal or external
 command,
operable program or batch file.

C:\Users\student>

C:\Users\student>

C:\Users\student>

C:\Users\student>

This is what I got for my output.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you. Thank you.  I am happy.  One more question.  The mysql console.  Where does that come into play.  P.S. I do not need a password.
I don't know what you mean by "mysql console".  Using 'root' without a password is ok on a machine that no one else uses.  It can be critical on a machine that others have access to.
the is a mysql console.  When you go to customize the wamp.  MySQL has a mysql console.  Where does that come into play?
That is just an alternate way to launch the 'mysql' command line program.
Thanks.
You're welcome.