<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>

<feed xmlns="http://purl.org/atom/ns#" version="0.3" xml:lang="en-US">
<link href="https://www.blogger.com/atom/22232840" rel="service.post" title="FreeBSD" type="application/atom+xml"/>
<link href="https://www.blogger.com/atom/22232840" rel="service.feed" title="FreeBSD" type="application/atom+xml"/>
<title mode="escaped" type="text/html">FreeBSD</title>
<tagline mode="escaped" type="text/html">My notes on the principles and practices of software related issues such as compiler, assembler, graphical user interface, and operating system design. I am currently learning these topics at university and FreeBSD as UNIX operating system for study purpose.</tagline>
<link href="http://www.cyberciti.biz/howto/cookbook/" rel="alternate" title="FreeBSD" type="text/html"/>
<id>tag:blogger.com,1999:blog-22232840</id>
<modified>2006-03-30T12:10:13Z</modified>
<generator url="http://www.blogger.com/" version="5.15">Blogger</generator>
<info mode="xml" type="text/html">
<div xmlns="http://www.w3.org/1999/xhtml">This is an Atom formatted XML site feed. It is intended to be viewed in a Newsreader or syndicated to another site. Please visit the <a href="http://help.blogger.com/bin/answer.py?answer=697">Blogger Help</a> for more info.</div>
</info>
<convertLineBreaks xmlns="http://www.blogger.com/atom/ns#">true</convertLineBreaks>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/22232840/114372022320831302" rel="service.edit" title="Securing MySQL Server - setup root password" type="application/atom+xml"/>
<author>
<name>nixcraft</name>
</author>
<issued>2006-03-30T17:27:00+05:30</issued>
<modified>2006-03-30T12:10:13Z</modified>
<created>2006-03-30T12:03:43Z</created>
<link href="http://www.cyberciti.biz/howto/cookbook/2006/03/securing-mysql-server-setup-root.php" rel="alternate" title="Securing MySQL Server - setup root password" type="text/html"/>
<id>tag:blogger.com,1999:blog-22232840.post-114372022320831302</id>
<title mode="escaped" type="text/html">Securing MySQL Server - setup root password</title>
<summary type="application/xhtml+xml" xml:base="http://www.cyberciti.biz/howto/cookbook/" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">As you see MySQL server connects without any password restriction. This is not a good idea for production environment so let us setup root password with mysqladmin command. By default MySQL server installs without any password and it use root account as admin user for managing MySQL server. Please do not get confused with FreeBSD root user account. Both are different account and password for both</div>
</summary>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/22232840/114371926849334935" rel="service.edit" title="Your first interaction with MySQL database server" type="application/atom+xml"/>
<author>
<name>nixcraft</name>
</author>
<issued>2006-03-30T17:09:00+05:30</issued>
<modified>2006-03-30T11:55:03Z</modified>
<created>2006-03-30T11:47:48Z</created>
<link href="http://www.cyberciti.biz/howto/cookbook/2006/03/your-first-interaction-with-mysql.php" rel="alternate" title="Your first interaction with MySQL database server" type="text/html"/>
<id>tag:blogger.com,1999:blog-22232840.post-114371926849334935</id>
<title mode="escaped" type="text/html">Your first interaction with MySQL database server</title>
<summary type="application/xhtml+xml" xml:base="http://www.cyberciti.biz/howto/cookbook/" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">Ok you got MySQL server installed. Let us communicate with our server using mysql command line client. The mysql program provides a curses-based interface  to  the database server.                                          Please note that following commands also ensures that your MySQL server installation is successful and working fine.

a) To start just type mysql at shell prompt:
$ mysqlOutput:</div>
</summary>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/22232840/114371742177128666" rel="service.edit" title="Understanding MySQL service i.e. starting and shutting down MySQL database server" type="application/atom+xml"/>
<author>
<name>nixcraft</name>
</author>
<issued>2006-03-30T16:35:00+05:30</issued>
<modified>2006-03-30T11:20:28Z</modified>
<created>2006-03-30T11:17:01Z</created>
<link href="http://www.cyberciti.biz/howto/cookbook/2006/03/understanding-mysql-service-ie.php" rel="alternate" title="Understanding MySQL service i.e. starting and shutting down MySQL database server" type="text/html"/>
<id>tag:blogger.com,1999:blog-22232840.post-114371742177128666</id>
<title mode="escaped" type="text/html">Understanding MySQL service i.e. starting and shutting down MySQL database server</title>
<content type="application/xhtml+xml" xml:base="http://www.cyberciti.biz/howto/cookbook/" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">If you install new software(s) from FreeBSD ports or binary collection then you will find all necessary startup and stop scripts located into <span style="font-weight: bold; font-style: italic; color: rgb(0, 102, 0);">/usr/local/etc/rc.d</span> directory. To start or stop MySQL server you need to change directory to /usr/local/etc/rc.d and start MySQL service using <span style="color: rgb(0, 102, 0); font-weight: bold; font-style: italic;">mysql-server.sh</span> script.<br/>
<br/>
<span style="font-weight: bold;font-size:130%;">Starting MySQL server </span>
<br/>To Start MySQL server under FreeBSD type following command (use script):<p class="code"># /usr/local/etc/rc.d/mysql-server.sh start</p>Output:<pre>Starting mysql.</pre>
<span style="font-weight: bold;font-size:130%;">Stopping MySQL database server </span>
<br/>To Stop MySQL database server under FreeBSD use following script:<p class="code"># /usr/local/etc/rc.d/mysql-server.sh stop</p>Output:<pre>Stopping mysql.<br/>Waiting for PIDS: 1268, 1268.</pre>Please note that use above method to start or stop MySQL server manually. As you have already <a href="/howto/cookbook/2006/03/automatically-start-mysql-server-up-at.php">configured MySQL</a> server to start/stop upon system reboot.</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/22232840/114371658104815079" rel="service.edit" title="Automatically start MySQL server  up at system initial boot time" type="application/atom+xml"/>
<author>
<name>nixcraft</name>
</author>
<issued>2006-03-30T16:27:00+05:30</issued>
<modified>2006-03-30T11:03:01Z</modified>
<created>2006-03-30T11:03:01Z</created>
<link href="http://www.cyberciti.biz/howto/cookbook/2006/03/automatically-start-mysql-server-up-at.php" rel="alternate" title="Automatically start MySQL server  up at system initial boot time" type="text/html"/>
<id>tag:blogger.com,1999:blog-22232840.post-114371658104815079</id>
<title mode="escaped" type="text/html">Automatically start MySQL server  up at system initial boot time</title>
<content type="application/xhtml+xml" xml:base="http://www.cyberciti.biz/howto/cookbook/" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">Make sure MySQL server start automatically whenever FreeBSD comes up after reboot. FreeBSD provided this facility via <span style="font-weight: bold;">/etc/rc.conf</span> file (system configuration information). This file lists which services should be started up at system initial boot time. The rc.conf file contains the global system configuration information referenced by the startup scripts, while rc.conf.local contains the local system configuration.<br/>
<br/>
<span style="font-weight: bold;font-size:130%;">Configure FreeBSD to start MySQL Server up at system initial boot time<br/>
<br/>
</span>(a) Open /etc/rc.conf file using text editor such as vi:<p class="code"># vi /etc/rc.conf</p>(b) Append following line which will enable (start) MySQL server automatically after each reboot:<p class="code">mysql_enable="YES"</p>(c) Save file and exit to shell prompt.</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/22232840/114371555314769702" rel="service.edit" title="Introduction : Installing and configuring MySQL server" type="application/atom+xml"/>
<author>
<name>nixcraft</name>
</author>
<issued>2006-03-30T16:14:00+05:30</issued>
<modified>2006-03-30T10:45:53Z</modified>
<created>2006-03-30T10:45:53Z</created>
<link href="http://www.cyberciti.biz/howto/cookbook/2006/03/introduction-installing-and.php" rel="alternate" title="Introduction : Installing and configuring MySQL server" type="text/html"/>
<id>tag:blogger.com,1999:blog-22232840.post-114371555314769702</id>
<title mode="escaped" type="text/html">Introduction : Installing and configuring MySQL server</title>
<content type="application/xhtml+xml" xml:base="http://www.cyberciti.biz/howto/cookbook/" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">
<a href="http://en.wikipedia.org/wiki/Mysql">MySQL</a> is a multithreaded, multi-user, SQL Database Management System (DBMS) with an estimated six million installations. MySQL AB makes MySQL available as free software under the GNU General Public License (GPL), but they also dual-license it under traditional proprietary licensing arrangements for cases where the intended use is incompatible with the GPL.<br/>
<br/>
<span style="font-weight: bold;font-size:130%;">Quick Installing and configuring MySQL server steps</span>
<br/>
<ol>
<li>Install MySQL Server using binary package or ports method</li>
<li>Automatically start MySQL server</li>
<li>Understanding MySQL service i.e. starting and shutting down MySQL database server</li>
<li>Securing MySQL Server – setup root password</li>
<li>Enable ipf firewall protection for MySQL server</li>
<li>Creating MySQL users </li>
</ol>
</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/22232840/114371547059797636" rel="service.edit" title="Install MySQL Server using binary package or ports method" type="application/atom+xml"/>
<author>
<name>nixcraft</name>
</author>
<issued>2006-03-30T16:02:00+05:30</issued>
<modified>2006-03-30T10:56:37Z</modified>
<created>2006-03-30T10:44:30Z</created>
<link href="http://www.cyberciti.biz/howto/cookbook/2006/03/install-mysql-server-using-binary.php" rel="alternate" title="Install MySQL Server using binary package or ports method" type="text/html"/>
<id>tag:blogger.com,1999:blog-22232840.post-114371547059797636</id>
<title mode="escaped" type="text/html">Install MySQL Server using binary package or ports method</title>
<content type="application/xhtml+xml" xml:base="http://www.cyberciti.biz/howto/cookbook/" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">MySQL is one the best and fast database server for setting and using up under FreeBSD. You can install MySQL server using FreeBSD ports collection or install using binary packages from FreeBSD ftp server (which is quite fast as compare to ports method).<br/>
<br/>
<span style="font-weight: bold;font-size:130%;">Install MySQL v5.0 server</span>
<br/>
<span style="color: rgb(102, 51, 0); font-style: italic;">
<br/>
<span style="font-weight: bold;">Method # 1:  Binary installation method </span>
</span>
<br/>
<br/>Login as the root user and type following command :<p class="code"># pkg_add -r -v mysql5-server</p>Output:<pre>looking up ftp.freebsd.org<br/>connecting to ftp.freebsd.org:21<br/>setting passive mode<br/>opening data connection<br/>initiating transfer<br/>Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/mysql50-server.tbz...x +CONTENTS<br/>x +COMMENT<br/>x +DESC<br/>....<br/>....<br/>.....<br/>..</pre>
<span style="font-weight: bold; font-style: italic; color: rgb(102, 51, 0);">Method # 2: Use FreeBSD Ports collection </span>
<br/>First Install MySQL server 5.0: <p class="code"># cd /usr/ports/database/mysql50-server<br/># make<br/># make install<br/># make clean</p>
<br/>Next Install MySQL client 5.0:<p class="code"># cd /usr/ports/database/mysql50-client<br/># make<br/># make install<br/># make clean</p>
</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="https://www.blogger.com/atom/22232840/114003368578936640" rel="service.edit" title="High level language" type="application/atom+xml"/>
<author>
<name>LinuxTitli</name>
</author>
<issued>2006-02-16T01:27:00+05:30</issued>
<modified>2006-02-15T20:19:32Z</modified>
<created>2006-02-15T20:01:25Z</created>
<link href="http://www.cyberciti.biz/howto/cookbook/2006/02/high-level-language.php" rel="alternate" title="High level language" type="text/html"/>
<id>tag:blogger.com,1999:blog-22232840.post-114003368578936640</id>
<title mode="escaped" type="text/html">High level language</title>
<content type="application/xhtml+xml" xml:base="http://www.cyberciti.biz/howto/cookbook/" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">This is considered as third-generation language. Programming languages such as C++, Java, Cobol, Fortran, BASIC etc all are examples of high level language. The entire program is written in English like language with some rules and regulation (read as grammar). For example, consider following C program:<br/>
<br/>
<br/>
<pre>main()<br/>{<br/>int x=2;<br/>int y=5;<br/>int c=x+y;<br/>printf("x + y = %d\n",c);<br/>}</pre>OR Basic same program in BASIC:<pre>1 LET x = 2<br/>2 LET y = 5<br/>3 LET c = x+y<br/>4 PRINT c<br/>5 END</pre>Both of above program are easy to read and manage. Genreally you use term called source code for English like language code.<br/>
<br/>Further, the time and cost of creating machine and/or assembly language was quite high. However, a computer cannot understand program written in English. Therefore, you use special program called compiler or interpreter to translate source code to object code:<pre>
<br/>-----------+<br/>Program    |           +-------------+        +-------------+<br/>Written    |           |  Compiler/  |        | Object code |<br/>In         | =======&gt;  |     OR      | =====&gt; | (0s and 1s  |<br/>High level |           | Interpreter |        |  code )     |<br/>Language   |           +-------------+        +-------------+<br/>-----------+</pre>
<br/>
<span style="font-weight: bold;">The difference between Compiler and Interpreter</span>
<br/>
<br/>
<table border="1" width="70%">
<tbody>
<tr>
<td style="text-align: center;" width="50%">
<span style="font-weight: bold;">Compiler</span>
</td>
<td style="text-align: center;" width="50%">
<span style="font-weight: bold;">Interpreter</span>
</td>
</tr>
<tr>
<td width="50%">Scan the entire program first and then translate it into machine code</td>
<td width="50%">Translate the program line by line on fly</td>
</tr>
<tr>
<td width="50%">Scan the entire program first and then translate it into machine code</td>
<td width="50%">Convert the entire program to machine code only when there is no syntax error and then you can execute program</td>
</tr>
<tr>
<td width="50%">Execution time is less</td>
<td width="50%">Execution time is more</td>
</tr>
<tr>
<td width="50%">Slow for debugging</td>
<td width="50%">Good for fast debugging</td>
</tr>
</tbody>
</table>
<br/>
<br/>
<span style="font-weight: bold;">Advantage of High level Language</span>
<br/>
<ol>
<li>Readability</li>
<li>Portability</li>
<li>Ease of debugging</li>
<li>Ease of software development</li>
</ol>
</div>
</content>
<draft xmlns="http://purl.org/atom-blog/ns#">false</draft>
</entry>
</feed>

