PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 7th, 2006, 03:28 AM
carolyn carolyn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 42 carolyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 sec
Reputation Power: 2
Newbie need help!!

I have just installed Xampp package which includes apache 2,php 5,and mysql 5.Problem is i cannot use mysql.exe.therefore,i cant view my database in mysql.should i install the mysql driver or something?or is there anything i should configure my system to work with mysql?i'm using Windows XP.Please help..

Reply With Quote
  #2  
Old September 7th, 2006, 08:17 AM
Kayosz Kayosz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 25 Kayosz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 2 sec
Reputation Power: 0
RE: Newbie need help!!

What does it say when you try to run mysql.exe?

Reply With Quote
  #3  
Old September 7th, 2006, 11:24 PM
carolyn carolyn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 42 carolyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 sec
Reputation Power: 2
RE: Newbie need help!!

the window just appear for a second and disappear,didnt mention anything.

Reply With Quote
  #4  
Old September 8th, 2006, 04:44 AM
Kayosz Kayosz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 25 Kayosz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 2 sec
Reputation Power: 0
RE: Newbie need help!!

You probably double-clicked mysql.exe in Windows. That's why the window appeared and disappeared. Did you run winmysqladmin.exe? After MySQL is installed you need to run winmysqladmin.exe to setup a username and password for MySQL. Please note that you have to use the command prompt to use MySQL, because you need to login into MySQL by typing for example >mysql -u carolyn -p. -u means user and -p means password. Note that you dont give your password as part of the command line. It will ask you for it. Or you can create a batch file with the following line: @mysql -u carolyn -p. Then you don't have to use the command prompt. Nice!

After that, well, have a blast.

Reply With Quote
  #5  
Old September 12th, 2006, 01:21 AM
carolyn carolyn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 42 carolyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 sec
Reputation Power: 2
RE: Newbie need help!!

hi Kayosz,i've already tried to run winmysqladmin.exe.then i try to run mysql using command prompt.can u pls teach me how to run it using command propmt because i'm not familiar with it.thanks...

Reply With Quote
  #6  
Old September 12th, 2006, 10:13 AM
Kayosz Kayosz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 25 Kayosz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 2 sec
Reputation Power: 0
RE: Newbie need help!!

Hi Carolyn,

you said you have already run winmysqladmin.exe. I can safely asume you've already set up a username and password using winmysqladmin.

Now for the fun part. Click start and then run and type cmd in the textfield. Click OK. The command prompt window will pop up. Type mysql -u <username> -p where <username> is your username and press enter. For example: mysql -u carolyn -p, it will ask you to enter your password. Type in your password and press enter.

If successful, you will see something like this:

Welcome to the MYSQL monitor. Commands end with ; or g.
Your MySQL connection id is x to server version: x.x.xx-nt

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql>

Cool, we have a mysql prompt. Now you can go crazy. To use a particular database for example, mysql, type:

mysql>use mysql

and press enter. Mysql will respond by saying Database changed. Now you can use the SELECT, INSERT, UPDATE commands.

BTW, I suggest you leave the mysql database alone. Messing it up will have you reinstall MySQL. Rather create you own database by typing:

mysql>create database carolyn;

That will create a new database with your name.

Type: use carolyn

to use your newly created database.

Then you create a table in the database by typing:

mysql>create table test(field1 VARCHAR(20), field2 INT(20), field3 TEXT);

Good, we got a table. Now type:

mysql>show tables;

This will show you all the tables in your database. At the moment there is only one table.

Type:

mysql>describe test;

This will show you all the fields in your table.

And that's it. Enjoy. If you want to know more I suggest you read the manual on www.mysql.com, but feel free to ask.

Reply With Quote
  #7  
Old September 13th, 2006, 02:48 AM
carolyn carolyn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 42 carolyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 sec
Reputation Power: 2
RE: Newbie need help!!

sori to trouble u again kayosz,i've already open command prompt.n type mysql -u myusername -p.but it said 'mysql' is not recognized as an internal or external command,operable program or batch file.my username is mysql.pls help..

Reply With Quote
  #8  
Old September 13th, 2006, 06:11 AM
Kayosz Kayosz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 25 Kayosz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 2 sec
Reputation Power: 0
RE: Newbie need help!!

Hi Carolyn,

you can trouble me as many times as you wish.

Sounds like mysql is not in the Windows XP path variable.

Anyways, I assume you have installed XAMPP to the default directory which is Crogram filesxampp. If so, then go to the command prompt and type the following: cdprogram filesxamppmysqlbin

You should be in the directory where mysql.exe is located.

Now you should be able to login: mysql -u mysql -p

BTW, if you don't like all this text-based database interaction and prefer Windows rather, I suggest you download phpmyadmin from www.phpmyadmin.net. Try to get version 2.6.4. Very user friendly and you can do almost anything.

Let me know.

Reply With Quote
  #9  
Old September 13th, 2006, 11:11 PM
carolyn carolyn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 42 carolyn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 53 sec
Reputation Power: 2
RE: Newbie need help!!

hey kayosz i've solved the problem with your help,thanks a lot!u rocks man!

Reply With Quote
  #10  
Old September 14th, 2006, 06:26 AM
Kayosz Kayosz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 25 Kayosz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 2 sec
Reputation Power: 0
RE: Newbie need help!!

Glad I could help.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Newbie need help!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway