I know this forum isn't for databases but I couldn't find a proper one so i post here. (my original post is at forums.mysql.com, but not much seems to be happening there)

can MySQL server be started as a globally accessible server by using libmysqld?

For example, can a application start the server using 'localhost' or '127.0.0.1' and if so, can the databases be accessed using another program - say PHP?

thanks.

I just wanted to add that I have access to mysql source code and I have compiled mysqld.cc into a DLL and when I call the main() or win_main() function from my application - my application crashes.

what would be the correct function to call to start the MySQL server?