MySQL > YourSQL

cafuego
MySQL > YourSQL




                  Peter Lieverdink <peter@openquery.com>
Table 'critical_data' is marked as crashed and
should be repaired




                                     Peter Lieverdink <peter@openquery.com>
Peter Lieverdink <peter@openquery.com>
InnoDB = win!




                Peter Lieverdink <peter@openquery.com>
Transactions

Crash recovery




                 Peter Lieverdink <peter@openquery.com>
> ALTER TABLE tablename ENGINE=InnoDB;




                              Peter Lieverdink <peter@openquery.com>
mysql_convert_table_format --type=InnoDB databasename




                                      Peter Lieverdink <peter@openquery.com>
Done!




        Peter Lieverdink <peter@openquery.com>
Done?




        Peter Lieverdink <peter@openquery.com>
Peter Lieverdink <peter@openquery.com>
Peter Lieverdink <peter@openquery.com>
Peter Lieverdink <peter@openquery.com>
[mysqld]

default_storage_engine    = InnoDB

innodb_buffer_pool_size   = 512M
innodb_log_buffer_size    = 8M
innodb_log_file_size      = 32M
innodb_file_per_table     =1




                               Peter Lieverdink <peter@openquery.com>
Buffer pool     System cache




Transaction log    Binary logs




 Tablespace




                         Peter Lieverdink <peter@openquery.com>
> SET GLOBAL innodb_fast_shutdown=0;

$ /etc/init.d/mysql stop

$ mv /var/lib/mysql/ib_logfile* /somewhere/safe

$ /etc/init.d/mysql start




                                        Peter Lieverdink <peter@openquery.com>
innodb_flush_method = O_DIRECT

          (on Linux)




                             Peter Lieverdink <peter@openquery.com>
# log = …

log_bin = ...
expire_log_days =




                    Peter Lieverdink <peter@openquery.com>
read_buffer_size     = 1M
read_rnd_buffer_size = 1M

query_cache_limit   = 128K
query_cache_size    = 16M




                            Peter Lieverdink <peter@openquery.com>
ourdelta.org




               Peter Lieverdink <peter@openquery.com>
1 of 19

Recommended

Remove php calls and scale your site like crazy ! by
Remove php calls and scale your site like crazy !Remove php calls and scale your site like crazy !
Remove php calls and scale your site like crazy !Wim Godden
15.2K views55 slides
Lightweight DAS components in Perl by
Lightweight DAS components in PerlLightweight DAS components in Perl
Lightweight DAS components in Perlguestbab097
587 views18 slides
How To Connect to Active Directory User Validation by
How To Connect to Active Directory User ValidationHow To Connect to Active Directory User Validation
How To Connect to Active Directory User ValidationVCP Muthukrishna
68.8K views6 slides
When dynamic becomes static: the next step in web caching techniques by
When dynamic becomes static: the next step in web caching techniquesWhen dynamic becomes static: the next step in web caching techniques
When dynamic becomes static: the next step in web caching techniquesWim Godden
5.9K views59 slides
How To List Files and Display In HTML Format by
How To List Files and Display In HTML FormatHow To List Files and Display In HTML Format
How To List Files and Display In HTML FormatVCP Muthukrishna
72.8K views5 slides
How To Check and Delete a File via PowerShell by
How To Check and Delete a File via PowerShellHow To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShellVCP Muthukrishna
72.3K views5 slides

More Related Content

What's hot

Web app development_cookies_sessions_14 by
Web app development_cookies_sessions_14Web app development_cookies_sessions_14
Web app development_cookies_sessions_14Hassen Poreya
642 views24 slides
How To Setup SSH Keys on CentOS 7 by
How To Setup SSH Keys on CentOS 7How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7VCP Muthukrishna
73.9K views7 slides
Lecture8 php page control by okello erick by
Lecture8 php page control by okello erickLecture8 php page control by okello erick
Lecture8 php page control by okello erickokelloerick
1.3K views46 slides
Session Management & Cookies In Php by
Session Management & Cookies In PhpSession Management & Cookies In Php
Session Management & Cookies In PhpHarit Kothari
5.7K views28 slides
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud by
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
高性能かつスケールアウト可能なHPCクラウド AIST Super Green CloudRyousei Takano
2.7K views25 slides
MongoDB San Francisco DrupalCon 2010 by
MongoDB San Francisco DrupalCon 2010MongoDB San Francisco DrupalCon 2010
MongoDB San Francisco DrupalCon 2010Karoly Negyesi
681 views23 slides

What's hot(20)

Web app development_cookies_sessions_14 by Hassen Poreya
Web app development_cookies_sessions_14Web app development_cookies_sessions_14
Web app development_cookies_sessions_14
Hassen Poreya642 views
How To Setup SSH Keys on CentOS 7 by VCP Muthukrishna
How To Setup SSH Keys on CentOS 7How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7
VCP Muthukrishna73.9K views
Lecture8 php page control by okello erick by okelloerick
Lecture8 php page control by okello erickLecture8 php page control by okello erick
Lecture8 php page control by okello erick
okelloerick1.3K views
Session Management & Cookies In Php by Harit Kothari
Session Management & Cookies In PhpSession Management & Cookies In Php
Session Management & Cookies In Php
Harit Kothari5.7K views
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud by Ryousei Takano
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
Ryousei Takano2.7K views
MongoDB San Francisco DrupalCon 2010 by Karoly Negyesi
MongoDB San Francisco DrupalCon 2010MongoDB San Francisco DrupalCon 2010
MongoDB San Francisco DrupalCon 2010
Karoly Negyesi681 views
JDD 2017: Nginx + Lua = OpenResty (Marcin Stożek) by PROIDEA
JDD 2017: Nginx + Lua = OpenResty (Marcin Stożek)JDD 2017: Nginx + Lua = OpenResty (Marcin Stożek)
JDD 2017: Nginx + Lua = OpenResty (Marcin Stożek)
PROIDEA91 views
From zero to hero - Easy log centralization with Logstash and Elasticsearch by Rafał Kuć
From zero to hero - Easy log centralization with Logstash and ElasticsearchFrom zero to hero - Easy log centralization with Logstash and Elasticsearch
From zero to hero - Easy log centralization with Logstash and Elasticsearch
Rafał Kuć2.9K views
When dynamic becomes static : the next step in web caching techniques by Wim Godden
When dynamic becomes static : the next step in web caching techniquesWhen dynamic becomes static : the next step in web caching techniques
When dynamic becomes static : the next step in web caching techniques
Wim Godden824 views
Php session 3 Important topics by Spy Seat
Php session 3 Important topicsPhp session 3 Important topics
Php session 3 Important topics
Spy Seat1.2K views
Sessions in php by Mudasir Syed
Sessions in php Sessions in php
Sessions in php
Mudasir Syed3.7K views
Big data - Solr Integration by rkulandaivel
Big data - Solr IntegrationBig data - Solr Integration
Big data - Solr Integration
rkulandaivel446 views
Beyond PHP - it's not (just) about the code by Wim Godden
Beyond PHP - it's not (just) about the codeBeyond PHP - it's not (just) about the code
Beyond PHP - it's not (just) about the code
Wim Godden9.1K views
ProxySQL & PXC(Query routing and Failover Test) by YoungHeon (Roy) Kim
ProxySQL & PXC(Query routing and Failover Test)ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)
YoungHeon (Roy) Kim1.4K views
Managing Your Security Logs with Elasticsearch by Vic Hargrave
Managing Your Security Logs with ElasticsearchManaging Your Security Logs with Elasticsearch
Managing Your Security Logs with Elasticsearch
Vic Hargrave6.1K views
Html5 drupal7 with mandakini kumari(1) by Mandakini Kumari
Html5 drupal7 with mandakini kumari(1)Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)
Mandakini Kumari1.5K views

Similar to MySQL > YourSQL

MySQL User Group NL - MySQL 8 by
MySQL User Group NL - MySQL 8MySQL User Group NL - MySQL 8
MySQL User Group NL - MySQL 8Frederic Descamps
123 views87 slides
Easy MySQL Replication Setup and Troubleshooting by
Easy MySQL Replication Setup and TroubleshootingEasy MySQL Replication Setup and Troubleshooting
Easy MySQL Replication Setup and TroubleshootingBob Burgess
3.2K views75 slides
MySQL Tips for WordPress by
MySQL Tips for WordPressMySQL Tips for WordPress
MySQL Tips for WordPressdsero
1K views21 slides
Caching and tuning fun for high scalability by
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalabilityWim Godden
1.5K views104 slides
Compare mysql5.1.50 mysql5.5.8 by
Compare mysql5.1.50 mysql5.5.8Compare mysql5.1.50 mysql5.5.8
Compare mysql5.1.50 mysql5.5.8Philip Zhong
962 views20 slides
MariaDB10.7_install_Ubuntu.docx by
MariaDB10.7_install_Ubuntu.docxMariaDB10.7_install_Ubuntu.docx
MariaDB10.7_install_Ubuntu.docxNeoClova
157 views16 slides

Similar to MySQL > YourSQL(20)

Easy MySQL Replication Setup and Troubleshooting by Bob Burgess
Easy MySQL Replication Setup and TroubleshootingEasy MySQL Replication Setup and Troubleshooting
Easy MySQL Replication Setup and Troubleshooting
Bob Burgess3.2K views
MySQL Tips for WordPress by dsero
MySQL Tips for WordPressMySQL Tips for WordPress
MySQL Tips for WordPress
dsero1K views
Caching and tuning fun for high scalability by Wim Godden
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
Wim Godden1.5K views
Compare mysql5.1.50 mysql5.5.8 by Philip Zhong
Compare mysql5.1.50 mysql5.5.8Compare mysql5.1.50 mysql5.5.8
Compare mysql5.1.50 mysql5.5.8
Philip Zhong962 views
MariaDB10.7_install_Ubuntu.docx by NeoClova
MariaDB10.7_install_Ubuntu.docxMariaDB10.7_install_Ubuntu.docx
MariaDB10.7_install_Ubuntu.docx
NeoClova157 views
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen by NETWAYS
OSMC 2008 | Monitoring MySQL by Geert VanderkelenOSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
NETWAYS29 views
Memcached Presentation @757rb by Ken Collins
Memcached Presentation @757rbMemcached Presentation @757rb
Memcached Presentation @757rb
Ken Collins1.2K views
Introduction to Active Record - Silicon Valley Ruby Conference 2007 by Rabble .
Introduction to Active Record - Silicon Valley Ruby Conference 2007Introduction to Active Record - Silicon Valley Ruby Conference 2007
Introduction to Active Record - Silicon Valley Ruby Conference 2007
Rabble .18K views
Optimizing MariaDB for maximum performance by MariaDB plc
Optimizing MariaDB for maximum performanceOptimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performance
MariaDB plc2.1K views
Replication features, technologies and 3rd party Extinction by Ben Mildren
Replication features, technologies and 3rd party ExtinctionReplication features, technologies and 3rd party Extinction
Replication features, technologies and 3rd party Extinction
Ben Mildren2.5K views
Scaling MySQL Strategies for Developers by Jonathan Levin
Scaling MySQL Strategies for DevelopersScaling MySQL Strategies for Developers
Scaling MySQL Strategies for Developers
Jonathan Levin4.5K views
Kickin' Ass with Cache-Fu (without notes) by err
Kickin' Ass with Cache-Fu (without notes)Kickin' Ass with Cache-Fu (without notes)
Kickin' Ass with Cache-Fu (without notes)
err4.1K views
Capturing, Analyzing, and Optimizing your SQL by Padraig O'Sullivan
Capturing, Analyzing, and Optimizing your SQLCapturing, Analyzing, and Optimizing your SQL
Capturing, Analyzing, and Optimizing your SQL
Padraig O'Sullivan3.9K views
Capturing, Analyzing and Optimizing MySQL by Ronald Bradford
Capturing, Analyzing and Optimizing MySQLCapturing, Analyzing and Optimizing MySQL
Capturing, Analyzing and Optimizing MySQL
Ronald Bradford5K views
Beyond php - it's not (just) about the code by Wim Godden
Beyond php - it's not (just) about the codeBeyond php - it's not (just) about the code
Beyond php - it's not (just) about the code
Wim Godden957 views
Dbvisit replicate: logical replication made easy by Franck Pachot
Dbvisit replicate: logical replication made easyDbvisit replicate: logical replication made easy
Dbvisit replicate: logical replication made easy
Franck Pachot970 views
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016 by Dave Stokes
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
Dave Stokes458 views
Intro to PECL/mysqlnd_ms (4/7/2011) by Chris Barber
Intro to PECL/mysqlnd_ms (4/7/2011)Intro to PECL/mysqlnd_ms (4/7/2011)
Intro to PECL/mysqlnd_ms (4/7/2011)
Chris Barber7K views

Recently uploaded

【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院IttrainingIttraining
52 views8 slides
Democratising digital commerce in India-Report by
Democratising digital commerce in India-ReportDemocratising digital commerce in India-Report
Democratising digital commerce in India-ReportKapil Khandelwal (KK)
15 views161 slides
Mini-Track: Challenges to Network Automation Adoption by
Mini-Track: Challenges to Network Automation AdoptionMini-Track: Challenges to Network Automation Adoption
Mini-Track: Challenges to Network Automation AdoptionNetwork Automation Forum
12 views27 slides
SAP Automation Using Bar Code and FIORI.pdf by
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdfVirendra Rai, PMP
23 views38 slides
handbook for web 3 adoption.pdf by
handbook for web 3 adoption.pdfhandbook for web 3 adoption.pdf
handbook for web 3 adoption.pdfLiveplex
22 views16 slides
Kyo - Functional Scala 2023.pdf by
Kyo - Functional Scala 2023.pdfKyo - Functional Scala 2023.pdf
Kyo - Functional Scala 2023.pdfFlavio W. Brasil
368 views92 slides

Recently uploaded(20)

【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
SAP Automation Using Bar Code and FIORI.pdf by Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdf
handbook for web 3 adoption.pdf by Liveplex
handbook for web 3 adoption.pdfhandbook for web 3 adoption.pdf
handbook for web 3 adoption.pdf
Liveplex22 views
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors by sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab19 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson85 views
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst478 views
Unit 1_Lecture 2_Physical Design of IoT.pdf by StephenTec
Unit 1_Lecture 2_Physical Design of IoT.pdfUnit 1_Lecture 2_Physical Design of IoT.pdf
Unit 1_Lecture 2_Physical Design of IoT.pdf
StephenTec12 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb14 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software263 views
AMAZON PRODUCT RESEARCH.pdf by JerikkLaureta
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdf
JerikkLaureta26 views
Piloting & Scaling Successfully With Microsoft Viva by Richard Harbridge
Piloting & Scaling Successfully With Microsoft VivaPiloting & Scaling Successfully With Microsoft Viva
Piloting & Scaling Successfully With Microsoft Viva
Serverless computing with Google Cloud (2023-24) by wesley chun
Serverless computing with Google Cloud (2023-24)Serverless computing with Google Cloud (2023-24)
Serverless computing with Google Cloud (2023-24)
wesley chun11 views

MySQL > YourSQL