You are here

Mysql Important commands

Log mysql commands and output in a text file
mysql --tee=file_name.txt -u user -ppassword database_name

Log mysql output in a html file
mysql --html --tee=file_name.html -u root -ppassword database_name ;

Start mysql without normal introduction use -s switch s for silent.
mysql -u root -ppassword -s

Start mysql or change datables quick with -A switch.
mysql -u user -ppassword -A database_name;

>> operator will add at the end of the line.
echo not_to_be_tracked.file >> .gitignore

How to add matadata keywords in drupal 7.

How to add matadata keywords in drupal 7.
The example code is as follows.

Mysql Database Master Slave Replication

Basic steps for the mysql database master slave replication (Tested on ubuntu).

1. Configure one server to be a master.
2. Configure one server to be a slave.
3. Connect the slave to the master.

Configure The Master

To configure a server to act as master it needs active binary log and a unique server ID. Configuration changes will go in the file located at:
/etc/mysql/my.cnf
server-id = 1
log-bin = master-bin
log-bin-index = master-bin.index

Comment out the line bind-address = 1.27.0.0.1

Git Introduction Part One

Git Introduction Part One

Drupal 6 Theme Development Part Three

In this series of videos I will convert a HTML & CSS based static theme in to Drupal 6 theme. You can view the slide show with google docs and download Code of the Presentation from github.com

Drupal 6 Theme Development Part Two

In this series of videos I will convert a HTML & CSS based static theme in to Drupal 6 theme. You can view the slide show with google docs and download Code of the Presentation from github.com

Drupal 6 Theme Development Part One

In this video I talk about Drupal 6 theme development.

Drupal Module Development Part I

In this video I talk about variables and arrays.

Drupal Module Development Part II

In this video I talk about functions.

Drupal Module Development Part III

In this Video I define a function to extract the information from google's weather api.

Pages

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer