mysql -u username -p database_name < import.sql
mysql -u username -p database_name < file.sql
; OR
mysql> use db_name;
mysql> source file_name.sql;
mysql -h hostname -u root -p databasename < path/filename.sql;
#!/bin/sh
mysql -u root --password="${MYSQL_ROOT_PASSWORD}" --database=projectdb </tmp/projectdb.sql &&
rm /tmp/projectdb.sql
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
Code Example |
---|
Sql :: sql server list user permissions |
Sql :: mysql breakline on string |
Sql :: start mysql linux terminal |
Sql :: ddl view |
Sql :: mssql get running queries |
Sql :: operadores en postgresql |
Sql :: date_format for time sql |
Sql :: convert uniqueidentifier to varchar in sql |
Sql :: truncate left characters mysql |
Sql :: mysql substract count and distinct count |
Sql :: sql string_agg |
Sql :: sql last week |
Sql :: postgres add superuser to database |
Sql :: drop table in mysql |
Sql :: mysql with rollup |
Sql :: create sqlite database in laravel |
Sql :: get first 3 letters in sql |
Sql :: group_concat order by |
Sql :: alter table |
Sql :: create mysql user |
Sql :: select tables from mysql database |
Sql :: oracle show execution plan |
Sql :: add auto increment column mysql |
Sql :: mysql db size |
Sql :: oracle last day of month |
Sql :: array out of range mql4 |
Sql :: mysql does sentence contain word |
Sql :: mysql limit offset |
Sql :: datepart postgres |
Sql :: list all the tables in sql |