шпаргалки
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

584 B

SQL

linlks / ссылки

Извлечение команд sql из файла

echo "source /path/to/script.sql" | mysql -u root -proot -D database
cat /Desktop/test.sql | sudo mysql -uroot -p 
mysql -u yourusername -p yourpassword yourdatabase < query_file > results_file
mysql --user="username" --database="databasename" --password="yourpassword" < "filepath"

sql>>> source /path/to/script.sql
source \\home\\user\\Desktop\\test.sql;