NOTE: Changing the.txt field to.sql will in itself not cause your script to run with an SQL database (or whatever you expect to execute the file). Niel has given the key bit of information, that you need to make the file executable chmod +x your.file Since it is a text file, then very first line had better contain the path to the program that is going to interpret your script. For example #!/usr/bin/env mysql Or the first line might be #!/usr/local/bin/mysql The first assumes mysql is the program that is going to interpret your.sql script, and that mysql can be found via your PATH environment variable (use the 'which mysql' to see if the command is in your PATH, assuming mysql is what you are going to use). Overwatch for pc and mac. The second example assumes you are using mysql and that it is stored in /usr/local/bin. You would of course provide the name of the actually program you want to interpret the.sql script and provide its actual path to the executable. Details for file extension: SQL - Structured Query Language Data Troubleshoot, fix and learn about SQL and errors with extensive information from Filext.com. The SQL file type is primarily associated with Structured Query Language Data. How to open an SQL file? Apple Footer • This site contains user submitted content, comments and opinions and is for informational purposes only. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the.
0 Comments
Leave a Reply. |