<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>linux. mysql Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/linux-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 01 Oct 2019 14:37:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Centos7 and 8 uses docker-compose to install zabbix</title>
		<link>https://www.osradar.com/centos7-uses-docker-compose-to-install-zabbix/</link>
					<comments>https://www.osradar.com/centos7-uses-docker-compose-to-install-zabbix/#comments</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Mon, 30 Sep 2019 16:22:19 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Docker compose]]></category>
		<category><![CDATA[linux. mysql]]></category>
		<category><![CDATA[monitoring tools]]></category>
		<category><![CDATA[zabbix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14072</guid>

					<description><![CDATA[<p>Build and run a zabbix system through docker&#8217;s basic operation command, which involves zabbix-server, zabbix-web-Nginx-mysq, and mysql container. Operation up relatively tedious, and every time to run to come again is very inconvenient. Here&#8217;s how to deploy zabbix with a docker-compose Install Docker and Docker-compose The first thing to do is to install Docker and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/centos7-uses-docker-compose-to-install-zabbix/">Centos7 and 8 uses docker-compose to install zabbix</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Build and run a <a href="https://www.osradar.com/install-zabbix-server-centos-8-rhel-oracle-linux/">zabbix</a> system through docker&#8217;s basic operation command, which involves zabbix-server, zabbix-web-Nginx-mysq, and mysql container. Operation up relatively tedious, and every time to run to come again is very inconvenient. Here&#8217;s how to deploy zabbix with a docker-compose </p>



<p></p>



<h4><strong>Install Docker and Docker-compose </strong></h4>



<p>The first thing to do is to install Docker and Docker compose in our system. For centos7, use the following command.</p>



<p>For the rest of the releases, it&#8217;s best to read the official Docker documentation.</p>



<pre class="wp-block-preformatted">[root@localhost ~]# yum install docker python-pip docker-compose -y</pre>



<p>Check that the installation is successful</p>



<pre class="wp-block-preformatted"> [root@localhost ~]# docker-compose -v &amp;&amp; docker -v</pre>



<figure class="wp-block-image"><img loading="lazy" width="1000" height="152" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/check-docker.png" alt="Check docker and docker-compose" class="wp-image-14076" srcset="https://www.osradar.com/wp-content/uploads/2019/09/check-docker.png 1000w, https://www.osradar.com/wp-content/uploads/2019/09/check-docker-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/check-docker-768x117.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/check-docker-696x106.png 696w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption> Check docker and docker-compose</figcaption></figure>



<h4><strong>Deploy zabbix using Docker-compose</strong></h4>



<ul><li>First, create a folder and then create docker-compose.yml files in it</li></ul>



<pre class="wp-block-preformatted">[root@localhost ~]# mkdir zabbix
[root@localhost ~]# cd zabbix/
[root@localhost zabbix]# touch docker-compose.yml</pre>



<ul><li>Edit docker-compose.yml  file</li></ul>



<pre class="wp-block-preformatted">[root@localhost zabbix]# vim docker-compose.yml 
 version: '3'
 services:
   zabbix-mysql:
     image: mysql:5.6
     container_name: zabbix-mysql
     ports:
       - '3306:3306'
     environment:
       MYSQL_ROOT_PASSWORD: zabbix
     volumes:
       - /root/zabbix/mysql-data:/var/lib/mysql
 zabbix-server:
     image: zabbix/zabbix-server-mysql:ubuntu-3.0.4
     container_name: zabbix-server
     environment:
       DB_SERVER_HOST: "zabbix-mysql"
       MYSQL_USER: root
       MYSQL_PASSWORD: zabbix
     ports:
       - '10051:10051'
     links:
       - zabbix-mysql
     depends_on:
       - zabbix-mysql
 zabbix-web:
     image: zabbix/zabbix-web-nginx-mysql:ubuntu-3.0.4
     container_name: zabbix-web
     environment:
       DB_SERVER_HOST: zabbix-mysql
       MYSQL_USER: root
       MYSQL_PASSWORD: zabbix
       ZBX_SERVER_HOST: "zabbix-server"
       PHP_TZ: Asia/Shanghai
     ports:
       - '80:80'
       - '443:443'
     links:
       - zabbix-mysql
       - zabbix-server
     depends_on:
       - zabbix-mysql
       - zabbix-server</pre>



<h4><strong>Important environment variable Settings</strong></h4>



<ul><li>Zabbix-web-nginx-mysql and zabbix-web-nginx-mysql image versions remain consistent (ubuntu-3.0.4 or other)</li><li>MYSQL_ROOT_PASSWORD:  mysql root password </li><li>MYSQL_USER: Connect the mysql user</li><li>MYSQL_PASSWORD: Connect the mysql  password</li></ul>



<h4><strong>Running and testing zabbix</strong></h4>



<pre class="wp-block-preformatted">[root@localhost ~]# docker-compose up -d
[root@localhost ~]# docker-compose ps</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="507" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/run-1024x507.png" alt="Deploy zabbix using docker-compose" class="wp-image-14083" srcset="https://www.osradar.com/wp-content/uploads/2019/09/run-1024x507.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/run-300x149.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/run-768x380.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/run-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/09/run-696x345.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/run-1068x529.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/run-848x420.png 848w, https://www.osradar.com/wp-content/uploads/2019/09/run.png 1510w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption> <em>Deploy zabbix using docker-compose</em> </figcaption></figure>



<p>Wait 2 minutes for the database initialization to complete </p>



<p>Next, open your web browser and go to your server using the port 80. </p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="353" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/zabbixlogin-1024x353.png" alt="zabbix login" class="wp-image-14084" srcset="https://www.osradar.com/wp-content/uploads/2019/09/zabbixlogin-1024x353.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/zabbixlogin-300x103.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/zabbixlogin-768x265.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/zabbixlogin-696x240.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/zabbixlogin-1068x368.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/zabbixlogin-1218x420.png 1218w, https://www.osradar.com/wp-content/uploads/2019/09/zabbixlogin.png 1728w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>zabbix login</figcaption></figure>



<p>Log in using Zabbix&#8217;s default user and password <br>user: Admin  password:zabbix  <br>After that, you will see the dashboard  </p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="439" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/login-1024x439.png" alt="zabbix  dashboard " class="wp-image-14085" srcset="https://www.osradar.com/wp-content/uploads/2019/09/login-1024x439.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/login-300x129.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/login-768x329.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/login-696x298.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/login-1068x458.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/login-980x420.png 980w, https://www.osradar.com/wp-content/uploads/2019/09/login.png 1862w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>zabbix  dashboard </figcaption></figure>



<p> In a nutshell with Docker Compose, you no longer need to use shell scripts to start the container. In the configuration file, all containers are defined through the services, and then the application is started, stopped, and restarted using the docker-compose script, along with the services in the application and all containers that depend on the services. Docker Compose is a tool for defining and running multi-container Docker applications. it USES YAML files to configure the service of the application and a single command to perform the creation and startup of all containers. The <a href="https://docs.docker.com/compose/reference/create/">docker-compose</a> cli tool allows users to run commands for multiple containers simultaneously. </p>


<p class="wp-block-tag-cloud"><a href="https://www.osradar.com/tag/android/" class="tag-cloud-link tag-link-62 tag-link-position-1" style="font-size: 16.87323943662pt;" aria-label="android (260 items)">android<span class="tag-link-count"> (260)</span></a>
<a href="https://www.osradar.com/tag/apache/" class="tag-cloud-link tag-link-127 tag-link-position-2" style="font-size: 10.366197183099pt;" aria-label="Apache (56 items)">Apache<span class="tag-link-count"> (56)</span></a>
<a href="https://www.osradar.com/tag/bionic/" class="tag-cloud-link tag-link-1101 tag-link-position-3" style="font-size: 10.267605633803pt;" aria-label="bionic (55 items)">bionic<span class="tag-link-count"> (55)</span></a>
<a href="https://www.osradar.com/tag/buster/" class="tag-cloud-link tag-link-1945 tag-link-position-4" style="font-size: 11.943661971831pt;" aria-label="Buster (83 items)">Buster<span class="tag-link-count"> (83)</span></a>
<a href="https://www.osradar.com/tag/centos/" class="tag-cloud-link tag-link-72 tag-link-position-5" style="font-size: 14.30985915493pt;" aria-label="CentOS (145 items)">CentOS<span class="tag-link-count"> (145)</span></a>
<a href="https://www.osradar.com/tag/centos-8/" class="tag-cloud-link tag-link-1987 tag-link-position-6" style="font-size: 9.9718309859155pt;" aria-label="Centos 8 (51 items)">Centos 8<span class="tag-link-count"> (51)</span></a>
<a href="https://www.osradar.com/tag/database/" class="tag-cloud-link tag-link-785 tag-link-position-7" style="font-size: 10.366197183099pt;" aria-label="database (57 items)">database<span class="tag-link-count"> (57)</span></a>
<a href="https://www.osradar.com/tag/databases/" class="tag-cloud-link tag-link-1492 tag-link-position-8" style="font-size: 10.760563380282pt;" aria-label="Databases (62 items)">Databases<span class="tag-link-count"> (62)</span></a>
<a href="https://www.osradar.com/tag/debian/" class="tag-cloud-link tag-link-404 tag-link-position-9" style="font-size: 15.098591549296pt;" aria-label="debian (171 items)">debian<span class="tag-link-count"> (171)</span></a>
<a href="https://www.osradar.com/tag/desktop/" class="tag-cloud-link tag-link-1984 tag-link-position-10" style="font-size: 8.1971830985915pt;" aria-label="desktop (34 items)">desktop<span class="tag-link-count"> (34)</span></a>
<a href="https://www.osradar.com/tag/fedora/" class="tag-cloud-link tag-link-246 tag-link-position-11" style="font-size: 9.8732394366197pt;" aria-label="fedora (50 items)">fedora<span class="tag-link-count"> (50)</span></a>
<a href="https://www.osradar.com/tag/focal/" class="tag-cloud-link tag-link-2874 tag-link-position-12" style="font-size: 12.830985915493pt;" aria-label="focal (102 items)">focal<span class="tag-link-count"> (102)</span></a>
<a href="https://www.osradar.com/tag/focal-fossa/" class="tag-cloud-link tag-link-2873 tag-link-position-13" style="font-size: 13.028169014085pt;" aria-label="Focal Fossa (106 items)">Focal Fossa<span class="tag-link-count"> (106)</span></a>
<a href="https://www.osradar.com/tag/google/" class="tag-cloud-link tag-link-225 tag-link-position-14" style="font-size: 15pt;" aria-label="google (168 items)">google<span class="tag-link-count"> (168)</span></a>
<a href="https://www.osradar.com/tag/howto/" class="tag-cloud-link tag-link-792 tag-link-position-15" style="font-size: 18.056338028169pt;" aria-label="howto (346 items)">howto<span class="tag-link-count"> (346)</span></a>
<a href="https://www.osradar.com/tag/how-to/" class="tag-cloud-link tag-link-84 tag-link-position-16" style="font-size: 17.859154929577pt;" aria-label="How to (330 items)">How to<span class="tag-link-count"> (330)</span></a>
<a href="https://www.osradar.com/tag/how-to-tutorials/" class="tag-cloud-link tag-link-3150 tag-link-position-17" style="font-size: 8.7887323943662pt;" aria-label="how to tutorials (39 items)">how to tutorials<span class="tag-link-count"> (39)</span></a>
<a href="https://www.osradar.com/tag/java/" class="tag-cloud-link tag-link-134 tag-link-position-18" style="font-size: 9.8732394366197pt;" aria-label="java (50 items)">java<span class="tag-link-count"> (50)</span></a>
<a href="https://www.osradar.com/tag/linux/" class="tag-cloud-link tag-link-210 tag-link-position-19" style="font-size: 22pt;" aria-label="Linux (864 items)">Linux<span class="tag-link-count"> (864)</span></a>
<a href="https://www.osradar.com/tag/linux-mint/" class="tag-cloud-link tag-link-443 tag-link-position-20" style="font-size: 8.5915492957746pt;" aria-label="linux mint (37 items)">linux mint<span class="tag-link-count"> (37)</span></a>
<a href="https://www.osradar.com/tag/mariadb/" class="tag-cloud-link tag-link-951 tag-link-position-21" style="font-size: 9.6760563380282pt;" aria-label="mariadb (48 items)">mariadb<span class="tag-link-count"> (48)</span></a>
<a href="https://www.osradar.com/tag/monitoring/" class="tag-cloud-link tag-link-801 tag-link-position-22" style="font-size: 8.4929577464789pt;" aria-label="monitoring (36 items)">monitoring<span class="tag-link-count"> (36)</span></a>
<a href="https://www.osradar.com/tag/mysql/" class="tag-cloud-link tag-link-1235 tag-link-position-23" style="font-size: 9.1830985915493pt;" aria-label="mysql (43 items)">mysql<span class="tag-link-count"> (43)</span></a>
<a href="https://www.osradar.com/tag/network/" class="tag-cloud-link tag-link-1102 tag-link-position-24" style="font-size: 8.3943661971831pt;" aria-label="network (35 items)">network<span class="tag-link-count"> (35)</span></a>
<a href="https://www.osradar.com/tag/news/" class="tag-cloud-link tag-link-1341 tag-link-position-25" style="font-size: 10.56338028169pt;" aria-label="News (59 items)">News<span class="tag-link-count"> (59)</span></a>
<a href="https://www.osradar.com/tag/new-version/" class="tag-cloud-link tag-link-1428 tag-link-position-26" style="font-size: 10.859154929577pt;" aria-label="New version (64 items)">New version<span class="tag-link-count"> (64)</span></a>
<a href="https://www.osradar.com/tag/opensuse/" class="tag-cloud-link tag-link-561 tag-link-position-27" style="font-size: 9.2816901408451pt;" aria-label="opensuse (44 items)">opensuse<span class="tag-link-count"> (44)</span></a>
<a href="https://www.osradar.com/tag/php/" class="tag-cloud-link tag-link-135 tag-link-position-28" style="font-size: 11.056338028169pt;" aria-label="PHP (66 items)">PHP<span class="tag-link-count"> (66)</span></a>
<a href="https://www.osradar.com/tag/programming/" class="tag-cloud-link tag-link-776 tag-link-position-29" style="font-size: 14.211267605634pt;" aria-label="Programming (139 items)">Programming<span class="tag-link-count"> (139)</span></a>
<a href="https://www.osradar.com/tag/rhel/" class="tag-cloud-link tag-link-69 tag-link-position-30" style="font-size: 9.5774647887324pt;" aria-label="RHEL (47 items)">RHEL<span class="tag-link-count"> (47)</span></a>
<a href="https://www.osradar.com/tag/security/" class="tag-cloud-link tag-link-137 tag-link-position-31" style="font-size: 12.929577464789pt;" aria-label="Security (103 items)">Security<span class="tag-link-count"> (103)</span></a>
<a href="https://www.osradar.com/tag/server/" class="tag-cloud-link tag-link-848 tag-link-position-32" style="font-size: 16.774647887324pt;" aria-label="server (259 items)">server<span class="tag-link-count"> (259)</span></a>
<a href="https://www.osradar.com/tag/sql/" class="tag-cloud-link tag-link-1441 tag-link-position-33" style="font-size: 10.957746478873pt;" aria-label="SQL (65 items)">SQL<span class="tag-link-count"> (65)</span></a>
<a href="https://www.osradar.com/tag/tools/" class="tag-cloud-link tag-link-800 tag-link-position-34" style="font-size: 9.9718309859155pt;" aria-label="tools (52 items)">tools<span class="tag-link-count"> (52)</span></a>
<a href="https://www.osradar.com/tag/tutorial/" class="tag-cloud-link tag-link-86 tag-link-position-35" style="font-size: 19.535211267606pt;" aria-label="Tutorial (485 items)">Tutorial<span class="tag-link-count"> (485)</span></a>
<a href="https://www.osradar.com/tag/ubuntu/" class="tag-cloud-link tag-link-71 tag-link-position-36" style="font-size: 17.169014084507pt;" aria-label="ubuntu (282 items)">ubuntu<span class="tag-link-count"> (282)</span></a>
<a href="https://www.osradar.com/tag/unix/" class="tag-cloud-link tag-link-1170 tag-link-position-37" style="font-size: 8pt;" aria-label="unix (32 items)">unix<span class="tag-link-count"> (32)</span></a>
<a href="https://www.osradar.com/tag/web/" class="tag-cloud-link tag-link-132 tag-link-position-38" style="font-size: 8.887323943662pt;" aria-label="web (40 items)">web<span class="tag-link-count"> (40)</span></a>
<a href="https://www.osradar.com/tag/web-server/" class="tag-cloud-link tag-link-1253 tag-link-position-39" style="font-size: 8.0985915492958pt;" aria-label="web server (33 items)">web server<span class="tag-link-count"> (33)</span></a>
<a href="https://www.osradar.com/tag/windows/" class="tag-cloud-link tag-link-98 tag-link-position-40" style="font-size: 17.661971830986pt;" aria-label="Windows (315 items)">Windows<span class="tag-link-count"> (315)</span></a>
<a href="https://www.osradar.com/tag/windows-10/" class="tag-cloud-link tag-link-83 tag-link-position-41" style="font-size: 16.183098591549pt;" aria-label="Windows 10 (222 items)">Windows 10<span class="tag-link-count"> (222)</span></a>
<a href="https://www.osradar.com/tag/windows-11/" class="tag-cloud-link tag-link-4007 tag-link-position-42" style="font-size: 11.450704225352pt;" aria-label="windows 11 (73 items)">windows 11<span class="tag-link-count"> (73)</span></a>
<a href="https://www.osradar.com/tag/windows-server/" class="tag-cloud-link tag-link-65 tag-link-position-43" style="font-size: 9.4788732394366pt;" aria-label="Windows server (46 items)">Windows server<span class="tag-link-count"> (46)</span></a>
<a href="https://www.osradar.com/tag/windows-server-2019/" class="tag-cloud-link tag-link-2144 tag-link-position-44" style="font-size: 10.464788732394pt;" aria-label="Windows server 2019 (58 items)">Windows server 2019<span class="tag-link-count"> (58)</span></a>
<a href="https://www.osradar.com/tag/xiaomi/" class="tag-cloud-link tag-link-3291 tag-link-position-45" style="font-size: 8.4929577464789pt;" aria-label="Xiaomi (36 items)">Xiaomi<span class="tag-link-count"> (36)</span></a></p><p>The post <a rel="nofollow" href="https://www.osradar.com/centos7-uses-docker-compose-to-install-zabbix/">Centos7 and 8 uses docker-compose to install zabbix</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/centos7-uses-docker-compose-to-install-zabbix/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install the latest version of MySQL on OpenSuse 15 / 15.1?</title>
		<link>https://www.osradar.com/install-the-latest-version-mysql-opensuse-15-1/</link>
					<comments>https://www.osradar.com/install-the-latest-version-mysql-opensuse-15-1/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 06 Sep 2019 23:11:36 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Leap]]></category>
		<category><![CDATA[linux. mysql]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13410</guid>

					<description><![CDATA[<p>MySQL is one of the most popular database relationship managers in the world. Thanks to this program, it is possible to store application data quickly and effectively. It also has the advantage that it is supported by most existing web applications. On the other hand, it is also possible to use it with most of [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-latest-version-mysql-opensuse-15-1/">How to install the latest version of MySQL on OpenSuse 15 / 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>MySQL is one of the most popular database relationship managers in the world. Thanks to this program, it is possible to store application data quickly and effectively. It also has the advantage that it is supported by most existing web applications. On the other hand, it is also possible to use it with most of the programming languages like <a href="https://www.osradar.com/tag/php/" rel="noopener noreferrer">PHP</a> or <a href="https://www.osradar.com/tag/python/" rel="noopener noreferrer">Python.</a> Therefore, it is always advisable to have the latest version installed. So this post, to learn how to install the latest version of MySQL on OpenSUSE 15 / 15.1.</p>
<h2>The MySQL repository</h2>
<p><a href="https://www.osradar.com/tag/mysql/" rel="noopener noreferrer">MySQL</a> was acquired by Oracle and this unleashed a hysteria in the open-source community. And with reason, it became difficult for Oracle to focus on MySQL having Oracle its own database manager. However, MySQL has continued to improve little by little and the proof of this is version 8 of the program.</p>
<p>This version has brought a lot of important news and makes MySQL work smoothly and securely. If we add to this a system like OpenSUSE then our data is in good hands.</p>
<p>For it, Oracle puts to our disposition a specialized repository for OpenSUSE that facilitates a lot the process. In this repository, we can install both the server instance and the client.</p>
<h2>Install the latest version of MySQL on OpenSUSE 15 /15.1</h2>
<p>The first step is to update the system completely. With it, we will have the last security patches in the system.</p>
<pre>~$ sudo zypper up</pre>
<p>Then, make sure you have wget installed. If not, you can install it with this command:</p>
<pre>:~$ sudo zypper in wget</pre>
<p>Now download the RPM package that configures the MySQL repository in OpenSUSE.</p>
<pre>:~$ wget https://dev.mysql.com/get/mysql80-community-release-sl15-3.noarch.rpm</pre>
<p><figure id="attachment_13421" aria-describedby="caption-attachment-13421" style="width: 1335px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13421" src="https://www.osradar.com/wp-content/uploads/2019/09/1-1.jpeg" alt="1.- Adding the MySQL repository" width="1335" height="321" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1-1.jpeg 1335w, https://www.osradar.com/wp-content/uploads/2019/09/1-1-300x72.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-1-768x185.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-1-1024x246.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/09/1-1-696x167.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/09/1-1-1068x257.jpeg 1068w" sizes="(max-width: 1335px) 100vw, 1335px" /><figcaption id="caption-attachment-13421" class="wp-caption-text">1.- Adding the MySQL repository</figcaption></figure></p>
<p>Next, install the package.</p>
<pre>:~$ sudo rpm -ivh mysql80-community-release-sl15-3.noarch.rpm</pre>
<p>Next, import the GPG key for the repository.</p>
<pre class="programlisting line-numbers one-line language-terminal"><code class="language-terminal"><span class="token command">:~$ sudo</span> rpm <span class="token property">--import</span> /etc/RPM-GPG-KEY-mysql</code></pre>
<p>Now, refresh the repository information using zypper.</p>
<pre>:~$ sudo zypper refresh</pre>
<p>And finally, install MySQL 8 on OpenSUSE 15 / 15.1.</p>
<pre class="programlisting line-numbers one-line language-terminal">:~# sudo zypper install mysql-community-server</pre>
<p><figure id="attachment_13422" aria-describedby="caption-attachment-13422" style="width: 918px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13422" src="https://www.osradar.com/wp-content/uploads/2019/09/2-1.jpeg" alt="2.- Install MySQL on OpenSUSE" width="918" height="224" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2-1.jpeg 918w, https://www.osradar.com/wp-content/uploads/2019/09/2-1-300x73.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-1-768x187.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-1-696x170.jpeg 696w" sizes="(max-width: 918px) 100vw, 918px" /><figcaption id="caption-attachment-13422" class="wp-caption-text">2.- Install MySQL on OpenSUSE</figcaption></figure></p>
<p>Then, check the installed version.</p>
<pre>:~$ mysql --version 
mysql  Ver 8.0.17 for Linux on x86_64 (MySQL Community Server - GPL)</pre>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>In this post, you have learned to install the latest version of MySQL on OpenSUSE. With this, you can have a system ready and ready to store data in this fabulous manager.</p>
<p>Please share this post and join <a href="https://t.me/osradar">our Telegram channel.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-latest-version-mysql-opensuse-15-1/">How to install the latest version of MySQL on OpenSuse 15 / 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-the-latest-version-mysql-opensuse-15-1/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
		<item>
		<title>Optimize MySQL / MariaDB on Linux</title>
		<link>https://www.osradar.com/optimize-mysql-mariadb-on-linux/</link>
					<comments>https://www.osradar.com/optimize-mysql-mariadb-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 21 Jan 2019 02:50:46 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[improve]]></category>
		<category><![CDATA[linux. mysql]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9551</guid>

					<description><![CDATA[<p>Always is a sysadmin task, to verify the performance of the server and its services. Especially if the applications that your company uses are hosted in it. By default, almost all database managers have standard configurations to ensure as much as possible that the performance is good. However, not all computers are the same, much [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/optimize-mysql-mariadb-on-linux/">Optimize MySQL / MariaDB on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Always is a sysadmin task, to verify the performance of the <a href="https://www.osradar.com/how-to-set-up-a-ntp-server-centos-7/">server</a> and its services. Especially if the applications that your company uses are hosted in it. By default, almost all database managers have standard configurations to ensure as much as possible that the performance is good. However, not all computers are the same, much less the servers. So, in this post, I will help you optimize MySQL / MariaDB on Linux to increase performance.</p>
<p>The main objective of this post is to show you various parameters that you can modify to increase the performance of <a href="https://www.osradar.com/password-hashing-mysql-mariadb/">MySQL</a> or <a href="https://www.osradar.com/how-to-install-the-lastest-version-of-mariadb-on-debian-9/">MariaDB</a>, but keep in mind that each server is different, then each one has its different needs and in the end, it depends on you.</p>
<p>So, let&#8217;s start.</p>
<h2>The my.cnf file</h2>
<p>The vast majority of the settings that apply to MySQL / MariaDB can be applied from this file. It can be found in the following path <code>/etc/mysql/</code>.</p>
<p><figure id="attachment_9556" aria-describedby="caption-attachment-9556" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9556" src="https://www.osradar.com/wp-content/uploads/2019/01/1-16.png" alt="1.- my.cnf file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-16.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/1-16-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-16-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-16-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/1-16-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/1-16-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9556" class="wp-caption-text">1.- my.cnf file</figcaption></figure></p>
<p>You have to know that in this file many things can be done, including damaging the server. So the first thing to do is to be careful what you do.</p>
<p>Some of the parameters that affect the performance of MySQL / MariaDB are:</p>
<ul>
<li><strong>query_cache_type</strong>: Simply in this option, you can activate or deactivate the cache of the application. It is recommended to activate it by placing the value of 1.</li>
<li><strong>max_allowed_packet</strong>: It&#8217;s up to you here. This parameter allows you to define the maximum size that MySQL / MariaDB can work with. Example, if you want to import a very large database, then the value must be high.</li>
<li><strong>query_cache_size</strong>: Defines the size of the query cache. Very important, but it has a little trick, you should put 64Mb for every 1GB of RAM your server has.</li>
<li><strong>key_buffer_size</strong>: Specifies the size of the index cache. Note that if this value is too high you can cause the server to collapse. Normally, it should be 32Mb for every usable 1Gb. The higher the better, as long as you have the resources to do so.</li>
<li><strong>thread_cache_size</strong>: The maximum number of process threads that can be used. Here you must define between 32 and 64 in order not to saturate the processor.</li>
<li><strong>max_connections</strong>: Defines the number of total simultaneous connections the server will accept.</li>
<li><strong>wait_timeout</strong>: It is the waiting time that MySQL takes to close a connection.</li>
</ul>
<p><figure id="attachment_9563" aria-describedby="caption-attachment-9563" style="width: 570px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9563" src="https://www.osradar.com/wp-content/uploads/2019/01/2-16.png" alt="2.- Edit the my.cnf file" width="570" height="374" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-16.png 570w, https://www.osradar.com/wp-content/uploads/2019/01/2-16-300x197.png 300w" sizes="(max-width: 570px) 100vw, 570px" /><figcaption id="caption-attachment-9563" class="wp-caption-text">2.- Edit the my.cnf file</figcaption></figure></p>
<p>Of course, there are many more parameters, however, I believe that these are the most basic ones to modify.</p>
<h2>Optimize MySQL / MariaDB using MySQL Tuner</h2>
<p>There is a fairly simple tool to apply that can help us with the MySQL / MariaDB configuration and optimization process. I&#8217;m talking about MySQLTuner.</p>
<p><a href="https://github.com/major/MySQLTuner-perl">MySQLTuner</a> is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The script has many <a href="https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md">indicators</a> that will recommend the policies to apply to our server.</p>
<p>Let&#8217;s use it. First, download it.</p>
<pre class="">:~$ wget http://mysqltuner.pl/ -O mysqltuner.pl</pre>
<p><figure id="attachment_9569" aria-describedby="caption-attachment-9569" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9569" src="https://www.osradar.com/wp-content/uploads/2019/01/3-16.png" alt="3.- Download MySQLTuner" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-16.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/3-16-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-16-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-16-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/3-16-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/3-16-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9569" class="wp-caption-text">3.- Download MySQLTuner</figcaption></figure></p>
<p>And run it.</p>
<pre class="">:~$ perl mysqltuner.pl</pre>
<p><figure id="attachment_9572" aria-describedby="caption-attachment-9572" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9572" src="https://www.osradar.com/wp-content/uploads/2019/01/4-17.png" alt="4.- Optimize MySQL / MariaDB with MySQLtuner" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-17.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/4-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/4-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/4-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9572" class="wp-caption-text">4.- Optimize MySQL / MariaDB with MySQLtuner</figcaption></figure></p>
<p><figure id="attachment_9574" aria-describedby="caption-attachment-9574" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9574" src="https://www.osradar.com/wp-content/uploads/2019/01/5-17.png" alt="5.- Optimize MySQL / MariaDB with MySQLtuner" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-17.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/5-17-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-17-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-17-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/5-17-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/5-17-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9574" class="wp-caption-text">5.- Optimize MySQL / MariaDB with MySQLtuner</figcaption></figure></p>
<p>It is recommended to execute this script when you have a real database so that the data you can collect is as real as possible. In this case, I&#8217;m doing a test.</p>
<h2>SSD disks a good way to optimize</h2>
<p>If it is in your possibilities it is good that you can acquire for your server a disk SSD. The SSD disks are rather expensive but compensate much in performance and this is important in their production server.</p>
<p>In some cases, when the hard disk is very fragmented its performance is up to 400% lower than an SSD. That is, it is too much difference.</p>
<h2>Conclusion</h2>
<p>It is not very difficult to optimize MySQL / MariaDB but it is very important to do it. For this, we have a tool like MySQLTuner to help us with the task.</p>
<p>On the other hand, it is good to improve the resources of our server as an SSD so that MySQL / MariaDB also improves performance.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/optimize-mysql-mariadb-on-linux/">Optimize MySQL / MariaDB on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/optimize-mysql-mariadb-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
