Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 11th, 2008, 01:13 PM
Registered User
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Writing paths in Mysql

This is probably a very simple problem but one I've got stuck on.
I just started learning Mysql. An example exercise needs me to put in the path to a text file with a .sql extension. I put in the full path c:\ etc. but the prompt says it cannot find the file. Is there any particular convention in putting the path in ?
The code as I wrote it is:
c:\program files\mysql\mysql server 5.0\bin\mysql < C:\program files\mysql\user_info.sql

thanks

Mark

 
Old May 13th, 2008, 08:53 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

*heh*

You're using windows, right? Try something like:
Code:
type C:\program files\mysql\user_info.sql | c:\program files\mysql\mysql server 5.0\bin\mysql
Or maybe:
Code:
c:\program files\mysql\mysql server 5.0\bin\mysql C:\program files\mysql\user_info.sql
I'm afraid I don't have a windows box on which to experiment at the moment

Cheers

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find paths in visual C#? chobo2 C# 2008 aka C# 3.0 2 September 25th, 2008 11:12 PM
not all code paths return a value galua SQL Language 11 January 20th, 2008 09:36 PM
problem writing listview data to mysql db method Pro VB 6 2 April 10th, 2007 07:17 PM
paths table FT BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 December 12th, 2006 11:50 AM
problem writing listview data to mysql db method Pro VB Databases 0 May 17th, 2006 06:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.