#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    3
    Rep Power
    0
    What's the command you use to run a .mysql file when connected to mysql using telnet?

    Much Appreciated.

    ------------------
    KeithMcL - KMcLUK@aol.com
    www.webmasterswork.com
    -
    #1 source for web developer jobs online.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Annapolis, Maryland US
    Posts
    113
    Rep Power
    16
    By a .mysql file, do you mean a file containing sql commands?

    If that's the case, then you can run it from the UNIX command prompt, not within the mysql client.

    $ mysql -u uname -ppassword < file.sql

    file.sql should contain...

    use dbname;

    sql statement 1

    sql statement 2...

    sql statement n

    I hope I understood the question correctly.

    Kyuzo

    - Nou ga aru taka wa tsume o kakusu

    [This message has been edited by Kyuzo (edited August 17, 2000).]

Similar Threads

  1. Mysql problem.
    By Nik in forum MySQL Help
    Replies: 54
    Last Post: December 21st, 2006, 07:02 PM
  2. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 09:27 AM
  3. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 08:42 PM
  4. How to parse a CSV .txt file and upload into MySQL?
    By JakeBones in forum PHP Development
    Replies: 1
    Last Post: February 5th, 2004, 12:32 PM
  5. running JSP file in tomcat server
    By rama_phalguni in forum Java Help
    Replies: 1
    Last Post: January 31st, 2004, 11:45 PM

IMN logo majestic logo threadwatch logo seochat tools logo