шпаргалки
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.

12 lines
584 B

2 years ago
# SQL
## linlks / ссылки
2 years ago
- [хорошая статья на хабре / шпаргалка](https://habr.com/ru/post/564390/)
## Извлечение команд sql из файла
2 years ago
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"
2 years ago
2 years ago
mysql> source /path/to/script.sql
2 years ago
source \\home\\user\\Desktop\\test.sql;