upload table to existing database inside server ..table name is earning, database is democrm
mysql -u root -p democrm < /home/synnet/earning.sql
upload a database to target server..database name is democrm
mysql -u root -p < /home/synnet/democrm.sql
dump or backap database inside server..database name is democrm
mysqldump -u root -p democrm > /home/synnet/democrm_backup.sql
dump or backup just a certain table in da database..table name is invoice inside database democrm
mysqldump -u root -p democrm invoice > /home/synnet/invoice_backup.sql
backup all database inside server
mysqldump -u root -p --all-databases > /home/synnet/alldbase_backup.sql
restore database..database name is democrm
mysql -u root -p democrm < /home/democrm/democrm_backup.sql
to restore a database that already exists..
mysqlimport -u root -p democrm democrm_backup.sql
reference : http://www.webcheatsheet.com/SQL/mysql_backup_restore.php
Showing posts with label PHP programming info. Show all posts
Showing posts with label PHP programming info. Show all posts
Tuesday, February 15, 2011
Thursday, November 11, 2010
PHP calendar...
Seperti yang dijanjikan, kali nie saya nak share jugak some info about php calendar..ni link nya..
Link yg saya bg kat atas tu adalah link yg saya guna untuk belajar php calendar..dan dier juga bg semua details macam mana kita nak plug in calendar tu dalam sistem or application yg kita develop, baca semua documentation yg ada dlm website tu dan ikut satu persatu..
Lagi best, siap dier nyer error during installation pon diorg stated kan dan jugak punca masalah..serta cara untuk fix the error..:)
Jangan salah paham yer, calendar yg saya cuba sampaikan nie, bukan javascript yg kita slalu plug in untuk pilih tarikh ke apa yer..ini php calendar merupakan satu application untuk kita uruskan jadual harian kita, macam diari gitu kaedahnya..;p so setiap hari kita akan catatkan apa agenda untuk hari ni, apa jadual harian kita, dgn siapa akan kita ketemu, jadi dlm ini calendar kita bole uruskan jadual masa kita dgn baik. Kita jugak bole padam (delete) dan kemaskini (update) jadual yg telah dibuat. Saya rasa link dan contoh yg saya bagi ne paling mudah paham dan senang nak setup even dlm server..sebab setiap kali saya buat bende baru, saya akan terus test di server samada mampu run tanpa error atau tidak dan setakat ini okla dan mase mula2 setup dulu mmg ada error tp saya bole fix..masalah kadang2 akan timbul bilamana di 'localhost' ok tp bila run di server tiba2 ada mcm2 'error' dan 'bugs' yang pelik..dan ini jam jugakla baru nak check kat documentation what are the exact requirement to run this application inside the server..tula penting untuk kita pahamkan pertama tama 'installation guide' nyer..
![]() |
| the calendar GUI |
![]() |
| Login page |
![]() |
| add event |
![]() |
| admin manage user |
![]() |
| search |
jadi..selamat mencuba..:)
** time kacih yer cikgu faizal..kasi ini link..tengssss :)
Wednesday, November 10, 2010
PHP graph and charts..
Meh cni kita sharing caring info on php programming..how to create a charts and graph in php..
Dalam php programming, kita bole buat chart and graph untuk represent report yg kita generate from table inside the database. Ada macam2 jenis graph and charts yg kita bole cipta contohnya..line,column,bar,pie,area,scatter,polar and also composite chart..jadi pilih chart or graph bersesuaian dgn report anda..
Sebelom pilih mana2 chart tu,baca dulu tutorial yg disediakan..baca info sampai benar2 paham then we proceed..follow step by step to create the chart..contoh,saya follow this link, http://www.maani.us/charts/index.php to create my chart..kat cni saya lebih mudah paham..:)
Dekat link nie,semua info disediakan,hanya baca dan pahamkan..kat bawah saya ada highlight yg mana penting iaitu basic info, requirement and download..lepas dah folow this 3 step then we can create our own charts and graph.
Basics
1. Download XML/SWF Charts, decompress the download package, and place the following files in the same directory anywhere on your web server:
* charts.swf
* charts_library
* AC_RunActiveContent.js
* sample.html
* sample.xml
2. Download - XML/SWF Charts 5.111
Pick any package below to download XML/SWF Charts:
* charts.sit - 444K
* charts.tgz - 428K
* charts.zip - 435K
-kene download ini package dulu.
3. Requirements (Keperluan)
XML/SWF Charts requires a web browser with Flash Player 10 or later.
-kene install ini flash player la,baru chart or graph bole display..
![]() |
| Ni contoh link yg saya refer untuk buat graf |
![]() |
| ini contoh column chart |
![]() |
| Pie chart |
![]() |
| Bar chart |
Kat cni saya share another link yg bole buat further reference..
free :)
http://jpgraph.net/
http://graphpite.sourceforge.net/
http://www.jpowered.com/php-scripts/adv-graph-chart/
http://www.zedgraph.org/wiki/index.php?title=Sample_Graphs
kene bayar rasanya..;p
http://www.phpcharting.com/
http://www.fusioncharts.com/
enjoysss..
**saya pon masih belajar nie...kalo ada mau share info,why nott!!;p..later saya akan share pasal php calendar plak..:)
Subscribe to:
Posts (Atom)








