ssh
SSH login without password
You set up a cron job and searching for -p parameter to pass ssh, for auto login. There is no such parameter. But there are many mechanisms to allow us authonize throgh.
Removing old RSA host key to be able co connect remote host
My konqueror refused to connect because the client changed the server. Thus ip address and some other minor changes changed the RSA key required to connect my remote server.
max_allowed_packet size
Büyük bir import yapıyorsanız, site taşıyorsanız mysql sızlanabiliyor.
ERROR 1153 (08S01) at line XXX: Got a packet bigger than 'max_allowed_packet' bytes
Veritabanındaki tabloları kaldırmak
Sık sık "ERROR 1153 (08S01) at line 3850: Got a packet bigger than 'max_allowed_packet' bytes" hatası aldığım bir işlem yüzünden eklenmiş olan tabloları düşürmek istedim.
Mysql'den veritabanı yapısını almak
Sadece veri tabanı yapısını çıkartmak istiyorsanız. Ve phpMyadmin kullanamıyorsanız (ki ayarlanabilir bir çok özelliğe erişemiyorsunuzdur), mysqladmin yardımınıza koşabilir:
Mysqlden backup almak
Zora düşünce MySqlDump kullanmak lazım. Nasıl backup alınır ve nasıl restore edilir. (Server'de bir ssh account yada mysql'in uzaktan erişime açık olması lazım!)
Similar
New technique to win olimpics
At the 1968 Olympics, Dick Fosbury took the athletics world by surprise with an unusual high-jump technique.
Printing mysql_error
This is a code snipped to print mysql error.
If there is no error mysql_error returns null, thus if evaluates false and there is no output.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
php unlink recursive
The shortest recursive delete possible.
<?php
/**
* Delete a file or recursively delete a directory
*
* @param string $str Path to file or directory
*/






