mysqlconnection

How to make mySQL database at my local accessible from different machines?

怎甘沉沦 提交于 2019-12-01 11:54:11
I have mySQL installed at my Windows system which I connect using mySQL Query Browser. I am giving training and I want people to be able to connect to my machines SQL Database How do I do that? Currently its not allowing the connections. What settings do I need to modify? STEP 1: Check IP connectivity By default it only allows connections from 127.0.0.1. Are you using windows or linux? Open my.cnf and change bind address to your network IP. [mysqld] user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir

Using MySQLConnection in C# does not close properly

对着背影说爱祢 提交于 2019-11-27 15:01:37
Final solution: The connection was added to the connection pool. So I closed it, but it still remained physically open. With the ConnectionString Parameter "Pooling=false" or the static methods MySqlConnection.ClearPool(connection) and MySqlConnection.ClearAllPools the problem can be avoided. Note that the problem was, that the connection was still alive when I closed the application. Even though I closed it. So either I don't use connection pooling at all or I clear the specific pool before closing the connection and the problem is solved. I'll take my time figuring out what's the best

Using MySQLConnection in C# does not close properly

风格不统一 提交于 2019-11-26 17:49:17
问题 Final solution: The connection was added to the connection pool. So I closed it, but it still remained physically open. With the ConnectionString Parameter "Pooling=false" or the static methods MySqlConnection.ClearPool(connection) and MySqlConnection.ClearAllPools the problem can be avoided. Note that the problem was, that the connection was still alive when I closed the application. Even though I closed it. So either I don't use connection pooling at all or I clear the specific pool before