C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

Window service Connect Mysql for file monitoring


Posted Date: 27 Aug 2008      Posted By: nishit      Member Level: Bronze     Points: 1   Responses: 1



hi
I created window sevice for file monitoring in C#.and i am using FileSystemWatcher for monitoring changes.

Now i wanna connect with Mysql database for file monitoring.

Can anybody help me how to write that code in my window service.

Thanks in Advanced.





Responses

Author: Pradeep Kumar Chaudhary    27 Aug 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 6

To connect MySql database for file monitoring system please execute below code in an Application manager MySql.

If your application manager is in linux server execute this code:
mysql -h localhost -u root -pappmanager -P 13326 -D AMDB
Where, 13326 is the default MySQL port and this can be checked in
AppManager_Home/conf/AMServer.properties(am.mysql.port) file.

If Applications Manager is running on windows server execute this code:
AppManager_Home\working\mysql\bin\mysql.exe -h localhost -u root -pappmanager -P 13326 -D AMDB

Please try this, I think this will help you for the connection of MySql Server in Application Manager.

Thank you,
-Pradeep



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : datagrid
Previous : How to install AJAX?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use