The term martial arts refers to all of the various systems of training for combat that have been arranged or systematized. Generally, these different systems or styles are all designed for one purpose: physically defeating opponents and defending against threats. In fact, the word ‘martial’ derives from the name Mars, who was the Roman god of war.
According to legend, an Indian monk named Bodhidharma facilitated the transmission of Chan (China) or Zen (Japan) to China when he moved to southern China. His teachings lent a lot to martial arts philosophies like humility and restraint that continue even today. In fact, some have credited Bodhidharma with the initiation of Shaolin martial arts, though this assertion has been discredited by many.
Types of Martial Arts: Generally, martial arts can be broken down into five distinct categories: Stand-up or striking styles, grappling styles, low impact styles, weapons based styles, and MMA (A Hybrid Sports Style). Along with this, the emergence of MMA has caused quite a bit of mixing of styles in recent years to the point that a lot of dojos don’t look quite the same as they used to. Regardless, below are some of the more well-known styles.
In Order to add a new user to MySQL server from command-line you have to do the following!
First you have to connect to MySQL server as root
mysql --user=root mysql
After connecting to the server as root you can create new user with CREATE USER command then set privileges by GRANT command.
Let’s create a new user for “administrator” and grant it to all privileges. I uses the ‘%’ wildcard for the host part, so it can be used to connect from any host. If you want to restrict access from other machines you can user ‘localhost’ as host part.
CREATE USER 'administrator'@'%' IDENTIFIED BY 'mypass';
GRANT ALL PRIVILEGES ON *.* TO 'administrator'@'%' WITH GRANT OPTION;
You may know that the Unix timestamp was limited to the years 1970 to 2038. You may ask why you are limited to the years 1970 through 2038. Well, it’s because the original developers of Unix chose the start of the year 1970 as the base date that no programmer should need to go before! The Unix designers also decided that nobody would be using Unix after about 70 years or so, and therefore believed they could get away with storing the timestamp as a 32-bit value—which will run out on January 19, 2038! This will create what has come to be known as the
Y2K38 bug (much like the millennium bug, which was caused by storing years as two-digit values, and which also had to be fixed). We have to hope it will all be solved well before we get too close to that date.
Now each time you press the button all odd rows will collapse . Note that you have to set your table id to “TheTable” & also set classes of odd rows to “odd”.
If you want to run a MySQL server on you local network, you can disable name resolve feature in order to get faster connection (Up to 10x faster). Remember that after disabling name resolve you have to enter your server IP address each time you want to use it.
Ok, follow me if you want faster connection:
Open your MySQL config file. /etc/my.cnf
Find [mysqld] and insert following string below it
skip-name-resolve
Here is an example [mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
skip-name-resolve
Here is a PHP code in order to view table in HTML format from MySql database, As one knows you have to place this code in php tag (<?php … ?>) in order to execute it.
print "<TABLE BORDER=0 CELLPADDING=2>\n";
$fields = mysql_list_fields("DATABASENAME", "YOURSQLTABLENAME");
$columns = mysql_num_fields($fields);
print "<TR>";
for ($x = 0; $x < $columns;$x++ ) {
print "<TH>" . mysql_field_name($fields,$x) . "</TH>\n";
}
print "</TR>\n";
$sql = "SELECT * from YOURSQLTABLENAME";
$result = mysql_query($sql);
while ($obj = mysql_fetch_object($result,MYSQL_ASSOC)) {
print "<TR>";
foreach($obj as $val) {
print "<TD>" . $val . "</TD>";
}
print "</TR>\n";
}
echo "</TABLE>\n";