connecting to a remote mysql database from an mfc application
-
hi can anyone point me to the right tutorials or give me a snippet of code to connect to a remote mysql database from an MFC application using ODBC or MySql++ or whatever ? i have checked the tutorials section and found one tutorial that compiled..but it works only for localhost :( Thanks. Kane http://www.coderkane.com[^] "Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
-
hi can anyone point me to the right tutorials or give me a snippet of code to connect to a remote mysql database from an MFC application using ODBC or MySql++ or whatever ? i have checked the tutorials section and found one tutorial that compiled..but it works only for localhost :( Thanks. Kane http://www.coderkane.com[^] "Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
For remote connections, i think you need to add your remote ip to the mysql database table (dont exactly remember which one... check the manual). If it worked for localhost, it should also work for remote host after you have the permission for the remote ip. Hope this helps. - tareq
-
For remote connections, i think you need to add your remote ip to the mysql database table (dont exactly remember which one... check the manual). If it worked for localhost, it should also work for remote host after you have the permission for the remote ip. Hope this helps. - tareq
yes it does..it works fine now...thankx tareq ! -kane http://www.coderkane.com "Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"