dba:cli_commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dba:cli_commands [2025/12/02 16:30] โ mlivolsi | dba:cli_commands [2025/12/02 20:17] (current) โ [Dumping and Restoring] mlivolsi | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| | Display users |select * From dba_users;| | \du | | | Display users |select * From dba_users;| | \du | | ||
| | Display Schemas | <same as show databases> | | Display Schemas | <same as show databases> | ||
| + | | Connect to a new DB | . | | connect database | | ||
| + | | Dropping a schema | drop user < | ||
| + | | Show all tables | select * From dba_tables where owner = < | ||
| + | |||
| + | |||
| + | ==== Privs ==== | ||
| + | ^ Command ^ Oracle ^ MySQL ^ Postgres ^ | ||
| + | | create user | create user < | ||
| + | |||
| + | |||
| + | ==== Dumping and Restoring ==== | ||
| + | ^ Command ^ Oracle ^ MySQL ^ Postgres ^ | ||
| + | |dumping | expdp | mysqldump | pg_dump | | ||
| + | |Restore | impdp | mysql > source < | ||
dba/cli_commands.1764693058.txt.gz ยท Last modified: by mlivolsi
