<?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>Databases &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-categories/databases/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Tue, 14 Jun 2022 04:57:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Databases &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Converting from MySQL to MariaDB on Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/converting-from-mysql-to-mariadb-to-ubuntu/</link>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 13 Feb 2020 10:27:18 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1405</guid>

					<description><![CDATA[This guide will describe the steps for converting a MySQL server to a MariaDB server and resolving unsatisfied dependencies that may arise during the conversion process. This manual is intended only for virtual servers on which the Ubuntu operating system is installed. Uninstall MySQL server To get started, run these [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This guide will describe the steps for converting a MySQL server to a MariaDB server and resolving unsatisfied dependencies that may arise during the conversion process. This manual is intended only for virtual servers on which the Ubuntu operating system is installed. </p>



<h2 id="uninstall-mysql-server" >Uninstall MySQL server </h2>



<p>To get started, run these commands as root or use sudo</p>



<pre class="wp-block-code"><code>
service mysql stop
apt-get remove mysql-server mysql-common libmysqlclient18</code></pre>



<h2 id="install-mariadb" >Install MariaDB </h2>



<p>Run the following command </p>



<pre class="wp-block-code"><code>apt-get install software-properties-common</code></pre>



<p>Add MariaDB Store Key </p>



<pre class="wp-block-code"><code>sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db</code></pre>



<p>Add MariaDB Repository </p>



<pre class="wp-block-code"><code>sudo add-apt-repository 'deb http://ftp.utexas.edu/mariadb/repo/10.0/ubuntu trusty main'</code></pre>



<p>Install MariaDB </p>



<pre class="wp-block-code"><code>apt-get install mariadb-server libmariadbclient18</code></pre>



<p>Handling Unsatisfied Dependencies </p>



<p>The MariaDB installer may fail (which often happens) with an error, such as this one: </p>



<pre class="wp-block-code"><code>mariadb-server : Depends: mariadb-server-10.0 (specific version) but it is not going to be installed.</code></pre>



<p>This can be frustrating and may not look right. Next, you need to install all the adjacent dependencies. Add g ++ repository to server to resolve libstdc ++ 6 dependency. </p>



<h2 id="add-g" >Add g ++ </h2>



<pre class="wp-block-code"><code>add-apt-repository ppa:ubuntu-toolchain-r/test
apt-get update
apt-get install g++-4.9</code></pre>



<p>Pin the MariaDB repository</p>



<p>This is done by creating a file with <strong>MariaDB.pref</strong> in <strong>/etc/apt/preferences.d/</strong> with the contents shown below:</p>



<p></p>



<pre class="wp-block-code"><code>Package: *
Pin: origin &lt;mirror-domain>
Pin-Priority: 1000</code></pre>



<p>Replace the <strong><em>&lt;mirror-domain&gt; </em></strong>that is displayed when accessing the MarizDB repository selection page</p>



<p>In my case, I chose the <strong>&#8220;University of Dallas&#8221;</strong>. After updating, the file now has the following contents:</p>



<pre class="wp-block-code"><code>Package: *
Pin: origin http://ftp.udallas.edu/mariadb/repo/10.0/ubuntu
Pin-Priority: 1000</code></pre>



<p>Save the file, upgrade your system.</p>



<pre class="wp-block-code"><code>apt-get update</code></pre>



<p>Now, dependency problems have been resolved. If you use 12.04, then pay attention to the fact (it is important) that there were reports that g ++ was excluded from this version.</p>



<p>Install MariaDB again</p>



<pre class="wp-block-code"><code>apt-get install mariadb-server</code></pre>



<p>Check your installation of MariaDB</p>



<pre class="wp-block-code"><code>service mysql start
mysql -u root -p</code></pre>



<p>Now, you can see the following (or the same) output</p>



<pre class="wp-block-code"><code>Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is XXXX
Server version: 10.0.X


Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]></code></pre>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How Can I use Substring function in MySQL data</title>
		<link>https://help.hostry.com/knowledge-base/how-can-i-use-substring-function-in-mysql-data/</link>
					<comments>https://help.hostry.com/knowledge-base/how-can-i-use-substring-function-in-mysql-data/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 06 Dec 2021 09:31:15 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4457</guid>

					<description><![CDATA[Mysql database has many built-in functions. They are available for completely different purposes, one of which is the Substring function. This function actively works with the &#8220;row&#8221; data type and is used in database management to retrieve rows from tables. What is this line? A string is an aggregate combination [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Mysql database has many built-in functions. They are available for completely different purposes, one of which is the Substring function. This function actively works with the &#8220;row&#8221; data type and is used in database management to retrieve rows from tables. What is this line? A string is an aggregate combination of characters. For example, <strong>&#8220;Hello_World_from here&#8221;</strong> and <strong>&#8220;test345&#8221;</strong> are strings.</p>



<p>Substring is a special function that is used to return or extract a string from strings in any table. The general syntax looks like this:</p>



<pre class="wp-block-code"><code>SUBSTRING(string, start, length)</code></pre>



<p>In order for you to understand this function, you can take a table as an example and use the following commands to extract rows from it. We will open a terminal and type &#8220;mysql&#8221; to enter the MySQL environment.</p>



<pre class="wp-block-code"><code>sudo mysql</code></pre>



<p>Next, you should open the list of databases, all that you currently have in MySQL</p>



<pre class="wp-block-code"><code>show DATABASES;</code></pre>



<p>Next, you should open a database, for example with the name &#8220;sample database&#8221;:</p>



<pre class="wp-block-code"><code>SHOW TABLES;</code></pre>



<p>In the output, we can see that the company database contains only one table named &#8220;<strong><strong>Hello_World_from_here</strong></strong>&#8220;. We will now access this table to display its contents:</p>



<pre class="wp-block-code"><code>DESCRIBE Hello_World_from_here</code></pre>



<p>We can now display the contents of the table:</p>



<pre class="wp-block-code"><code>SELECT * FROM Hello_World_from_here</code></pre>



<p>We say that we want to extract the string <strong>&#8220;Hello&#8221;</strong> from the table using the Substring function, then we will use the code according to the syntax we discussed above, and we will use <strong>&#8220;AS ExtractString&#8221;</strong> to return a value in the form of a string from the table …</p>



<pre class="wp-block-code"><code>SELECT SUBSTRING(employee_name, 1, 5) AS ExtractString FROM Hello_World_from_here;</code></pre>



<p>This command is used as a terminal. This is necessary in order to fetch a row from a column named employee_name, start at the first character, and extract the next 5 characters. To understand this better, let&#8217;s say we want to extract 2 characters from the column named <strong>World_from_here</strong>, but it starts at the third character, so the command will be.</p>



<pre class="wp-block-code"><code>SELECT SUBSTRING(World_from_here, 1, 5) AS ExtractString FROM Hello_World_from_here;\</code></pre>



<p>This output will deal with extracting only &#8220;dr&#8221; and &#8220;xi&#8221;. In addition, a command will be run to retrieve the string.</p>



<pre class="wp-block-code"><code>SELECT SUBSTRING(“Hello”, +3, 2) AS World_from_here;</code></pre>



<p>So, what happened in the latest changes.</p>



<p>The terminal was requested to use a special MySQL function that returns string characters from the string &#8220;World&#8221; and starts at its third position from the start point, the + ve sign tells it to start at the start point and extract the next two characters. So, in the line &#8220;World&#8221;, if we start at the third position from the starting point, it will start with &#8220;d&#8221;, and if we extract two characters next to it, then it will be &#8220;dr&#8221;</p>



<p>Now, at the moment, you need to run the following command. This will now allow you to extract &#8220;ax&#8221; from the string &#8220;Maxim&#8221; using a starting point at the end of the string.</p>



<pre class="wp-block-code"><code>SELECT SUBSTRING(“Maxim”, -4, 2) AS World_from_here;</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-can-i-use-substring-function-in-mysql-data/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Drop a Database on MySQL</title>
		<link>https://help.hostry.com/knowledge-base/how-to-drop-a-database-on-mysql/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-drop-a-database-on-mysql/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 29 Dec 2020 09:08:43 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2899</guid>

					<description><![CDATA[MySQL is a Relational Database Management System that is known for being very easy to use, nice interface, and also fast. In this article, we will take a look at such database management techniques as deleting a database in MySQL. To get started with MySQL, open a terminal. First, check [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.mysql.com/"><strong>MySQL</strong></a> is a Relational Database Management System that is known for being very easy to use, nice interface, and also fast. In this article, we will take a look at such database management techniques as deleting a database in MySQL. To get started with <strong>MySQL</strong>, open a terminal. First, check your <a href="https://en.wikipedia.org/wiki/MySQL"><strong>MySQL</strong></a> version with the following command:</p>



<pre class="wp-block-code"><code>mysql - V</code></pre>



<p>Check for the latest up-to-date database version. If it is, then proceed to the step of checking the status of the system mysql.service. To do this, run the following command:</p>



<pre class="wp-block-code"><code>sudo systemctl status mysql</code></pre>



<p>If the service is not active, start the service</p>



<pre class="wp-block-code"><code>sudo systemctl start mysql</code></pre>



<p>After starting the service, connect to the MySQL client or log into the MySQL shell as the root user. If you do not have access to the root user account, replace <strong>“root”</strong> with your username</p>



<pre class="wp-block-code"><code>sudo mysql -u root -p</code></pre>



<p>After logging into MySQL, list the databases with SHOW DATABASES command:</p>



<pre class="wp-block-code"><code>SHOWDATABASES;</code></pre>



<p>After you have a list of databases, then you need to select the database in which you want to delete. If you want to drop an existing database, you can run a simple <strong>DROP DATABASE</strong> command along with the database name like this:</p>



<pre class="wp-block-code"><code>DROPDATABASE your_database_name;</code></pre>



<p>After deleting the database, you need to list the databases again, for this use the <strong>SHOW DATABASES</strong> command</p>



<pre class="wp-block-code"><code>SHOWDATABASES;</code></pre>



<p>Now it is possible to notice that the remote database no longer exists in MySQL.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-drop-a-database-on-mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Enable The General MySQL Query Log on Linux</title>
		<link>https://help.hostry.com/knowledge-base/how-to-enable-the-general-mysql-query-log-on-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-enable-the-general-mysql-query-log-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 28 Apr 2020 09:58:37 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1653</guid>

					<description><![CDATA[There are two potential possibilities to accomplish this: 1. Add to my.cnf file permanently or 2. include general queries for MySQL on versions higher than 5.1.29 1. Add to my.cnf file forever vim /etc/my.cnf log = /home/general-query.log Install via MySQL Console SET general_log = 1; Start server systemctl restart mysqld [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>There are two potential possibilities to accomplish this: 1. Add to my.cnf file permanently or 2. include general queries for MySQL on versions higher than 5.1.29 </p>



<h2 id="1-add-to-my-cnf-file-forever" >1. Add to my.cnf file forever</h2>



<pre class="wp-block-preformatted">vim /etc/my.cnf 
log = /home/general-query.log</pre>



<p>Install via MySQL Console</p>



<pre class="wp-block-preformatted">SET general_log = 1;</pre>



<p>Start server</p>



<pre class="wp-block-preformatted">systemctl restart mysqld</pre>



<h2 id="2-add-to-my-cnf-file-permanently-or-include-general-queries-for-mysql-on-versions-higher-than-5-1-29" >2. Add to my.cnf file permanently or include general queries for MySQL on versions higher than 5.1.29</h2>



<pre class="wp-block-preformatted">general_log_file = /path/to/general-query.log

general_log = 1</pre>



<p>Install via MySQL Console</p>



<pre class="wp-block-preformatted">SET general_query_log = 1;</pre>



<p>Then create the general-query.log file in which you want to store these logs</p>



<pre class="wp-block-preformatted">touch general-query.log

chown -R mysql:mysql general-query.log

systemctl restart mysqld</pre>



<p>Done! You have now successfully enabled the general MySQL query log on Linux. </p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-enable-the-general-mysql-query-log-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install And Configure MySQL For Debian</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-mysql/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-mysql/#comments</comments>
		
		<dc:creator><![CDATA[Paul Harris]]></dc:creator>
		<pubDate>Mon, 29 Jul 2019 07:16:12 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=423</guid>

					<description><![CDATA[For Debian-based distributions First, update the apt package index with the command: sudo apt update Then install the package: sudo apt install mysql-server This command will install MySQL, then basic MySQL configuration is required Configure MySQL Run the security script with: sudo mysql_secure_installation As you can see, security is at [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 id="for-debian-based-distributions" >For Debian-based distributions</h2>



<p>First, update the apt package index with the command:</p>



<p><code>sudo apt update</code></p>



<p>Then<strong> install the package</strong>:</p>



<p><code>sudo apt install mysql-server</code></p>



<p>This command will install MySQL, then basic MySQL configuration is required</p>



<p></p>



<h2 id="configure-mysql" >Configure MySQL</h2>



<p>Run the security script with:</p>



<p><code>sudo mysql_secure_installation</code></p>



<p>As you can see, security is at the plinth level. At least there is no anonymous user. To configure the basic things in the server, run the server configuration through mysql_secure_installation. At the time of this installation, the password will be security. Your same password, as you know, should be different</p>



<p><code>/usr/bin/mysql_secure_installation</code></p>



<p>Skip root <strong>password</strong> for root</p>



<p>We haven&#8217;t set the root password yet, so when you run the script and ask for the root password, just press Enter. Install new password for root: security, and here you can set the password for root. Do remove an anonymous user. When asked whether to remove an anonymous user, answer <strong>Yes</strong></p>



<p>Do not disallow remote connections. Do not prohibit the connection to our North from remote servers (if, of course, this option you need, in other case, prohibit it). Do remove a test database. Test base we do not need &#8211; remove it. Do reload the privileges. Overload privileges to activate them</p>



<p>The password is now set for all root users. If you did not set a root password during this configuration, you can do so as follows:</p>



<p><code>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('security');</code></p>



<p><code>SET PASSWORD FOR 'root'@'localhost.localdomain' = PASSWORD('security');</code></p>



<p><code>SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('security');</code></p>



<p>or</p>



<p><code>UPDATE mysql.user SET Password = PASSWORD('security') WHERE user = 'root';</code></p>



<p>If <strong>you did not run the configuration through mysql_secure_installation </strong>or do not want to do so for some other reason, the following commands will remove any users:</p>



<p><code>DROP USER "@'localhost';</code></p>



<p><code>DROP USER "@'localhost.localdomain';</code></p>



<p>Also, the password for IPv6 localhost (@::1) can be set this way:</p>



<p><code>SET PASSWORD FOR 'root'@'::1' = PASSWORD(&lt;password&gt;);</code></p>



<p>The final of our action is coming. There are two things. Open the ports for mysql:</p>



<p><code>sudo iptables -I INPUT -p tcp --dport 3306 -m state --state NEW,ESTABLISHED -j ACCEPT</code></p>



<p><code>sudo iptables -I OUTPUT -p tcp --sport 3306 -m state --state ESTABLISHED -j ACCEPT</code></p>



<p>Set the default UTF-8 encoding to <strong>/etc/my.cnf</strong></p>



<p><code>[mysqld]</code></p>



<p><code>init_connect=‘SET collation_connection = utf8_unicode_ci’</code></p>



<p><code>character-set-server = utf8</code></p>



<p><code>collation-server = utf8_unicode_ci</code></p>



<p><code>[client]</code></p>



<p><code>default-character-set = utf8</code></p>



<p>Overloading the service:</p>



<p><code>sudo service mysqld restart</code></p>



<p><strong><em>Conclusion</em></strong></p>



<p><code>mysqld: can't create directory '/var/lib/mysql/' (Errcode: 17 - File exists)</code></p>



<p><code>. . .</code></p>



<p><code>2019-07-15T14:30:25.572066 Z 0 [ERROR] Abortion</code></p>



<p>Note that although you have set a password for The MySQL root user, this user is not configured for password authentication when connecting to the MySQL shell. </p>



<p>Check if the service started:</p>



<p><code>systemctl status mysql.service</code></p>



<blockquote class="wp-block-quote"><p>mysql.service &#8211; MySQL Community Server</p><p>Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en</p><p>Active: active (running) since Mon 2019-07-15 14:30:25 UTC; 30min ago</p><p>Main PID: 3754 (mysqld)</p><p>Tasks: 28</p><p>Memory: 149.3 M</p><p>CPU: 2.094 s</p><p>CGroup: /system.slice/mysql.service</p><p>7875 /usr/sbin/mysqld</p></blockquote>



<h2 id="optional-configure-authentication-and-privileges" >Optional configure authentication and privileges</h2>



<p>On
servers running Ubuntu that use MySQL 5.7 (and later), the MySQL root
user is authenticated by default using the auth_socket plugin, not by
password. This is generally more secure and convenient in many cases,
but not when you need to organize access to MySQL from a third-party
program, for example, phpMyAdmin.</p>



<p>In order for the MySQL root user to be able to use the login password, you need to change the authentication method from auth_socket to mysql_native_password. To do this, enter the MySQL shell with the following command:</p>



<p><code>sudo mysql</code></p>



<p>Next, check which authentication method is used for each of your MySQL users. SELECT user,host,authentication_string,plugin FROM mysql.user. Like this you can see</p>



<p><code>+------------------+-----------+-------------------------------------------+-----------------------+</code></p>



<p><code>| user | host | authentication_string | plugin |</code></p>



<p><code>+------------------+-----------+-------------------------------------------+-----------------------+</code></p>



<p><code>| root | localhost | | auth_socket |</code></p>



<p><code>| mysql.session | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |</code></p>



<p><code>| mysql.sys | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |</code></p>



<p><code>| debian-sys-maint | localhost | *CC744277A401A7D25BE1CA89AFF17BF607F876FF | mysql_native_password |</code></p>



<p><code>+------------------+-------------------------------------------+-----------------------+-----------+</code></p>



<p><code>4 rows in set (0.00 sec)</code></p>



<p>The string auth_socket means that the user will be able to connect without entering a password when connecting via a local UNUX socket. If you are not satisfied with this behavior of MySQL, enter the following command in the mysql console. </p>



<p><code>&gt; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'VERY_VERY_SECURE_PASSWORD';</code></p>



<p>Naturally VERY_VERY_SECURE_PASSWORD replace really safe, known only to those who should know it</p>



<p><code>&gt; FLUSH PRIVILEGES;</code></p>



<p>Check yourself! SELECT user,host,authentication_string,plugin FROM mysql.user. Like this you can see</p>



<p><code>+------------------+-----------+-------------------------------------------+-----------------------+</code></p>



<p><code>| user | host | authentication_string | plugin |</code></p>



<p><code>+------------------+-----------+-------------------------------------------+-----------------------+</code></p>



<p><code>| root | localhost | *8C744276549879874FC098CABFF17BF607F876FF | mysql_native_password |</code></p>



<p><code>| mysql.session | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |</code></p>



<p><code>| mysql.sys | localhost | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password |</code></p>



<p><code>| debian-sys-maint | localhost | *CC744277A401A7D25BE1CA89AFF17BF607F876FF | mysql_native_password |</code></p>



<p><code>+------------------+-------------------------------------------+-----------------------+-----------+</code></p>



<p><code>4 rows in set (0.00 sec)</code></p>



<p><strong>For verification</strong>:</p>



<ul><li><strong>Exit the mysql client (ctrl+d or write exit) if you are in it;</strong></li><li><strong>As root, type mysql or (sudo mysql) as another user.</strong></li></ul>



<p>Mysql program should ask for a password if you log in without a password recheck the steps. Add a local tommy superuser with full database access and the right to assign rights to other users:</p>



<p><code>&gt; GRANT ALL PRIVILEGES ON *.* TO 'tommy'@'localhost' WITH GRANT OPTION IDENTIFIED BY 'VERY_SECURE_TOO_PASSWORD';</code></p>



<p>Adding user jonny connecting with IP 123.45.67.89 to work with WORDPRESS database:</p>



<p><code>&gt; GRANT ALL PRIVILEGES ON *.WORDPRESS TO 'tommy'@'123.45.67.89' IDENTIFIED BY 'OTHER_VERY_SECURE_PASSWORD';</code></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-mysql/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install MongoDB on CentOS</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-mongodb-on-centos/</link>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 08 Oct 2020 10:28:35 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2349</guid>

					<description><![CDATA[MongoDB is a general-purpose, distributed, document-based database built for modern app developers and the cloud era. It is the leading NoSQL database most commonly used in modern web applications. This article will describe how to install this Database on a Linux distribution such as CentOS. The guide focuses on the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.mongodb.com/"><strong>MongoDB</strong></a>  is a general-purpose, distributed, document-based database built for modern app developers and the cloud era. It is the leading NoSQL database most commonly used in modern web applications. This article will describe how to install this Database on a Linux distribution such as CentOS. The guide focuses on the following distribution versions: <strong>RHEL / CentOS 8, RHEL / CentOS 7 </strong>and older<strong> &#8211; RHEL / CentOS 6</strong></p>



<h2 id="install-mongodb-community-edition" >Install MongoDB Community Edition</h2>



<p>Install <strong>MongoDB</strong> Database using <strong>CentOS</strong> Package Installation Manager &#8211; <strong><em>yum</em></strong>. First, you need to create a file<strong> /etc/yum.repos.d/mongodb-org-4.4.repo</strong> for this database</p>



<pre class="wp-block-code"><code># nano /etc/yum.repos.d/mongodb-org-4.4.repo</code></pre>



<p>Then paste into your text editor what is described below:</p>



<pre class="wp-block-code"><code>&#91;mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc</code></pre>



<p>Save this and then you can close your text editor. After that, if you want to install the latest, stable and current version of <strong>MongoDB</strong>, you need to enter the following:</p>



<pre class="wp-block-code"><code># sudo yum install -y mongodb-org</code></pre>



<h2 id="configuring-mongodb" >Configuring MongoDB</h2>



<p>At this stage, the installation of this Database is completed. Now you need to configure it. To do this, you must first start MongoDB</p>



<pre class="wp-block-code"><code># systemctl start mongod.service
# systemctl enable mongod.service</code></pre>



<p>Next, connect to <strong>MongoDB</strong></p>



<pre class="wp-block-code"><code># mongo</code></pre>



<p>MongoDB is insecure by default. You can follow this <strong><a href="https://help.hostry.com/knowledge-base/securing-mongodb/">link</a></strong> to configure security and authentication of this Database.</p>



<blockquote class="wp-block-quote"><p>If you need to install a specific version or prevent automatic updates, you can see the  MongoDB <strong><a href="https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/">documentation</a></strong>.</p></blockquote>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How To Install MongoDB on FreeBSD</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-mongodb-on-freebsd/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-mongodb-on-freebsd/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 21 Oct 2020 10:01:38 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2387</guid>

					<description><![CDATA[MongoDB is a very powerful resource and fast NoSQL database. As for the repositories on Debian, they update very slowly and often contain outdated versions of packages. This article&#8217;ll work for both x86 and x64 architectures, but note that MongoDB works best on 64-bit architectures. Update the package repository \Before [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>MongoDB is a very powerful resource and fast NoSQL database. As for the repositories on Debian, they update very slowly and often contain outdated versions of packages. This article&#8217;ll work for both x86 and x64 architectures, but note that MongoDB works best on 64-bit architectures.</p>



<h2 id="update-the-package-repository" >Update the package repository</h2>



<p>\Before installing MongoDB, you need to make sure everything is up to date. This can be done by running the following command accordingly:</p>



<pre class="wp-block-code"><code>pkg update</code></pre>



<p>There may be the following message stating that &#8220;<strong>package management tool</strong>&#8221; is not available, type <strong>Y</strong>, press Enter to continue. You can run pkg update -f a forced update if needed. If unsuccessful, go to step 2 &#8211;<strong> Installing MongoDB</strong></p>



<h2 id="installing-mongodb" >Installing MongoDB</h2>



<p>Install <strong>MongoDB</strong> using the following command:</p>



<pre class="wp-block-code"><code>pkg install mongodb</code></pre>



<h2 id="start-and-test-the-installation-of-mongodb" >Start and Test The Installation of MongoDB</h2>



<p>Check your <strong>MongoDB</strong> installation. This command will start the service:</p>



<pre class="wp-block-code"><code>service mongod onestart</code></pre>



<p>The consol&#8217;ll look loke this:</p>



<pre class="wp-block-code"><code>MongoDB shell version: 4.4
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
    http://docs.mongodb.org/
Questions? Try the support group
    http://groups.google.com/group/mongodb-user</code></pre>



<h2 id="turn-the-mongodb-at-each-boot" >Turn the MongoDB at each boot</h2>



<p>If you don&#8217;t want to use &#8220;<strong>onestart</strong>&#8221; to start <strong>Mongo</strong> on boot, you can configure it to run start instead. To do this, you need to edit <strong><em>/etc/rc.conf</em></strong><em>.</em> with vi or any other text editor and add mongod_enable = <strong>&#8220;YES&#8221;</strong> to the file. Once finished, it will start when your server boots up and you can now use its service mongod start to start the Mongo service. Other service commands such as stop and status will also be available.</p>



<p>You can try the Hostry&#8217;s VPS <a href="https://hostry.com/products/vps/"><strong>here</strong></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-mongodb-on-freebsd/feed/</wfw:commentRss>
			<slash:comments>407</slash:comments>
		
		
			</item>
		<item>
		<title>How to install MySql Workbench on Arch Linux</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-mysql-workbench-on-arch-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-mysql-workbench-on-arch-linux/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 03 Jan 2022 12:10:21 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4593</guid>

					<description><![CDATA[Working with MySQL on Linux operating systems includes many tasks, some of which are tools for administering SQL parameters, development and modeling of these same parameters, as well as backup and recovery. Using Linux distributions you have the ability to install MySql Workbench in a variety of ways, including through [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Working with MySQL on Linux operating systems includes many tasks, some of which are tools for administering SQL parameters, development and modeling of these same parameters, as well as backup and recovery. Using Linux distributions you have the ability to install <strong>MySql</strong> <strong><a href="https://www.mysql.com/products/workbench/">Workbench</a></strong> in a variety of ways, including through the official packages. Installing the official Oracle repositories, using the default operating system repositories, or compiling packages from source are all options. So let&#8217;s take a quick look at the method of installing a MySQL desktop environment on Arch Linux.</p>



<p>You can install MySql Workbench using a simple program, which will be described below. An important factor is that the package is part of the official Ubuntu repository. The official name of the package is MySQL-workbench, you can install it as follows:</p>



<pre class="wp-block-code"><code>apt-get install mysql-workbench</code></pre>



<p>Then the step that must be completed: then you should go to the main menu and click the MySQL workbench start icon to start the program. The main page will appear after starting the program.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-mysql-workbench-on-arch-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install MySQL Workbench on Debian 11</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-mysql-workbench-on-debian-11/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-mysql-workbench-on-debian-11/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 03 Nov 2021 14:27:05 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4413</guid>

					<description><![CDATA[As for the new version of Debian 11, the official method of installing MySQL Workbench does not work as expected on Debian 11. Some users who have encountered the installation state the following: the MySQL Workbench repository was not added correctly, and manually adding it does not solve the problem. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>As for the new version of Debian 11, the official method of installing MySQL Workbench does not work as expected on Debian 11. Some users who have encountered the installation state the following: the MySQL Workbench repository was not added correctly, and manually adding it does not solve the problem. Other users have complained that manual installation of Ubuntu does not work with Debian, and we can confirm this. However, installing MySQL Workbench on Debian 11 using Snap is pretty straightforward. Before installing MySQL Workbench, update all of your repositories:</p>



<pre class="wp-block-code"><code>apt update</code></pre>



<p>It is recommended that you install the snapd package for Workbench to work properly. This can be installed by running the following command:</p>



<pre class="wp-block-code"><code>apt install snapd</code></pre>



<p>Install the kernel files using Snap by running the following command:</p>



<pre class="wp-block-code"><code>snap install core</code></pre>



<p>Now, to install MySQL Workbench using Snap, run the following command:</p>



<pre class="wp-block-code"><code>snap install mysql-workbench-community</code></pre>



<p>Once installed, you can find MySQL Workbench in the application finder, or in the applications menu. In Debian 11, you will see a warning that the operating system is not supported. MySQL Workbench currently supports the following operating systems: Ubuntu, Red Hat Enterprise, Oracle Linux, Fedora, and Microsoft Windows. The fact that your system is not officially supported can be ignored, and this does not mean that you will run into errors. However, below I decided to add some Linux compatible alternatives to MySQL Workbench. More information on MySQL Workbench can be obtained at this <strong><a href="https://www.mysql.com/products/workbench/">link</a></strong>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-mysql-workbench-on-debian-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Newer Version of MongoDB on Debian 8</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-newer-version-of-mongodb-on-debian-8/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-newer-version-of-mongodb-on-debian-8/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 10 Jan 2020 09:05:14 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1206</guid>

					<description><![CDATA[MongoDB is a document-based, general-purpose distributed database designed for modern application developers and for the cloud computing era. No database makes you more productive. In this article, we will look at how to install the latest version of MongoDB Add MongoDB Public Key This command adds the GPG MongoDB public [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><em><a href="https://www.mongodb.com/">MongoDB</a></em></strong> is a document-based, general-purpose distributed database designed for modern application developers and for the cloud computing era. No database makes you more productive. In this article, we will look at how to install the latest version of MongoDB</p>



<h2 id="add-mongodb-public-key" >Add MongoDB Public Key</h2>



<p>This command adds the GPG MongoDB public key to the system key list:</p>



<pre class="wp-block-code"><code>apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10</code></pre>



<p>This key is necessary in order to ensure the consistency and authenticity of all packages.</p>



<h2 id="add-mongodb-storage" >Add MongoDB Storage</h2>



<p>First you need to create the <strong>mongodb.list</strong> file to add the MongoDB repository to the system. You can do this with the following command:</p>



<pre class="wp-block-code"><code>echo "deb http://repo.mongodb.org/apt/debian "$(lsb_release -sc)"/mongodb-org/3.0 main" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list</code></pre>



<h2 id="package-updates" >Package Updates</h2>



<p>To get information about the latest packages, please nter the command:</p>



<pre class="wp-block-code"><code>apt-get update</code></pre>



<h2 id="install-mongodb-packages" >Install MongoDB packages</h2>



<p>To install the latest stable version of MongoDB, use the following command:</p>



<pre class="wp-block-code"><code>apt-get install -y mongodb-org</code></pre>



<ul><li><strong>mongodb-org-server</strong></li><li><strong>mongodb-org-mongos</strong></li><li><strong>mongodb-org-shell</strong></li><li><strong>mongodb-org-tools</strong></li></ul>



<p><em>*Here are 4</em><strong><em> packages</em></strong><em> that </em><strong><span style="text-decoration: underline;"><em>mongodb-org</em></span></strong><em> automatically install</em></p>



<h2 id="launch-mongodb" >Launch MongoDB</h2>



<p>After installation is complete, MongoDB starts automatically. If you need to manually start the MongoDB server, use the following command:</p>



<pre class="wp-block-code"><code>service mongod start</code></pre>



<p>To <strong>stop</strong> and <strong>restart</strong> mongodb processes, use this commands:</p>



<pre class="wp-block-code"><code>service mongod stop</code></pre>



<pre class="wp-block-code"><code>service mongod restart</code></pre>



<p>You can access the MongoDB shell by running the following command: (<strong>this allows you to connect to the MongoDB server)</strong></p>



<pre class="wp-block-code"><code>mongo</code></pre>



<p>When the shell starts, you will see the output in the following format:</p>



<pre class="wp-block-code"><code>MongoDB shell version: 3.0.0
connecting to: test
></code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-newer-version-of-mongodb-on-debian-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
