Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM simple mysql problem

date posted 25th April 2001 22:39

On Wed, 25 Apr 2001 13:54:20 +0100, [EMAIL REMOVED] said:

Rob,

>I can telnet into my account, and they've set up the database nuke. The
>command I've been using to try to make the nuke.sql expand into the nuke
>database is the following:
>
>nuke < sql/nuke.sql

Didn't see an answer to this, so here's my guess.

I've never used phpNuke myself, but this isn't the command you want in
any situation.

To import a file containing a series of commands into mysql from the
command line you need to do something like:

mysql -u user -p database < file.sql

Where "user" is your username (in Mysql, not the OS. They might be the
same but don't have to be) "database" is the name of the database and
"file.sql" is the file containing the commands you want to run. The "-p"
flag tell mysql to ask for a password from you.

So, for example, if I want to import test.sql into database temp3 with a
user name of garrett I would type:

mysql -u garrett -p temp3 < /path/to/test.sql


>on return, this produces a new line, which I presume means the command is
>successful, however I'm still getting the

Nuke may have an executable or a shell script called nuke (probably to
start the server itself), it probably doesn't expect to get a load of sql
commands on STDIN.

As I said, this is all guesswork, it may have a wrapper for mysql called
'nuke', but those commands up there are the command line way to do it.

Need any more help, just holla.


G. "Just upgraded my production server to Redhat7.1, oooo, loverly
kernel2.4 goodness"

--
----------------------------------------------------------------------------
WORK: http://spiked.co.uk/
PLAY: http://polytechnic.co.uk/



Messages by Day
April 30th 2001
April 29th 2001
April 28th 2001
April 27th 2001
April 26th 2001
April 25th 2001
April 24th 2001
April 23rd 2001
April 22nd 2001
April 21st 2001
April 20th 2001
April 19th 2001
April 18th 2001
April 17th 2001
April 16th 2001
April 15th 2001
April 14th 2001
April 13th 2001
April 12th 2001
April 11th 2001
April 10th 2001
April 9th 2001
April 8th 2001
April 7th 2001
April 6th 2001
April 5th 2001
April 4th 2001
April 3rd 2001
April 2nd 2001
April 1st 2001


Messages by Month
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
January 2001


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000