Tuesday, May 18, 2010

MySQL - Installation layout

The installation layout of the directory is as shown in the following table:


Directory Contents of Directory
bin Client programs and the mysqld server
data Log files, databases
docs Manual in Info format
include Include (header) files
lib Libraries
man Unix manual pages
mysql-test MySQL test suite
scripts Contains the mysql_install_db script
share/mysql Error message files
sql-bench Benchmarks
support-files Scripts and sample configuration files
/tmp/mysql.sock The location of the MySQL Unix socket

During the package installer process, a symbolic link from /usr/local/mysql to the version/platform specific directory created during installation will be created automatically.

MySQL - Troubleshooting - Can’t connect to local MySQL server through socket /tmp/mysql.sock

Yesterday is a big trouble and very urgent. Do not know why, the are conflict in processing when my previous version for mysql is still running and cannot being kill. It conflict in --port=3306 so the website cannot find the socket.

0:01.14 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --log-error=/usr/local/mysql/data/mdce1corpsvr03.xxx.com.my.err --pid-file=/usr/local/mysql/data/mdce1corpsvr03.xxx.com.my.pid --socket=/var/mysql/mysql.sock --port=3306


I detect it when check it out :

ps xa | grep mysql

ps -aef | grep mysql

the we can check it using:

netstat -ln | grep mysql

What I am doing yesterday is:

kill - 9 PIDNo - cannot
kill -15 PIDNo - the server restarted

so no others choice.

1. first and important - BACKUP the database first!!! and copy in /users/admin folder

mysqldump -p [db name] > [backup.dmp]
 
2. remove the previous version that disturbing the process

sudo rm -rf /usr/local/mysql*

3. install new version of mysql
4. relink the socket

sudo ln -s /var/mysql/mysql.sock /tmp/mysql.sock


5. create and restore the database using mysqldump

mysql> CREATE database xxxxa;
mysql -u #username# -p #xxxxa# < #backup.dmp#

6. set password for -u root

$ mysqladmin -u root password NEWPASSWORD

7. change database name at dbconnect.php



Refering to  :

Info
mysqld, also known as MySQL Server, is the main program that does most of the work in a MySQL installation.

The mysqld program has many options that can be specified at startup. For a complete list of options, run this command:

shell> mysqld --verbose --help 

When connecting to a MySQL server located on the local system, the mysql client connects thorugh a local file called a socket instead of connecting to the localhost loopback address 127.0.0.1. For the mysql client, the default location of this socket file is /tmp/mysql.sock.
 
Link :
http://dev.mysql.com/doc/refman/5.1/en/mysqld.html
http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/

Uninstalling MySQL on Mac OS X Leopard

To uninstall MySQL and completely remove it (including all databases) from your Mac do the following:
  • Use mysqldump to backup your databases to text files!
  • Stop the database server
  • sudo rm /usr/local/mysql
  • sudo rm -rf /usr/local/mysql*
  • sudo rm -rf /Library/StartupItems/MySQLCOM
  • sudo rm -rf /Library/PreferencePanes/My*
  • edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
  • rm -rf ~/Library/PreferencePanes/My*
  • sudo rm -rf /Library/Receipts/mysql*
  • sudo rm -rf /Library/Receipts/MySQL*
The last two lines are particularly important as otherwise, you can't install an older version of MySQL even though you think that you've completely deleted the newer version!

Link :

http://akrabat.com/computing/uninstalling-mysql-on-mac-os-x-leopard/
http://obscuredclarity.blogspot.com/2009/08/uninstall-mysql-on-mac-os-x.html

Unix Post-Installation Procedures

Link :  http://dev.mysql.com/doc/refman/5.1/en/unix-post-installation.html


Starting and Troubleshooting the MySQL Server

Link : http://dev.mysql.com/doc/refman/5.1/en/starting-server.html


How to Protect or Change the MySQL Unix Socket File

Link : http://dev.mysql.com/doc/refman/5.1/en/problems-with-mysql-sock.html - I am not trying this yet.

Monday, May 10, 2010

Lyrics - Gunka Song

This is a Malay song which uses the Gunka song. Aikoku Koushinkyoku is the original track.
It was a famous song taught by Japanese soldiers when they occupied Malaya in 1940s. It was taught to school students. So, some people in Malaysia from the older generation could speak a bit of basic Japanese. Therefore, this song shows evidence of Japanese influence in Malaysian culture.

Miyo toukai no sora akete
Kyoku jitsu takaku kagayakeba
Tenchi no seiki hatsuratsu to
Kibou wa odoru oyashima

Kami tiga sahabat
nasib timbul tenggelam
Susah hanya sekejap
senang pun tak lama ....

No wonder that P.Ramlee, AR tompel, ibrahim din sing it with the amazing pronunciation.

Refer/Link : http://www.youtube.com/watch?v=NdQpSdaOFnA  

Wednesday, April 28, 2010

Website - References 2

For video download:

  1. urtube.tv
  2. vuclip.com
  3. 4shared.com
  4. phazeddl.com

Network - References 1

Need to study more on:
1. Solarwinds
2. Cain
3. Revelation
4. Backtrack

List of default password:
http://www.phenoelit-us.org/dpl/dpl.html

Monday, April 26, 2010

Family : Tips Bersama

Setiap Kali Bersama, 'Abang Pendek' Anda Selalu
'Muntah' Awal Dan Pasangan Anda Tak Puas?

 TIDAK BERCUMBU TERLEBIH DULU
Menurut kajiselidik, 79% dari lelaki Malaysia suka seks spontan (gaya koboi atau seks ekspres). Isteri berharap agar suami mencumbu bibirnya terlebih dulu, bukan tempat lain. Ambil masa untuk bercumbu dengan secukupnya.

PENIUP TELINGA YANG TERLAMPAU
Sepatutnya tiup secara perlahan-lahan. Itu akan mampu membangkitkan rasa berahi. Jangan lakukan seperti meniup lilin harijadi kerana itu akan menyakitkan telinganya.

TIDAK BERCUKUR
Muka lelaki yang tidak bercukur dirasa seperti duri landak oleh isterinya,apatah lagi selepas itu mukanya akan merayap pula ke serata tubuh hingga ke peha. Janganlah rasa seronok melihat isteri memusingkan kepalanya ke kiri atau kanan, itu bukan kerana ghairah tapi untuk mengelakkan kulit mukanya yang halus itu dari dicucuk duri landak.

 MEMICIT PAYUDARA
Ramai lelaki memperlakukan isterinya seperti surirumah menggunakan kedua-dua tangannya memicit tembikai untuk tahu sama ada ia sudah masak atau tidak. Apa yang patut dilakukan ialah mengurut lembut, membelai dan mengusap.

 MENGGIGIT PUTING PAYUDARA
Puting payudara adalah sensitif dan tidak harus diperlakukan seperti mahu meniup pelampung. Jangan dikunyah seperti makan chewing gum. Yang patut dilakukan ialah jilat serta sedut, atau sentuh dengan hujung lidah.

 JANGAN CARI STESEN RADIO
Jangan cari stesen radio menggunakan puting payudara isteri kerana itu akan menyakitkannya. Usah fokus pada puting saja tapi seharusnya pada seluruh payudara.

 ELAKKAN DARI TERUS MENGEBOM
Isteri anda bukan tiga anggota saja (dua bukit satu gua). Seluruh anggota tubuhnya dari rambut ke kaki perlukan belaian anda. Jangan terus pergi mengebom tiga anggota saja.

 GELOJOH SANGAT
Tunggu hingga isteri bersedia dan membuka pakaiannya. Jangan terburu-buru dan gelojoh hingga tangan anda tersepit di pakaian dalam isteri anda.

 BUKAN TONG SAMPAH
Jika anda pakai kondom, ianya bukan hadiah untuk isteri anda. Membuang kondom adalah tanggungjawab suami.

 
JANGAN JADI
 SharpSHOOTER
Isteri bukan untuk diserang secara 'direct', yang patut dilakukan ialah mengurut-urut dengan jari di sepanjang tepinya saja.

MANA ADA TEA-TIME
Jangan sekali-kali berehat pula bila anda melakukan istimta' (foreplay), tubuh isteri perlu sentiasa disentuh agar berahinya tidak turun mendadak.Teruskan rangsangan anda.

 JANGAN JADI INCREDIBLE HULK
Bila membuka pakaian isteri, bukalah dengan kemas sebagaimana anda membuka hadiah yang bernilai.

Ehsan dari kursus perkahwinan anjuran JAWI


Source : Internet

CCNA - Cisco Switch - Enable password

The enable password is similar to the superuser or Administrator password and protects your router. Only after authenticating with this password can you make changes to your device.


To change or set the enable password to PaSsWoRd:
config t
enable secret PaSsWoRd


The enable pasword PaSsWoRd command will also set the enable password, but will leave the password in plain text and visible in the router configuration. This is not affected by the service password-encryption setting.