Pada umumnya, Apple USB Ethernet Adapter memiliki driver yang langsung klop dengan sistem operasi Mac, namun saya memiliki kesulitan ketika…
Apache Netbeans 11 dirilis pada awal April 2019. Namun untuk MacOS, tidak ada wizard installer yang tersedia di versi ini.…
Saya baru saja update linux ubuntu 14.04 LTS dengan apt-get -y dist-upgrade dan masih dapat versi PHP 5.5.9 dan berniat untuk update…
Awalnya saya terfikir bagaimana untuk me-replace tag <img> menjadi kosong, setelah menggunakan fungsi str_replace() tidak menghasilkan hasil, akhirnya saya menemukan…
Just as note to self: For Backup:
1 2 3 4 5 6 7 8 9 |
<?PHP $dump_path = "/usr/bin/"; //input location for the backup to be saved $host = "localhost"; //db host e.g.-localhost $user = "root"; //user e.g.-root $pass = ""; //your mysql passwprd $dbname = "fauzi-www"; //database name $command= $dump_path . 'mysqldump -h' . $host . ' -u' . $user . ' -p' . $pass . ' ' . $dbname . ' > ' . $dbname . '.sql'; shell_exec($command); ?> |
For Restore:
1 2 3 4 5 6 7 8 9 |
<?PHP $dump_path = "/usr/bin/"; //your backup location $host = "localhost"; //db host e.g.-localhost $user = "root"; //user e.g.-root $pass = ""; // your mysql passwprd $dbname = "fauzi-www"; //database name $command = $dump_path . 'mysql -h' . $host . ' -u' . $user . ' -p' . $pass . ' ' . $dbname . ' < ' . $dbname . '.sql'; shell_exec($command); ?> |
Just as note to self: Enable Regular Expressions and search for: [\r\n] Nuff said.
Dear All, hari ini saya dapat challenge untuk install Apache OpenOffice di server yang berjalan sistem operasi Linux CentOS didalamnya.…