Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Set Path For Mysql Which Is Installed In Xampp Server


No replies to this topic

#1 tinoymalayil

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 153 posts
  • Gender:Male
  • Location:India
  • myCENT:14.1

Posted 01 June 2010 - 03:14 AM

Hi friends,
When we work in xampp server,we can only access mysql using the php admin only.You can access mysql database externally too.I hereby introducing how to set path to execute mysql from command path whicch is installed along with xampp server.

The below steps are for Windows OS:
set path by right clicking my computer
2.click properties> click advanced tab>click environment variable> edit path of system variable

3.include the below line after ;(semicolon)
C:\xampp\mysql\bin\

4.click ok three times.
5.then open notepad window type the below line
mysql -h localhost -u root -p

6.save the file as mysql.bat

7.close the file..

8.Then double click the mysql.bat file
9.the command prompt will ask mysql password( if there is no password . just enter)
you can execute queries here..

Hope this helps





Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users