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

 
user image
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
user image
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:
user image
more 17 years ago

albie

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

yoebhe

mungkin karena belum bikin username@%? baru bikin username yang @localhost? CMIIW
user image
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..
user image
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.
user image
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. :)
user image
more 16 years ago

ebonk

Kalau firewall, pesan errornya 'Connection refused' dong.
user image
more 16 years ago

mas_kofa

@ebonk: Kalau firewall, pesan errornya 'Connection refused' dong.
Nggak Juga
user image
more 16 years ago

MrLee

solusi udah dapat yg komentar makin banyak :D
more ...
  • Pages:
  • 1
  • 2
Share to

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

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com