Jun 17, 2003 #1 djam Technical User Nov 15, 2002 223 CA How would I load in a file with sql commands in it? What do I need to call the file? thanks " ahhh computers, how they made our lives much simpler "
How would I load in a file with sql commands in it? What do I need to call the file? thanks " ahhh computers, how they made our lives much simpler "
Jun 17, 2003 #2 sleipnir214 Programmer May 6, 2002 15,350 US There is no particular file name or extension you must use. When I need to perform multiple SQL queries from a file, I just pipe the file to the mysql admin application: mysql mydatabasename < mysqlfile Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL! Upvote 0 Downvote
There is no particular file name or extension you must use. When I need to perform multiple SQL queries from a file, I just pipe the file to the mysql admin application: mysql mydatabasename < mysqlfile Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!
Jun 17, 2003 Thread starter #3 djam Technical User Nov 15, 2002 223 CA I require a password to login to the database, this is what I'm doing: mysql -u databasename -p < mysqlfile it's not correct, can anyone give me some advice thanks " ahhh computers, how they made our lives much simpler " Upvote 0 Downvote
I require a password to login to the database, this is what I'm doing: mysql -u databasename -p < mysqlfile it's not correct, can anyone give me some advice thanks " ahhh computers, how they made our lives much simpler "
Jun 17, 2003 #4 sleipnir214 Programmer May 6, 2002 15,350 US Shouldn't that be: mysql -u yourusername databasename -p < mysqlfile ? Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL! Upvote 0 Downvote
Shouldn't that be: mysql -u yourusername databasename -p < mysqlfile ? Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!
Jun 17, 2003 Thread starter #5 djam Technical User Nov 15, 2002 223 CA ahh.... got it mysql -u yourusername -D databasename -p < mysqlfile thanks for your help " ahhh computers, how they made our lives much simpler " Upvote 0 Downvote
ahh.... got it mysql -u yourusername -D databasename -p < mysqlfile thanks for your help " ahhh computers, how they made our lives much simpler "