Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: how do I execute .sql files?

  1. #11
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's bash. $ is the prompt. cat outputs the contents of a file, like DOS' type. | pipes the output of the last command (or two commands here because they're grouped with brackets) to a new command, mysql (the MySQL command-line client).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  2. #12
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,413
    Thanks
    101
    Thanked 115 Times in 113 Posts

    Default

    Thanks, that was very informative. My knowledge of web design is more limited to mostly PHP, some CSS, and a pinch of PCRE (yah, I know that is also PHP). My HTML is actually a bit rusty since my web designing practices use almost all CSS instead of HTML these days, so Bash I am not familiar with, but your explanation of how it worked was pretty clear.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •