SlideShare a Scribd company logo
MySQL Restore (Recovery) Script
Merhaba Arkadaşlar ,
Bugün Mysql restore işlemlerine bakacağız. Aldığımız backup’tan geri dönmek için kullanacağımız
komutları göreceğiz. Aldığımız yedekten tüm database için geri dönüş planlarımız olacak.
Şimdi örneklemlere başlayalım.
Kurulu olan Mysql Sürümü = Mysql 5.5.44
Database_Name = yazilimcoplugu
User_Name = root
Root pass = qwerty
Backup’ın Bulunduğu dizin = /home/backup/
shell> mysqldump [options] > dump.sql
# mysql –u[USER_NAME] –p[User_Pass] Database_Name < Backup’ın Bulunduğu Dizin
Full Database
# mysql -uroot -pqwerty yazilimcoplugu < /home/backup/backup.sql
# mysql --protocol=tcp --port=3306 --user=root --default-character-set=utf8 --comments --
database= yazilimcoplugu -p < /home/backup/backup.sql
Mysql komutuna ait options bilgileri aşağıdaki gibidir.
Table 4.6 mysql Options
Format Description Introduced Removed
--auto-rehash Enable automatic rehashing
--auto-vertical-output Enable automatic vertical result set display 5.5.3
--batch Do not use history file
--character-sets-dir Directory where character sets are installed
--column-names Write column names in results
--column-type-info Display result set metadata
--comments
Whether to retain or strip comments in statements sent
to the server
--compress Compress all information sent between client and server
--connect_timeout Number of seconds before connection timeout
--database The database to use
--debug
Write debugging log; supported only if MySQL was built
with debugging support
--debug-check Print debugging information when program exits
--debug-info
Print debugging information, memory, and CPU
statistics when program exits
--default-auth Authentication plugin to use 5.5.7
--default-character-set Specify default character set
--defaults-extra-file Read named option file in addition to usual option files
--defaults-file Read only named option file
--defaults-group-suffix Option group suffix value
--delimiter Set the statement delimiter
--enable-cleartext-plugin Enable cleartext authentication plugin 5.5.27
--execute Execute the statement and quit
--force Continue even if an SQL error occurs
--help Display help message and exit
--host Connect to MySQL server on given host
--html Produce HTML output
--ignore-spaces Ignore spaces after function names
--init-command SQL statement to execute after connecting
--line-numbers Write line numbers for errors
--local-infile
Enable or disable for LOCAL capability for LOAD DATA
INFILE
--max_allowed_packet
Maximum packet length to send to or receive from
server
--max_join_size
The automatic limit for rows in a join when using --safe-
updates
--named-commands Enable named mysql commands
--net_buffer_length Buffer size for TCP/IP and socket communication
--no-auto-rehash Disable automatic rehashing
--no-beep Do not beep when errors occur
--no-defaults Read no option files
--no-named-commands Disable named mysql commands 5.5.3
--no-pager Deprecated form of --skip-pager 5.5.3
--no-tee Do not copy output to a file 5.5.3
--one-database
Ignore statements except those for the default database
named on the command line
--pager Use the given command for paging query output
--password Password to use when connecting to server
--pipe On Windows, connect to server using named pipe
--plugin-dir Directory where plugins are installed 5.5.7
--port TCP/IP port number to use for connection
--print-defaults Print default options
--prompt Set the prompt to the specified format
--protocol Connection protocol to use
--quick Do not cache each query result
--raw Write column values without escape conversion
--reconnect
If the connection to the server is lost, automatically try to
reconnect
--i-am-a-dummy, --safe-
updates
Allow only UPDATE and DELETE statements that
specify key values
--secure-auth Do not send passwords to server in old (pre-4.1) format
--select_limit
The automatic limit for SELECT statements when using
--safe-updates
--shared-memory-base-
name
The name of shared memory to use for shared-memory
connections
--show-warnings Show warnings after each statement if there are any
--sigint-ignore
Ignore SIGINT signals (typically the result of typing
Control+C)
--silent Silent mode
--skip-auto-rehash Disable automatic rehashing
--skip-column-names Do not write column names in results
--skip-line-numbers Skip line numbers for errors
--skip-named-commands Disable named mysql commands
--skip-pager Disable paging
--skip-reconnect Disable reconnecting
--socket For connections to localhost, the Unix socket file to use
--ssl Enable secure connection
--ssl-ca Path of file that contains list of trusted SSL CAs
--ssl-capath
Path of directory that contains trusted SSL CA
certificates in PEM format
--ssl-cert Path of file that contains X509 certificate in PEM format
--ssl-cipher List of permitted ciphers to use for connection encryption
--ssl-key Path of file that contains X509 key in PEM format
--ssl-verify-server-cert
Verify server certificate Common Name value against
host name used when connecting to server
--table Display output in tabular format
--tee Append a copy of output to named file
--unbuffered Flush the buffer after each query
--user MySQL user name to use when connecting to server
--verbose Verbose mode
--version Display version information and exit
--vertical
Print query output rows vertically (one line per column
value)
--wait
If the connection cannot be established, wait and retry
instead of aborting
--xml Produce XML output
Kaynak : http://dev.mysql.com/doc/refman/5.5/en/mysql-command-options.html
Yazan : Hızlan ERPAK

More Related Content

What's hot

Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
Mohd Khairulazam
 
ESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/DocumentationESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/DocumentationJeremy Dixon
 
Como criar um repositório Ubuntu
Como criar um repositório UbuntuComo criar um repositório Ubuntu
Como criar um repositório UbuntuCarlos Eduardo
 
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and ProfilingCaching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and ProfilingScott MacVicar
 
How to Block Malicious Address by Using Feed Service?
How to Block Malicious Address by Using Feed Service?How to Block Malicious Address by Using Feed Service?
How to Block Malicious Address by Using Feed Service?
İbrahim UÇAR
 
grate techniques
grate techniquesgrate techniques
grate techniques
junaid novapex
 
Cent os 5.1 - configuring samba 3.0 to use the ads security mode
Cent os 5.1  - configuring samba 3.0 to use the ads security modeCent os 5.1  - configuring samba 3.0 to use the ads security mode
Cent os 5.1 - configuring samba 3.0 to use the ads security modeB Sasi Kumar
 
Caching for Cash: Caching
Caching for Cash: CachingCaching for Cash: Caching
Caching for Cash: CachingScott MacVicar
 
PowerShell 2 remoting
PowerShell 2 remotingPowerShell 2 remoting
PowerShell 2 remotingjonathanmedd
 
WordPress Configuration tips
WordPress Configuration tipsWordPress Configuration tips
WordPress Configuration tips
Masharul Pamir
 
Aws amazon ec2
Aws amazon ec2Aws amazon ec2
Aws amazon ec2
Sentinel Solutions Ltd
 
Watch Me Install Alfresco
Watch Me Install AlfrescoWatch Me Install Alfresco
Watch Me Install Alfresco
Alfresco Software
 
Apache
ApacheApache
Apache
rsibbaluca
 
Getting modular with OSGI
Getting modular with OSGIGetting modular with OSGI
Getting modular with OSGI
Andrii Krokhmalnyi
 
Presentation Linux Server setup Advance Networking
Presentation   Linux Server setup Advance NetworkingPresentation   Linux Server setup Advance Networking
Presentation Linux Server setup Advance Networking
Tariqul Islam Shohag
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0venkatakrishnan k
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
Ajaigururaj R
 

What's hot (18)

Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
 
ESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/DocumentationESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/Documentation
 
Como criar um repositório Ubuntu
Como criar um repositório UbuntuComo criar um repositório Ubuntu
Como criar um repositório Ubuntu
 
Caching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and ProfilingCaching for Cash: Benchmarking and Profiling
Caching for Cash: Benchmarking and Profiling
 
How to Block Malicious Address by Using Feed Service?
How to Block Malicious Address by Using Feed Service?How to Block Malicious Address by Using Feed Service?
How to Block Malicious Address by Using Feed Service?
 
grate techniques
grate techniquesgrate techniques
grate techniques
 
Cent os 5.1 - configuring samba 3.0 to use the ads security mode
Cent os 5.1  - configuring samba 3.0 to use the ads security modeCent os 5.1  - configuring samba 3.0 to use the ads security mode
Cent os 5.1 - configuring samba 3.0 to use the ads security mode
 
Caching for Cash: Caching
Caching for Cash: CachingCaching for Cash: Caching
Caching for Cash: Caching
 
PowerShell 2 remoting
PowerShell 2 remotingPowerShell 2 remoting
PowerShell 2 remoting
 
WordPress Configuration tips
WordPress Configuration tipsWordPress Configuration tips
WordPress Configuration tips
 
Coscup 2012-urfkill
Coscup 2012-urfkillCoscup 2012-urfkill
Coscup 2012-urfkill
 
Aws amazon ec2
Aws amazon ec2Aws amazon ec2
Aws amazon ec2
 
Watch Me Install Alfresco
Watch Me Install AlfrescoWatch Me Install Alfresco
Watch Me Install Alfresco
 
Apache
ApacheApache
Apache
 
Getting modular with OSGI
Getting modular with OSGIGetting modular with OSGI
Getting modular with OSGI
 
Presentation Linux Server setup Advance Networking
Presentation   Linux Server setup Advance NetworkingPresentation   Linux Server setup Advance Networking
Presentation Linux Server setup Advance Networking
 
Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0Power point on linux commands,appache,php,mysql,html,css,web 2.0
Power point on linux commands,appache,php,mysql,html,css,web 2.0
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 

Similar to MySql Restore Script

MySql 5.7 Backup Script
MySql 5.7 Backup ScriptMySql 5.7 Backup Script
MySql 5.7 Backup Script
Hızlan ERPAK
 
ProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQLProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQL
René Cannaò
 
Perl Stored Procedures for MySQL (2009)
Perl Stored Procedures for MySQL (2009)Perl Stored Procedures for MySQL (2009)
Perl Stored Procedures for MySQL (2009)Antony T Curtis
 
Architecting cloud
Architecting cloudArchitecting cloud
Architecting cloud
Tahsin Hasan
 
TrinityCore server install guide
TrinityCore server install guideTrinityCore server install guide
TrinityCore server install guide
Seungmin Shin
 
Multiple instances second method
Multiple instances second methodMultiple instances second method
Multiple instances second method
Vasudeva Rao
 
Mysql administration
Mysql administrationMysql administration
Mysql administration
beben benzy
 
Hollywood mode off: security testing at scale
Hollywood mode off: security testing at scaleHollywood mode off: security testing at scale
Hollywood mode off: security testing at scale
Claudio Criscione
 
Meb Backup & Recovery Performance
Meb Backup & Recovery PerformanceMeb Backup & Recovery Performance
Meb Backup & Recovery Performance
Keith Hollman
 
Introduction to JumpStart
Introduction to JumpStartIntroduction to JumpStart
Introduction to JumpStart
Scott McDermott
 
MySQL 101 PHPTek 2017
MySQL 101 PHPTek 2017MySQL 101 PHPTek 2017
MySQL 101 PHPTek 2017
Dave Stokes
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltStack
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modulesmohamedmoharam
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabricandymccurdy
 
Multiple instances on linux
Multiple instances on linuxMultiple instances on linux
Multiple instances on linux
Vasudeva Rao
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
Wim Godden
 
My two cents about Mysql backup
My two cents about Mysql backupMy two cents about Mysql backup
My two cents about Mysql backup
Andrejs Vorobjovs
 

Similar to MySql Restore Script (20)

MySql 5.7 Backup Script
MySql 5.7 Backup ScriptMySql 5.7 Backup Script
MySql 5.7 Backup Script
 
ProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQLProxySQL - High Performance and HA Proxy for MySQL
ProxySQL - High Performance and HA Proxy for MySQL
 
Mysql ppt
Mysql pptMysql ppt
Mysql ppt
 
Perl Stored Procedures for MySQL (2009)
Perl Stored Procedures for MySQL (2009)Perl Stored Procedures for MySQL (2009)
Perl Stored Procedures for MySQL (2009)
 
Architecting cloud
Architecting cloudArchitecting cloud
Architecting cloud
 
TrinityCore server install guide
TrinityCore server install guideTrinityCore server install guide
TrinityCore server install guide
 
Multiple instances second method
Multiple instances second methodMultiple instances second method
Multiple instances second method
 
Mysql administration
Mysql administrationMysql administration
Mysql administration
 
Hollywood mode off: security testing at scale
Hollywood mode off: security testing at scaleHollywood mode off: security testing at scale
Hollywood mode off: security testing at scale
 
Meb Backup & Recovery Performance
Meb Backup & Recovery PerformanceMeb Backup & Recovery Performance
Meb Backup & Recovery Performance
 
Introduction to JumpStart
Introduction to JumpStartIntroduction to JumpStart
Introduction to JumpStart
 
MySQL 101 PHPTek 2017
MySQL 101 PHPTek 2017MySQL 101 PHPTek 2017
MySQL 101 PHPTek 2017
 
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability EnvironmentsSaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
SaltConf14 - Ben Cane - Using SaltStack in High Availability Environments
 
Ansible automation tool with modules
Ansible automation tool with modulesAnsible automation tool with modules
Ansible automation tool with modules
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabric
 
Multiple instances on linux
Multiple instances on linuxMultiple instances on linux
Multiple instances on linux
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
OTRS
OTRSOTRS
OTRS
 
My two cents about Mysql backup
My two cents about Mysql backupMy two cents about Mysql backup
My two cents about Mysql backup
 
Mysql tracing
Mysql tracingMysql tracing
Mysql tracing
 

More from Hızlan ERPAK

Oracle database architecture
Oracle database architectureOracle database architecture
Oracle database architecture
Hızlan ERPAK
 
C# Butonu – Resmi -Paneli Mouse ile Tutup Sürüklemek
C# Butonu – Resmi -Paneli Mouse ile Tutup SürüklemekC# Butonu – Resmi -Paneli Mouse ile Tutup Sürüklemek
C# Butonu – Resmi -Paneli Mouse ile Tutup Sürüklemek
Hızlan ERPAK
 
C# ile Web Service Connection
C# ile Web Service ConnectionC# ile Web Service Connection
C# ile Web Service Connection
Hızlan ERPAK
 
MySQL Password Recovery
MySQL Password RecoveryMySQL Password Recovery
MySQL Password Recovery
Hızlan ERPAK
 
DML Data Manipulation Language
DML Data Manipulation LanguageDML Data Manipulation Language
DML Data Manipulation Language
Hızlan ERPAK
 
DDL_Create-Alter-Drop
DDL_Create-Alter-DropDDL_Create-Alter-Drop
DDL_Create-Alter-Drop
Hızlan ERPAK
 
MySQL Backup Script -2 & Diff Backup
MySQL Backup Script -2 & Diff BackupMySQL Backup Script -2 & Diff Backup
MySQL Backup Script -2 & Diff Backup
Hızlan ERPAK
 
Centosta mysql enterprise kurulumu
Centosta mysql enterprise kurulumuCentosta mysql enterprise kurulumu
Centosta mysql enterprise kurulumu
Hızlan ERPAK
 

More from Hızlan ERPAK (8)

Oracle database architecture
Oracle database architectureOracle database architecture
Oracle database architecture
 
C# Butonu – Resmi -Paneli Mouse ile Tutup Sürüklemek
C# Butonu – Resmi -Paneli Mouse ile Tutup SürüklemekC# Butonu – Resmi -Paneli Mouse ile Tutup Sürüklemek
C# Butonu – Resmi -Paneli Mouse ile Tutup Sürüklemek
 
C# ile Web Service Connection
C# ile Web Service ConnectionC# ile Web Service Connection
C# ile Web Service Connection
 
MySQL Password Recovery
MySQL Password RecoveryMySQL Password Recovery
MySQL Password Recovery
 
DML Data Manipulation Language
DML Data Manipulation LanguageDML Data Manipulation Language
DML Data Manipulation Language
 
DDL_Create-Alter-Drop
DDL_Create-Alter-DropDDL_Create-Alter-Drop
DDL_Create-Alter-Drop
 
MySQL Backup Script -2 & Diff Backup
MySQL Backup Script -2 & Diff BackupMySQL Backup Script -2 & Diff Backup
MySQL Backup Script -2 & Diff Backup
 
Centosta mysql enterprise kurulumu
Centosta mysql enterprise kurulumuCentosta mysql enterprise kurulumu
Centosta mysql enterprise kurulumu
 

Recently uploaded

社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
Tiktokethiodaily
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 

Recently uploaded (20)

社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 

MySql Restore Script

  • 1. MySQL Restore (Recovery) Script Merhaba Arkadaşlar , Bugün Mysql restore işlemlerine bakacağız. Aldığımız backup’tan geri dönmek için kullanacağımız komutları göreceğiz. Aldığımız yedekten tüm database için geri dönüş planlarımız olacak. Şimdi örneklemlere başlayalım. Kurulu olan Mysql Sürümü = Mysql 5.5.44 Database_Name = yazilimcoplugu User_Name = root Root pass = qwerty Backup’ın Bulunduğu dizin = /home/backup/ shell> mysqldump [options] > dump.sql # mysql –u[USER_NAME] –p[User_Pass] Database_Name < Backup’ın Bulunduğu Dizin Full Database # mysql -uroot -pqwerty yazilimcoplugu < /home/backup/backup.sql # mysql --protocol=tcp --port=3306 --user=root --default-character-set=utf8 --comments -- database= yazilimcoplugu -p < /home/backup/backup.sql
  • 2. Mysql komutuna ait options bilgileri aşağıdaki gibidir. Table 4.6 mysql Options Format Description Introduced Removed --auto-rehash Enable automatic rehashing --auto-vertical-output Enable automatic vertical result set display 5.5.3 --batch Do not use history file --character-sets-dir Directory where character sets are installed --column-names Write column names in results --column-type-info Display result set metadata --comments Whether to retain or strip comments in statements sent to the server --compress Compress all information sent between client and server --connect_timeout Number of seconds before connection timeout --database The database to use --debug Write debugging log; supported only if MySQL was built with debugging support --debug-check Print debugging information when program exits --debug-info Print debugging information, memory, and CPU statistics when program exits --default-auth Authentication plugin to use 5.5.7 --default-character-set Specify default character set --defaults-extra-file Read named option file in addition to usual option files --defaults-file Read only named option file --defaults-group-suffix Option group suffix value --delimiter Set the statement delimiter --enable-cleartext-plugin Enable cleartext authentication plugin 5.5.27 --execute Execute the statement and quit
  • 3. --force Continue even if an SQL error occurs --help Display help message and exit --host Connect to MySQL server on given host --html Produce HTML output --ignore-spaces Ignore spaces after function names --init-command SQL statement to execute after connecting --line-numbers Write line numbers for errors --local-infile Enable or disable for LOCAL capability for LOAD DATA INFILE --max_allowed_packet Maximum packet length to send to or receive from server --max_join_size The automatic limit for rows in a join when using --safe- updates --named-commands Enable named mysql commands --net_buffer_length Buffer size for TCP/IP and socket communication --no-auto-rehash Disable automatic rehashing --no-beep Do not beep when errors occur --no-defaults Read no option files --no-named-commands Disable named mysql commands 5.5.3 --no-pager Deprecated form of --skip-pager 5.5.3 --no-tee Do not copy output to a file 5.5.3 --one-database Ignore statements except those for the default database named on the command line --pager Use the given command for paging query output --password Password to use when connecting to server --pipe On Windows, connect to server using named pipe --plugin-dir Directory where plugins are installed 5.5.7 --port TCP/IP port number to use for connection --print-defaults Print default options --prompt Set the prompt to the specified format
  • 4. --protocol Connection protocol to use --quick Do not cache each query result --raw Write column values without escape conversion --reconnect If the connection to the server is lost, automatically try to reconnect --i-am-a-dummy, --safe- updates Allow only UPDATE and DELETE statements that specify key values --secure-auth Do not send passwords to server in old (pre-4.1) format --select_limit The automatic limit for SELECT statements when using --safe-updates --shared-memory-base- name The name of shared memory to use for shared-memory connections --show-warnings Show warnings after each statement if there are any --sigint-ignore Ignore SIGINT signals (typically the result of typing Control+C) --silent Silent mode --skip-auto-rehash Disable automatic rehashing --skip-column-names Do not write column names in results --skip-line-numbers Skip line numbers for errors --skip-named-commands Disable named mysql commands --skip-pager Disable paging --skip-reconnect Disable reconnecting --socket For connections to localhost, the Unix socket file to use --ssl Enable secure connection --ssl-ca Path of file that contains list of trusted SSL CAs --ssl-capath Path of directory that contains trusted SSL CA certificates in PEM format --ssl-cert Path of file that contains X509 certificate in PEM format --ssl-cipher List of permitted ciphers to use for connection encryption --ssl-key Path of file that contains X509 key in PEM format --ssl-verify-server-cert Verify server certificate Common Name value against host name used when connecting to server
  • 5. --table Display output in tabular format --tee Append a copy of output to named file --unbuffered Flush the buffer after each query --user MySQL user name to use when connecting to server --verbose Verbose mode --version Display version information and exit --vertical Print query output rows vertically (one line per column value) --wait If the connection cannot be established, wait and retry instead of aborting --xml Produce XML output Kaynak : http://dev.mysql.com/doc/refman/5.5/en/mysql-command-options.html Yazan : Hızlan ERPAK