<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5704048567035134355</id><updated>2024-09-16T17:29:09.409-07:00</updated><category term="About MySQL Binary Installation"/><title type='text'>DBA DIARY</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dba-diary.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dba-diary.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kuldeep Sirohi</name><uri>http://www.blogger.com/profile/09327759733254306324</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQVeoDgRSsyxJVE2-d_rKNs_kvGTpirU-6pgNgaCrV-bfwTXEK_DlAnHMXNugyHjb99n1te3dpKyKvxd8NWoMprpQtKfgpDUFlgZOxq6qlfRzRRTcEbG_6SKodtIhehg/s220/2dce5f7.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5704048567035134355.post-7252010099768522066</id><published>2016-08-04T07:04:00.002-07:00</published><updated>2016-08-04T07:04:39.850-07:00</updated><title type='text'>Percona Xtrabackup Issues</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/h2&gt;
Xtrabackup is a very good third party opensource tool for mysql DBA. Although its very easy to configure and use. but at time due to lack of OS dependencies it may fail.&lt;br /&gt;
&lt;br /&gt;
I came across few such OS related issues and thought to document so that people can get benefited.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Error #1&lt;/h3&gt;
&lt;br /&gt;
&amp;nbsp;./innobackupex --socket=/tmp/mysql.sock --datadir=/software/mysql1/data/ /software/backup/&lt;br /&gt;
160804 17:55:30 innobackupex: Starting the backup operation&lt;br /&gt;
&lt;br /&gt;
IMPORTANT: Please check that the backup run completes successfully.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;At the end of a successful backup run innobackupex&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prints &quot;completed OK!&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Can&#39;t locate Digest/MD5.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at - line 693&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;BEGIN failed--compilation aborted at - line 693.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;160804 17:55:30 Connecting to MySQL server host: localhost, user: (null), password: not set, port: 0, socket: /tmp/mysql.sock&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;Failed to connect to MySQL server: Can&#39;t connect to local MySQL server through socket &#39;/tmp/mysql.sock&#39; (2).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Execute the following command&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;yum install perl-Digest-MD5&lt;/i&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;br /&gt;
====================================================================&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Error #2&lt;/h3&gt;
&lt;br /&gt;
160804 18:27:20 &amp;nbsp;version_check Connecting to MySQL server with DSN &#39;dbi:mysql:;mysql_read_default_group=xtrabackup;mysql_socket=/tmp/mysql3.sock&#39; (using password: NO).&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Failed to connect to MySQL server as DBD::mysql module is not installed at - line 1327&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;
160804 18:27:20 Connecting to MySQL server host: localhost, user: (null), password: not set, port: 0, socket: /tmp/mysql3.sock&lt;br /&gt;
Failed to connect to MySQL server: Can&#39;t connect to local MySQL server through socket &#39;/tmp/mysql3.sock&#39; (111).&lt;br /&gt;
[root@localhost bin]#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Execute the following command&lt;/b&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;i&gt;yum install perl-DBD-MySQL&lt;/i&gt;&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
=================================================================&lt;br /&gt;
&lt;br /&gt;
After this xtrabackup should work absolutely fine&lt;br /&gt;
&lt;br /&gt;
xtrabackup: Transaction log of lsn (1676847) to (1676847) was copied.&lt;br /&gt;
160804 18:34:58 completed OK!&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dba-diary.blogspot.com/feeds/7252010099768522066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dba-diary.blogspot.com/2016/08/percona-xtrabackup-issues.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/7252010099768522066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/7252010099768522066'/><link rel='alternate' type='text/html' href='http://dba-diary.blogspot.com/2016/08/percona-xtrabackup-issues.html' title='Percona Xtrabackup Issues'/><author><name>Kuldeep Sirohi</name><uri>http://www.blogger.com/profile/09327759733254306324</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQVeoDgRSsyxJVE2-d_rKNs_kvGTpirU-6pgNgaCrV-bfwTXEK_DlAnHMXNugyHjb99n1te3dpKyKvxd8NWoMprpQtKfgpDUFlgZOxq6qlfRzRRTcEbG_6SKodtIhehg/s220/2dce5f7.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704048567035134355.post-8648019575515112974</id><published>2015-12-13T00:51:00.002-08:00</published><updated>2015-12-13T00:54:48.337-08:00</updated><title type='text'>MySQL Training at Hyderabad</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
MySQL Training at Hyderabad&lt;br /&gt;
&lt;br /&gt;
Online or In person&lt;br /&gt;
&lt;br /&gt;
please contact&lt;br /&gt;
&lt;br /&gt;
kuldeepsirohi@gmail.com&lt;br /&gt;
&lt;br /&gt;
9963770862&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dba-diary.blogspot.com/feeds/8648019575515112974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dba-diary.blogspot.com/2015/12/mysql-training-at-hyderabad.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/8648019575515112974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/8648019575515112974'/><link rel='alternate' type='text/html' href='http://dba-diary.blogspot.com/2015/12/mysql-training-at-hyderabad.html' title='MySQL Training at Hyderabad'/><author><name>Kuldeep Sirohi</name><uri>http://www.blogger.com/profile/09327759733254306324</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQVeoDgRSsyxJVE2-d_rKNs_kvGTpirU-6pgNgaCrV-bfwTXEK_DlAnHMXNugyHjb99n1te3dpKyKvxd8NWoMprpQtKfgpDUFlgZOxq6qlfRzRRTcEbG_6SKodtIhehg/s220/2dce5f7.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704048567035134355.post-1224605085672047959</id><published>2012-12-10T01:50:00.000-08:00</published><updated>2012-12-10T01:50:26.560-08:00</updated><title type='text'>MySQL DBA Interview Questions and Answers - Series 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
1. Describe MySQL architecture.&lt;br /&gt;
&lt;br /&gt;
Answer: MySQL has got the logical architecture as follows&lt;br /&gt;
&lt;br /&gt;
A. Connection Manager&lt;br /&gt;
B. Query Optimizer&lt;br /&gt;
C. Pluggable Engines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. What are the major differences between MySQL 5.1 and 5.5?&lt;br /&gt;
&lt;br /&gt;
Answer: The Major difference I know is that the default engine was myisam in 5.1 and innodb in 5.5&lt;br /&gt;
&lt;br /&gt;
3. What are the different database engines available in MySQL? (explain)&lt;br /&gt;
&lt;br /&gt;
Answer: Following are the highly used engines available in mysql&lt;br /&gt;
&lt;br /&gt;
A. MyISAM&lt;br /&gt;
B. INNODB&lt;br /&gt;
C. Memory&lt;br /&gt;
D. Federated&lt;br /&gt;
E. CSV&lt;br /&gt;
&lt;br /&gt;
4. What are the major differences between MyISAM and InnoDB?&lt;br /&gt;
&lt;br /&gt;
Answer: Following are the differences between InnoDB and MyISAM&lt;br /&gt;
&lt;br /&gt;
A. MyISAM does not support transactions whereas InnoDB does.&lt;br /&gt;
B. InnoDB supports multi versioning concurrency control.&lt;br /&gt;
C. MyISAM uses table level locks and InnoDB uses row level locking.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Which engine would you prefer for production OLTP environment and why?&lt;br /&gt;
&lt;br /&gt;
Answer: &amp;nbsp;InnoDB (to be transaction safe)&lt;br /&gt;
&lt;br /&gt;
6. What are the best installation practices for MySQL?&lt;br /&gt;
&lt;br /&gt;
Answer: there are following installation methods available&lt;br /&gt;
&lt;br /&gt;
A. Binary Installation&lt;br /&gt;
B. RPM Installation&lt;br /&gt;
C. Source Code compilation&lt;br /&gt;
&lt;br /&gt;
after installation you should change the location of bin logs and datafiles on the different physical disks.&lt;br /&gt;
&lt;br /&gt;
7. Which RAID level is best suited for MySQL?&lt;br /&gt;
&lt;br /&gt;
Answer: RAID 10&lt;br /&gt;
&lt;br /&gt;
8. How do you upgrade from one mysql version to another mysql version?&lt;br /&gt;
&lt;br /&gt;
Answer: &amp;nbsp;create a slave on newer version and change it to MASTER.&lt;br /&gt;
&lt;br /&gt;
9. How many types of logs are there in mysql?&lt;br /&gt;
&lt;br /&gt;
Answer: General Log, Error Log, Binary Log and Slow Query Log&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10. How do you find out slow queries in mysql?&lt;br /&gt;
&lt;br /&gt;
Answer : By enabling the slow query log as follows&lt;br /&gt;
SET GLOBAL slow_query_log = 1;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11. How do you go through the MySQL slow query log?&lt;br /&gt;
&lt;br /&gt;
Answer : slow query log might be very huge in size and query could be listed thousand times. to summarize the slow query log in a very informative way there is third party tool available &#39;pt-query-digest&#39; which is a part of percona tool kit freely downloadable.&lt;br /&gt;
&lt;br /&gt;
12. How do you check the uptime of a mysql server?&lt;br /&gt;
&lt;br /&gt;
Answer : following command gives you the system status&lt;br /&gt;
&lt;br /&gt;
status&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13. If the mysql server is performing slow than how to find out the process which is causing problem.&lt;br /&gt;
&lt;br /&gt;
Answer : show processlist&lt;br /&gt;
&lt;br /&gt;
14. What do you do if the end user complains about the performance of the DB?&lt;br /&gt;
&lt;br /&gt;
Answer : show processlist will show the processes which taking resources at db server and the do the rest diagnosis.&lt;br /&gt;
&lt;br /&gt;
15. What do you do about the slow queries?&lt;br /&gt;
&lt;br /&gt;
Answer : study the explain plan and create necessary indexes if required.&lt;br /&gt;
&lt;br /&gt;
16. Where do you change the performance parameters of mysql and by default where is the file located on a unix system?&lt;br /&gt;
&lt;br /&gt;
Answer : my.cnf. this file is available under /etc/my.cnf&lt;br /&gt;
&lt;br /&gt;
17. Which are the important performance parameters for MyISAM and InnoDB?&lt;br /&gt;
&lt;br /&gt;
Answer : For MyISAM&lt;br /&gt;
&lt;br /&gt;
key_cache_size&lt;br /&gt;
thread_cache_size&lt;br /&gt;
tmp_table_size&lt;br /&gt;
max_heap_table_size&lt;br /&gt;
read_buffer_size&lt;br /&gt;
query_cache&lt;br /&gt;
&lt;br /&gt;
For InnoDB&lt;br /&gt;
&lt;br /&gt;
innodb_buffer_pool_size&lt;br /&gt;
innodb_buffer_pool_instances&lt;br /&gt;
innodb_log_file_size&lt;br /&gt;
innodb_log_buffer_size&lt;br /&gt;
tmp_table_size&lt;br /&gt;
max_heap_table_size&lt;br /&gt;
table_open_cache&lt;br /&gt;
&lt;br /&gt;
18. Should we have Query_cache enabled?&lt;br /&gt;
&lt;br /&gt;
Answer : in many caches yes.&lt;br /&gt;
19. what are the disadvantages of having a big Query cache size?&lt;br /&gt;
&lt;br /&gt;
Answer : query cache puts an additional overhead on the database. it required the db to work on invalidating the queries from the query cache.&lt;br /&gt;
&lt;br /&gt;
20. what should be the optimum size of InnoDB buffer cache?&lt;br /&gt;
&lt;br /&gt;
Answer : it should be the 70-80% of the memory available.&lt;br /&gt;
&lt;br /&gt;
21. How do you backup InnoDB tables?&lt;br /&gt;
&lt;br /&gt;
Answer : there are two ways of taking backup&lt;br /&gt;
&lt;br /&gt;
1. mysqldump with --single-transaction&lt;br /&gt;
2. xtrabackup (part of percona)&lt;br /&gt;
&lt;br /&gt;
22. How to take incremental backup in MySQL?&lt;br /&gt;
&lt;br /&gt;
Answer : Using percona xtrabackup&lt;br /&gt;
&lt;br /&gt;
23. Can the database be renamed in MySQL?&lt;br /&gt;
&lt;br /&gt;
Answer : &amp;nbsp;No.&lt;br /&gt;
&lt;br /&gt;
24. How to check the table fragmentation and resolve if the fragmentation is found?&lt;br /&gt;
&lt;br /&gt;
Answer : following query will list all the fragmented tabes&lt;br /&gt;
&lt;br /&gt;
SELECT TABLE_SCHEMA, TABLE_NAME, CONCAT(ROUND(data_length / ( 1024 * 1024 ), 2), &#39;MB&#39;) DATA, CONCAT(ROUND(data_free &amp;nbsp;/ ( 1024 * 1024 ), 2), &#39;MB&#39;)FREE from information_schema.TABLES where TABLE_SCHEMA NOT IN (&#39;information_schema&#39;,&#39;mysql&#39;) and Data_free &amp;lt; 0;&lt;br /&gt;
&lt;br /&gt;
then run the following command on tables given by the query&lt;br /&gt;
&lt;br /&gt;
alte table &amp;lt; table returned from pervious query &amp;gt; engine=innodb;&lt;br /&gt;
&lt;br /&gt;
25. How to change the root password if the root password is lost?&lt;br /&gt;
&lt;br /&gt;
Answer : start the Db with --skip-grants-table. change the password and restart the db in &amp;nbsp;normal mode.&lt;br /&gt;
&lt;br /&gt;
26. What do you do if the data disk is full?&lt;br /&gt;
&lt;br /&gt;
Answer : if the data disk is full then create a soft link and move the .frm and .idb files to the linked location.&lt;br /&gt;
&lt;br /&gt;
27. How to take consistent backup in mysql?&lt;br /&gt;
&lt;br /&gt;
Answer : take the backup at slave after stopping the slave.&lt;br /&gt;
&lt;br /&gt;
28. How do you restrict the users in mysql?&lt;br /&gt;
&lt;br /&gt;
Answer : &amp;nbsp;by grant and revoke commands.&lt;br /&gt;
&lt;br /&gt;
29. what is advantage of having file per table parameter enabled?&lt;br /&gt;
&lt;br /&gt;
Answer : &amp;nbsp;point # 26 can only be done in file per table is enabled at innodb level.&lt;br /&gt;
&lt;br /&gt;
30. How do you setup replication?&lt;br /&gt;
&lt;br /&gt;
Answer : I will post a separate BLOG for this.. Keep reading&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dba-diary.blogspot.com/feeds/1224605085672047959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dba-diary.blogspot.com/2012/12/mysql-dba-interview-questions-and.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/1224605085672047959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/1224605085672047959'/><link rel='alternate' type='text/html' href='http://dba-diary.blogspot.com/2012/12/mysql-dba-interview-questions-and.html' title='MySQL DBA Interview Questions and Answers - Series 1'/><author><name>Kuldeep Sirohi</name><uri>http://www.blogger.com/profile/09327759733254306324</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQVeoDgRSsyxJVE2-d_rKNs_kvGTpirU-6pgNgaCrV-bfwTXEK_DlAnHMXNugyHjb99n1te3dpKyKvxd8NWoMprpQtKfgpDUFlgZOxq6qlfRzRRTcEbG_6SKodtIhehg/s220/2dce5f7.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704048567035134355.post-107953301847776906</id><published>2012-08-20T05:49:00.000-07:00</published><updated>2012-08-31T09:19:05.071-07:00</updated><title type='text'>MySQL DBA Interview Questions - Series 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1. Describe MySQL architecture.&lt;br /&gt;
2. What are the major differences between MySQL 5.1 and 5.5?&lt;br /&gt;
3. What are the different database engines available in MySQL? (explain)&lt;br /&gt;
4. What are the major differences between MyISAM and InnoDB?&lt;br /&gt;
5. Which engine would you prefer for production OLTP environment and why?&lt;br /&gt;
6. What are the best installation practices for MySQL?&lt;br /&gt;
7. Which RAID level is best suited for MySQL?&lt;br /&gt;
8. How do you upgrade from one mysql version to another mysql version?&lt;br /&gt;
9. How many types of logs are there in mysql?&lt;br /&gt;
10. How do you find out slow queries in mysql?&lt;br /&gt;
11. How do you go through the MySQL slow query log?&lt;br /&gt;
12. How do you check the uptime of a mysql server?&lt;br /&gt;
13. If the mysql server is performing slow than how to find out the process which is causing problem.&lt;br /&gt;
14. What do you do if the end user complains about the performance of the DB?&lt;br /&gt;
15. What do you do about the slow queries?&lt;br /&gt;
16. Where do you change the performance parameters of mysql and by default where is the file located on a unix system?&lt;br /&gt;
17. Which are the important performance parameters for MyISAM and InnoDB?&lt;br /&gt;
18. Should we have Query_cache enabled?&lt;br /&gt;
19. what are the disadvantages of having a big Query cache size?&lt;br /&gt;
20. what should be the optimum size of InnoDB buffer cache?&lt;br /&gt;
21. How do you backup InnoDB tables?&lt;br /&gt;
22. How to take incremental backup in MySQL?&lt;br /&gt;
23. Can the database be renamed in MySQL?&lt;br /&gt;
24. How to check the table fragmentation and resolve if the fragmentation is found?&lt;br /&gt;
25. How to change the root password if the root password is lost?&lt;br /&gt;
26. What do you do if the data disk is full?&lt;br /&gt;
27. How to take consistent backup in mysql?&lt;br /&gt;
28. How do you restrict the users in mysql?&lt;br /&gt;
29. what is advantage of having file per table parameter enabled?&lt;br /&gt;
30. How do you setup replication?&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dba-diary.blogspot.com/feeds/107953301847776906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dba-diary.blogspot.com/2012/08/mysql-dba-interview-questions.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/107953301847776906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/107953301847776906'/><link rel='alternate' type='text/html' href='http://dba-diary.blogspot.com/2012/08/mysql-dba-interview-questions.html' title='MySQL DBA Interview Questions - Series 1'/><author><name>Kuldeep Sirohi</name><uri>http://www.blogger.com/profile/09327759733254306324</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQVeoDgRSsyxJVE2-d_rKNs_kvGTpirU-6pgNgaCrV-bfwTXEK_DlAnHMXNugyHjb99n1te3dpKyKvxd8NWoMprpQtKfgpDUFlgZOxq6qlfRzRRTcEbG_6SKodtIhehg/s220/2dce5f7.jpg'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5704048567035134355.post-6745833454597853997</id><published>2012-03-24T03:22:00.000-07:00</published><updated>2012-03-24T03:22:57.281-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="About MySQL Binary Installation"/><title type='text'>MySQL Binary Installation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;About MySQL Binary Installation&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;MySQL binary installation is the easiest way of installing MySQL. If you have very little knowledge of linux you will be able to do this installation comfortably. &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Steps For Binary Installation&lt;/h3&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Download the suitable binary package from mysql.com (as per the OS requirement)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;create mysql user and mysql group &lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;groupadd mysql&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;useradd -r -g mysql mysql&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;untar the binary package which you have downloaded from internet.&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;tar zxvf&amp;nbsp; /path-to-tar-file/mysql-version-package.tar.gz&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Put the untarred Directory in any directory other than / or /root/&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Create symbolic link &lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;ln -s path-to-untarred-mysql/mysql-version mysql (this will let you communicate with original untarred mysql directory without specifying long complete directory name i.e. mysql-5.5.9-linux...... )&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;cd mysql&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Change to ownership of mysql directory &lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;chown -R mysql .&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;chgrp -R mysql .&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Run the mysql_install_db script to create necessary file and system files which are required to run mysql&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;path-to-mysql/scripts/mysql_install_db --user=mysql&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;or&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;go to scripts directory in the mysql directory&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;./mysql_install_db --user=mysql&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;chown -R root .&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: left;&quot;&gt;chown -R mysql data&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;With this mysql installation is complete. Above mentioned steps are mandatory for mysql installation and following steps are optional.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;1. cp mysql/support-files/my.cnf /etc/my.cnf&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;(my.cnf is the configuration file through with you can customize the mysql environment)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;2. bin/mysqld_safe --user=mysql &amp;amp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;(this will start mysql server)&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;3. cp support-files/mysql.server /etc/init.d/mysql.server&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;I will keep posting as and when I will get time. Cheers.........&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dba-diary.blogspot.com/feeds/6745833454597853997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dba-diary.blogspot.com/2012/03/mysql-binary-installation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/6745833454597853997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5704048567035134355/posts/default/6745833454597853997'/><link rel='alternate' type='text/html' href='http://dba-diary.blogspot.com/2012/03/mysql-binary-installation.html' title='MySQL Binary Installation'/><author><name>Kuldeep Sirohi</name><uri>http://www.blogger.com/profile/09327759733254306324</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQVeoDgRSsyxJVE2-d_rKNs_kvGTpirU-6pgNgaCrV-bfwTXEK_DlAnHMXNugyHjb99n1te3dpKyKvxd8NWoMprpQtKfgpDUFlgZOxq6qlfRzRRTcEbG_6SKodtIhehg/s220/2dce5f7.jpg'/></author><thr:total>0</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.635308 77.22496000000001</georss:point><georss:box>28.405279999999998 76.9810245 28.865336 77.468895500000016</georss:box></entry></feed>