Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysqldump

# Syntax
mysqldump -u [username] -p [database-to-dump] > [database-to-receive]

# Pipe it! Exporting DB from external host
mysqldump -u [username] -P [port] -h [host] [database-to-dump] | mysql -u root -h 127.0.0.1 [database-to-receive]

# Export specific tables by typing the name after the targeted DB
mysqldump -u [username] -P [port] -h [host] [database-to-dump] [tabl1] [table2] [table3] | mysql -u root -h 127.0.0.1 [database-to-receive]
Comment

mysqldump database

#To export single database
mysqldump -h [server] -u [user] -p [database_name]  | gzip > [filename].gz
Comment

install mysqldump

# Mysql
sudo apt-get install mysql-client
# MariaDB
sudo apt-get install mariadb-clients
Comment

mysqldump cli

/etc/init.d/nginx start
Comment

mysqldump

mysqldump -u [username] -p [database-to-dump] > filename(e.g. dump.sql)

# or 
sudo mysql database_name > filename
Comment

mysqldump

mysqldump -u [username] -p [database-to-dump] > [database-to-receive].sql
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle select row max date 
Sql :: @firebase/database: FIREBASE WARNING: update at /users failed: permission_denied 
Sql :: plpgsql if statement 
Sql :: select from select sql server 
Sql :: to_date postgresql 
Sql :: what is having clause in sql 
Sql :: sql where part of string match 
Sql :: mysql default value 
Sql :: oracle create table primary key 
Sql :: add foreign key to existing table postgres 
Sql :: install mysql for fedora 34 
Sql :: import data from csv to sql server 
Sql :: mssql server port 
Sql :: stuff sql server 
Sql :: get locked tables sql server 
Sql :: mysql timezone 
Sql :: sqlite alter table add multiple column 
Sql :: mysql workbench tutorial 
Sql :: mysql GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 
Sql :: sql query to create table in database 
Sql :: SQL Modify Column in a Table -SQL Server 
Sql :: 0 
Sql :: mysql concat and use as where column 
Sql :: sql alter column 
Sql :: how to get max from each department in sql 
Sql :: mysql if statement in where clause 
Sql :: mysql decimal remove trailing zeros 
Sql :: mysql size of database 
Sql :: how to update values in sql 
Sql :: ORACLE sql join multiple tables 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =