Hey,
Ok basically I am trying to create a Batch file that will sit on my desktop and allow me to connect to my local MySQL database, instead of having to open the command prompt and using "CD G:\blahblah\etc" to finally locate the correct directory/sub-directory, containing the 'BIN' folder to allow me to connect.
So far I have:
I thought this would open the command prompt, asking me to enter my password to connect to the database, but it runs the commands and then closes instantly. So basically what I need is some way of runnin the above commands and then keeping the command window open, for me to enter my password, and then query the database etc..etc..Code:CD D:\MyServer\MySQL\MySQL Server 5.0\bin mysql -h localhost -u root -p
Any help would be great, thanks!
![]()


LinkBack URL
About LinkBacks


Reply With Quote
