published by dkiscool on Wed, 02/08/2012 - 11:59
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
published by dkiscool on Wed, 12/28/2011 - 06:39
How to add matadata keywords in drupal 7.
The example code is as follows.
published by dkiscool on Sat, 06/25/2011 - 13:32
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
published by dkiscool on Wed, 06/22/2011 - 14:42
Git Introduction Part One
published by dkiscool on Mon, 06/20/2011 - 15:16
published by dkiscool on Mon, 06/20/2011 - 01:57
published by dkiscool on Mon, 05/16/2011 - 13:20
In this video I talk about Drupal 6 theme development.
published by dkiscool on Tue, 04/05/2011 - 23:58
In this video I talk about variables and arrays.
published by dkiscool on Tue, 04/05/2011 - 23:57
In this video I talk about functions.
published by dkiscool on Tue, 04/05/2011 - 23:55
In this Video I define a function to extract the information from google's weather api.
Pages