{"id":1142,"date":"2025-03-02T19:55:56","date_gmt":"2025-03-02T19:55:56","guid":{"rendered":"https:\/\/humtechno.com\/master\/?p=1142"},"modified":"2025-04-13T20:19:47","modified_gmt":"2025-04-13T20:19:47","slug":"mysql-installation-on-linux","status":"publish","type":"post","link":"https:\/\/humtechno.com\/master\/2025\/03\/02\/mysql-installation-on-linux\/","title":{"rendered":"MYSQL Installation on Linux"},"content":{"rendered":"\n\n\n\n<p><a href=\"https:\/\/humtechno.com\/master\/wp-content\/uploads\/2025\/03\/MysqlInstallationLinux.pdf\">Download Steps from<\/a><\/p>\n\n<p><\/p>\n\n<p><strong>Operating System: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Redhat Linux<\/strong><\/p>\n\n<p><strong>IP: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.179.137<\/strong><\/p>\n\n<p><strong>Create Local Yum Repository<\/strong><\/p>\n\n<p><strong>Install RPM of MYSQL Database<\/strong><\/p>\n\n<p>cd \/data\/software\/mysql<\/p>\n\n<p>yum install mysql-commercial-common-8.4.4-1.* -y<\/p>\n\n<p>yum install&nbsp; mysql-commercial-icu-data-files-* -y<\/p>\n\n<p>yum install&nbsp; mysql-commercial-client-plugins-8.4.4-1.1.el8.x86_64.rpm -y<\/p>\n\n<p>yum install&nbsp; mysql-commercial-libs-8.4.4-1.1.el8.x86_64.rpm -y<\/p>\n\n<p>yum install&nbsp; mysql-commercial-client-8.4.4-1.1.el8.x86_64.rpm -y<\/p>\n\n<p>yum install&nbsp; mysql-commercial-server-8.4.4-1.1.el8.x86_64.rpm -y<\/p>\n\n<p><\/p>\n\n<p><strong>Create Directory for Database Files<\/strong><\/p>\n\n<p>mkdir \/data\/database<\/p>\n\n<p><strong>Change in MySQL Parameter File<\/strong><\/p>\n\n<p>vi \/etc\/my.cnf<\/p>\n\n<p>#datadir=\/var\/lib\/mysql<\/p>\n\n<p>socket=\/var\/lib\/mysql\/mysql.sock<\/p>\n\n<p>log-error=\/var\/log\/mysqld.log<\/p>\n\n<p>pid-file=\/var\/run\/mysqld\/mysqld.pid<\/p>\n\n<p>datadir=\/data\/database<\/p>\n\n<p>server-id = 1<\/p>\n\n<p>log_bin = mysql-bin.log<\/p>\n\n<p><strong>Disable SELINUX<\/strong><\/p>\n\n<p>setenforce 0<\/p>\n\n<p>vi \/etc\/selinux\/config<\/p>\n\n<p>SELINUX=disabled<\/p>\n\n<p><strong>Restart MYSQL Database Services<\/strong><\/p>\n\n<p>service mysqld restart<\/p>\n\n<p><strong>Collect One Time Temporary Password of Root User from mysql LOG (<\/strong>\/var\/log\/mysqld.log)<\/p>\n\n<p>Temporary Password =wc:sRdvnu3dU<\/p>\n\n<p><strong>Login MYSQL Database with Temporary Password and Changes this Password<\/strong><\/p>\n\n<p>mysql -u root -pzusr#5TfLydQ<\/p>\n\n<p>ALTER USER &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;Oracle321#&#8217;;<\/p>\n\n<p>flush privileges;<\/p>\n\n<p><strong>Connect to MYSQL Database, Create Database and User for Testing \/ Verify<\/strong><\/p>\n\n<p>mysql -u root -pOracle321#<\/p>\n\n<p>show databases;<\/p>\n\n<p>create database test;<\/p>\n\n<p>create user &#8216;replica1&#8217;@&#8217;%&#8217; identified by &#8216;Oracle321#&#8217;;<\/p>\n\n<p>grant replication slave on *.* to &#8216;replica1&#8217;@&#8217;%&#8217;;<\/p>\n\n<p>FLUSH PRIVILEGES;<\/p>\n\n<p>SHOW BINARY LOG STATUS;<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_siteseo_robots_primary_cat":"6","pagelayer_contact_templates":[],"_pagelayer_content":"","neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[15],"tags":[16],"class_list":["post-1142","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-mysql-enterprize-installation"],"_links":{"self":[{"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/posts\/1142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/comments?post=1142"}],"version-history":[{"count":3,"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/posts\/1142\/revisions"}],"predecessor-version":[{"id":1164,"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/posts\/1142\/revisions\/1164"}],"wp:attachment":[{"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/media?parent=1142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/categories?post=1142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humtechno.com\/master\/wp-json\/wp\/v2\/tags?post=1142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}