Arsip: Cara koneksi dari komputer ke client pake komponen zeos ???

more 18 years ago
doditali
tolonk donk ......
saya pake komponen zeos, gini sourcenya
DMdatabase.ZKoneksi.Protocol := 'mysql'; DMdatabase.ZKoneksi.HostName := '192.168.0.6; DMdatabase.ZKoneksi.Database := 'dataku'; DMdatabase.ZKoneksi.User := 'dodit'; DMdatabase.ZKoneksi.Password := 'password'; DMdatabase.ZKoneksi.Port := 3306; DMdatabase.ZKoneksi.Connect; if DMdatabase.ZKoneksi.Connected then begin edit_hubung.Text := 'Terhubung ke server'; end;source dapat tercompile dengan baik, pada komputer dgn IP 192.168.0.6 di komputer itu sendiri. kalo aplikasi exe itu di jalankan di komputer lain, misalnya di komputer dengan IP 192.168.0.7, tidak dapat tercompile, tapi muncul pesan error "SQL Error: Host '192.168.0.7'is not allowed to connect to this MySQL server" file libmysql.dll saya sudah copy ke komputer dgn IP 192.168.0.7. gimana sich caranya supaya file exe saya dpt berjalan di komputer lain ?? apakah harus pake komponen semacam serversocket dan cliensocket, atau komponen lainnya ?? :( :( help me someone, please

more 18 years ago
doditali
mohon maaf rekan-rekan delphi
setelah merenung, bertapa, sambil jalan bolak balik di kamar saya selama 15 menit, dan akhirnya saya telah mendapatkan wangsit, entah dari mana wangsitnya.
ternyata saya harus grant all semua client !!!
jadi saya buatkan source utk meng grant all semua client, seperti ini :
grant all privileges on . to user@'*%' identified by 'password''; flush all privileges;jadi setelah saya buat source diatas maka komputer dgn IP 192.168.0.7 dpt tercompile dgn baik :wink: :wink:

more 17 years ago
albie
Koq ribet ya, saya pake ADO + MySQL ODBCperasaan mulus, ngga setting apa apa lagi... hmmm...

more 17 years ago
yoebhe
mungkin karena belum bikin username@%? baru bikin username yang @localhost?
CMIIW

more 16 years ago
bt-x_28
bikin aja file seting.ini yang isi nya konfigurasi dari zconnection yang mengacu ke server..trus bikin procedure buat ngambil konfigurasi yang ada di seting.ini tadi..kalo saya sh biasanya bikin seperti itu..

more 16 years ago
ebonk
"SQL Error: Host '192.168.0.7'is not allowed to connect to this MySQL server"Itu kan karena permission MySQL. Saya kutip dari: http://dev.mysql.com/doc/refman/5.0/en/access-denied.html
If the following error occurs when you try to connect from a host other than the one on which the MySQL server is running, it means that there is no row in the user table with a Host value that matches the client host: Host ... is not allowed to connect to this MySQL server You can fix this by setting up an account for the combination of client hostname and username that you are using when trying to connect.

more 16 years ago
yayaretina
selain menambah user @%, coba cek firewallnya.
mungkin IP 192.168.0.6 masih memblok port mysqlnya.
buka port nya dengan menambahkan exception pada port mysql. :)

more 16 years ago
mas_kofa
@ebonk: Kalau firewall, pesan errornya 'Connection refused' dong.Nggak Juga
more ...
- Pages:
- 1
- 2
reply |
Report Obsolete
AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now:
https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 5 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 12 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 12 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 12 years ago
Random Topic
- marhaban ya ramadhan
by LuriDarmawan in OOT more 15 years ago - Cara Tampilin Nomor Halaman Rave Report ....
by sianchan in Tip n Trik Pemrograman more 14 years ago - file gambar ?
by dekos in Tutorial & Community Project more 17 years ago - How to enable/disable LAN from delphi
by j14n6 in Hal umum tentang Pascal Indonesia more 19 years ago - [tanya] hubungan reflexive
by grounders in Tip n Trik Pemrograman more 19 years ago - catastrophic failur
by danish in Lain-lain more 19 years ago - Perintah Explode
by Yudho in Hal umum tentang Pascal Indonesia more 18 years ago - MDI dan Skkin
by keylock in Tip n Trik Pemrograman more 15 years ago - error message
by belajaraja in MySQL more 17 years ago - TLogin 1.0 Standard Edition is now avaliable!
by DelphiExpert in Komersial more 17 years ago