<?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>Uncategorized &#8211; MaXEster Technologies  | Technical Blog</title>
	<atom:link href="https://www.maxester.com/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.maxester.com/blog</link>
	<description>Tutorials, Examples and Implementation code for Developers Help</description>
	<lastBuildDate>Mon, 17 Feb 2025 09:17:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.22</generator>
	<item>
		<title>How To Install MySQL on Ubuntu 18.04</title>
		<link>https://www.maxester.com/blog/2020/09/14/how-to-install-mysql-on-ubuntu-18-04/</link>
		<comments>https://www.maxester.com/blog/2020/09/14/how-to-install-mysql-on-ubuntu-18-04/#respond</comments>
		<pubDate>Mon, 14 Sep 2020 18:43:43 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1052</guid>
		<description><![CDATA[<p>It&#8217;s very easy to install MySQL on the Ubuntu server by using the below commands sudo apt update sudo apt install mysql-server sudo mysql_secure_installation For details follow the below steps 1st Step First, of all run the command sudo apt&#8230;</p>
<p><a href="https://www.maxester.com/blog/2020/09/14/how-to-install-mysql-on-ubuntu-18-04/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2020/09/14/how-to-install-mysql-on-ubuntu-18-04/">How To Install MySQL on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>It&#8217;s very easy to install MySQL on the Ubuntu server by using the below commands</p>



<p> sudo apt update<br> sudo apt install mysql-server<br> sudo mysql_secure_installation</p>



<p>For details follow the below steps </p>



<center>
<script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Fads -->
<ins class="adsbygoogle fads" style="display:inline-block;" data-ad-client="ca-pub-3804472713147276" data-ad-slot="1267368188"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>



<p>1st Step </p>



<p>First, of all run the command</p>



<p>sudo apt update </p>



<p>when the command executes successfully then run the MySQL server command</p>



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



<p>press y for the installation properly.</p>



<p>2nd Step</p>



<p>Configure Mysql</p>



<p>Run command </p>



<p>sudo mysql_secure_installation</p>



<p>This will come with many prompts for asking in case you understand the point put the value y or n which stands for yes or no.</p>



<p>Otherwise, you will enter and the question will skips.</p>



<p>Mysql install with root username and no password</p>



<p>so run command </p>



<p>sudo MySQL</p>



<p>this will come like this </p>



<p>mysql&gt; </p>



<p>after that use the below steps for making the password for the root user</p>



<p>mysql&gt; SELECT user,authentication_string,plugin,host FROM MySQL.user;</p>



<p>The output will come like this</p>



<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+<br>
| user             | authentication_string                     | plugin                | host      |<br>
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+<br>
| root             |                                           | auth_socket           | localhost |<br>
| mysql.session    | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |<br>
| mysql.sys        | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |<br>
| debian-sys-maint | *CC744277A401A7D25BE1CA89AFF17BF607F876FF | mysql_native_password | localhost |<br>
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+<br>
4 rows in set (0.00 sec)</p>



<center>
<script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Fads -->
<ins class="adsbygoogle fads" style="display:inline-block;" data-ad-client="ca-pub-3804472713147276" data-ad-slot="1267368188"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>



<p>If the root user shows auth_socket means the root user has no authentication so for adding a password for the root user run the below command</p>



<p>mysql&gt; ALTER USER &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED WITH mysql_native_password BY &#8216;password&#8217;;</p>



<p>&#8216;password&#8217; &#8212; put the password which you want to set;</p>



<p>when the command runs successfully</p>



<p>Flush all the privileges by using the below command</p>



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



<p>After the when you run the user command <br>
mysql&gt;SELECT user,authentication_string,plugin,host FROM mysql.user;</p>



<p>you will get the output</p>



<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+<br>
| user             | authentication_string                     | plugin                | host      |<br>
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+<br>
| root             | *3636DACC8616D997782ADD0839F92C1571D6D78F | mysql_native_password | localhost |<br>
| mysql.session    | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |<br>
| mysql.sys        | *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE | mysql_native_password | localhost |<br>
| debian-sys-maint | *CC744277A401A7D25BE1CA89AFF17BF607F876FF | mysql_native_password | localhost |<br>
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+<br>
4 rows in set (0.00 sec)</p>



<p>there is no auth_socket because now the root user has a password.</p>



<p>Now you can exit from MySQL using the exit command</p>



<p>mysql&gt; exit</p>



<p>Again try to login directly using the MySQL command</p>



<p>sudo mysql</p>



<p>you will get the error prompt for you to have authentication.</p>



<p>Now use the below command</p>



<p>mysql -u root -p</p>



<p>enter the command you will ask for a password put the password you log in.</p>



<p>mysql&gt;</p>



<p>Mysql Install successfully and password for root user add.</p>



<p>If you want to create a new user for MySQL use below steps</p>



<center>
<script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Fads -->
<ins class="adsbygoogle fads" style="display:inline-block;" data-ad-client="ca-pub-3804472713147276" data-ad-slot="1267368188"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>



<p>Login in MySQL using the above command</p>



<p>mysql -u root -p</p>



<p>enter the password then you log in.</p>



<p>mysql&gt;</p>



<p>Now use the below command to create a new user</p>



<p>mysql&gt;CREATE USER &#8216;max&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;</p>



<p>You can use username as you want in place of &#8216;max&#8217; and password in place of &#8216;password&#8217;</p>



<p>After run successfully this command grant access to this user by using the below command</p>



<p>mysql&gt;GRANT ALL PRIVILEGES ON <em>.</em> TO &#8216;max&#8217;@&#8217;localhost&#8217; WITH GRANT OPTION;</p>



<p>After the query ok you will exit and login with this new user.</p>



<p>mysql&gt; exit</p>



<p>Using the below command you can check the new user access</p>



<p>mysql -u max -p </p>



<p>and put the password after this above command.</p>



<p>you will log in successfully</p>



<p>mysql&gt;</p>



<p>If you still face any issue please feel free to put your command in the comment section as we get the comment we will help you to resolve your issue.</p>



<p>Have a great day. </p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2020/09/14/how-to-install-mysql-on-ubuntu-18-04/">How To Install MySQL on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2020/09/14/how-to-install-mysql-on-ubuntu-18-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To print \n in C?</title>
		<link>https://www.maxester.com/blog/2019/11/05/how-to-print-n-in-c/</link>
		<comments>https://www.maxester.com/blog/2019/11/05/how-to-print-n-in-c/#respond</comments>
		<pubDate>Tue, 05 Nov 2019 14:05:37 +0000</pubDate>
		<dc:creator><![CDATA[Bhaskar Chaudhary]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=718</guid>
		<description><![CDATA[<p>As We know \n is used for new line Similarly \t for vertical tab so to print \n just add \ before \n like \\n similarly for \t it will be \\t</p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2019/11/05/how-to-print-n-in-c/">How To print \n in C?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>As We know \n is used for new line</p>



<p>Similarly \t for vertical tab </p>



<p>so to print \n just add \ before \n like \\n</p>



<p>similarly for \t it will be \\t</p>



<center>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Fads -->
<ins class="adsbygoogle fads"
     style="display:inline-block;"
     data-ad-client="ca-pub-3804472713147276"
     data-ad-slot="1267368188"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>




<pre class="wp-block-code"><code>#include &lt;iostream>

using namespace std;

int main()
{
    cout&lt;&lt;"Hello \\n World";

    return 0;
}

//output
Hello \n World  </code></pre>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2019/11/05/how-to-print-n-in-c/">How To print \n in C?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2019/11/05/how-to-print-n-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
