CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2629|Reply: 13

To Otai MySql + PHP

[Copy link]
Post time 21-1-2008 09:40 PM | Show all posts |Read mode
Salam,

Allo..aku nk tanye la..camne kiter nk copy databse ke database yang berlainan?

Tq.
Reply

Use magic Report


ADVERTISEMENT


Post time 21-1-2008 09:54 PM | Show all posts
yer..ko daripada database mane nak kemana ??
Reply

Use magic Report

 Author| Post time 21-1-2008 10:05 PM | Show all posts
cth :

Database A
Table Nama :
IC            :
Alamat    :


Database B
Table IC  :
Alamt      :
Nama     :


Bile aku try eksport database A..dia akn dump data ikut table nama,ic and alamat...tp camne nk import pi database b ikut table cth kat atas tu?kalo aku import tanpa ubah pe2 die akan isi jer table ic jdk nama,alamat jdk ic,n nama jadk alamat..leh phm ker?huhu

[ Last edited by  jebeng at 21-1-2008 10:06 PM ]
Reply

Use magic Report

 Author| Post time 22-1-2008 01:38 PM | Show all posts
mksd aku...kalo aku import ke database lain..die akan masukkan data ke table mengikut turutan..aku nk solution utk msukkan data ikut table masing2..kalo ade yg otai2 tu mintak tlg skit la..hehehe..bleh ker?
Reply

Use magic Report

Post time 22-1-2008 03:14 PM | Show all posts
apa masalahnya ngan susunan column? sama je ha.. janji masa ko retrieve data tu, ko susun betul ikut turutan
Reply

Use magic Report

Post time 22-1-2008 03:44 PM | Show all posts

Reply #3 jebeng's post

ko gune mysql nyer command prompt ke? aku rase better ko gune sqlyog..free and ade function utk copy database
Reply

Use magic Report

Follow Us
 Author| Post time 22-1-2008 09:23 PM | Show all posts

Reply #5 neotoxin's post

len la..kalo msk data dr database A copy msk database B die akn insert ikut turutan column dari database yg awal2 kite eksport tu..

cth :

Database A
Table Nama :
IC              :
Alamat        :


Database B
Table IC   : nama (database A)
Alamt      : Ic (database A)
Nama       : Alamat (database A)
Reply

Use magic Report

 Author| Post time 22-1-2008 09:29 PM | Show all posts

Reply #6 dCrook's post

kalo bleh aku nk coding utk  synchronize table Database A ke Database B..aku pki joomla...skang ni aku pki AJAXIM n probnye die kene register sekali lg walaupon dh register awal2 dulu...


p/s: ke aku dh memeningkan korg ni?...hehe
Reply

Use magic Report


ADVERTISEMENT


Post time 9-9-2008 04:41 PM | Show all posts
nak tanya la pada semua otai PHP..

camne nak tahu database kita tu jalan ke tak?
sebab aku buat sistem upload files.
tapi takde plak file beruplod kat database.
sedangkan database mcm okey je
Reply

Use magic Report

Post time 10-9-2008 03:33 PM | Show all posts
selalu kalau upload file...just masukkan file name je dlm database, so data takde la besar..

kalau nak tau error ke tak... just letak "echo mysql_error($query)";
Reply

Use magic Report

Post time 19-9-2008 08:57 AM | Show all posts

Reply #10 BorderManager's post

thanks bordermanager

nih nak tanya lagi satu ni.
camne nak create virtual website ek dalam pc kita?
selalu aku guna IIS.

kalau guna apachee camne ek?
Reply

Use magic Report

Post time 19-9-2008 09:43 AM | Show all posts
edit file: /etc/apache2/sites-available/default

NameVirtualHost *
NameVirtualHost domain1.com
<VirtualHost *>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/domain1.com
        <Directory /var/www/domain1.com>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

NameVirtualHost domain2.com
<VirtualHost *>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/domain2.com
        <Directory /var/www/domain2.com>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>
Reply

Use magic Report

Post time 19-9-2008 11:21 AM | Show all posts

Reply #12 BorderManager's post

kat mana nak dapat file tu ek?
nenek ni baru je nak mula blajar guna php dan apachee dan mysql

kalau guna IIS, mcm kt bawah ni
Reply

Use magic Report

Post time 19-9-2008 12:12 PM | Show all posts
lupa la pulak.........aku guna debian server...

kalau window.. cari dlm installation dir... cth C:\Program Files\Apache2\conf\httpd.conf

kalau tak silap la.........
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT


Forum Hot Topic

 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

24-1-2025 04:59 PM GMT+8 , Processed in 0.062108 second(s), 28 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list