hello, how to disable the Mysql connection attempt ? I keep on getting the following message: Connection to MySQL server failed(Unknown MySQL Server Host 'host') Cheers ! Thibaut Maquet www.pagasa.net
hello, how to disable the Mysql connection attempt ? I keep on getting the following message: Connection to MySQL server failed(Unknown MySQL Server Host 'host') Cheers ! Thibaut Maquet www.pagasa.net
I which way does it have to do with Sendmail? Alexander -- Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773 legal statement: http://www.**--****.com/ Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.10-1.9_FC2smp Serendipity 18:08:48 up 16 days, 19:39, load average: 0.95, 0.73, 0.58
> I which way does it have to do with Sendmail? The answer is in my log header : Feb 20 10:23:22 home sendmail[7690]: starting daemon (8.12.11/SQL-8.12.11-7): SMTP+queueing@00:15:00 Cheers ! Thibaut Maquet
1.ERROR CLOSING CONNECTION: mysql connection close
I am getting following connection error from my python script: conn.close() AttributeError: adodb_mysql instance has no attribute 'close' Here is my relevant code below: def worker(tq): while True: host, e = tq.get() c = ftplib.FTP(host) c.connect() try: c.login() p = os.path.basename(e) download_dir = r'H:/ftp_download/' ps_dir = r'H:/ftp_download/' filename = download_dir+p fp = open(filename, 'wb') try: c.retrbinary('RETR %s' % e, fp.write) finally: fp.close() finally: c.close() if (p.lower().endswith('.ps') ): partFileName = p.split('.', 1) movedFile = download_dir + p #movedFile = p finalFile = ps_dir + partFileName[0]+'.pdf' encode_cmd = r'ps2pdf '+ movedFile + ' '+ finalFile os.system(encode_cmd) conn = adodb.NewADOConnection('mysql') conn.Connect('localhost', 'temp', 'temp', 'temp') sql = r"update video set pdf_file_path='" +finalFile+r"' where file_path='"+p+r"'" cursor = conn.Execute(sql) rows = cursor.Affected_Rows() cursor = conn.Execute(sql) rows = cursor.Affected_Rows() cursor.close() conn.close() tq.task_done()
2.VO2Ado & MySql connection - a working connection string
Just in case someone is trying to connect with VO through the net using Vo2Ado without DSN: cConn := 'DRIVER={MySQL ODBC 3.51 Driver};UID=username;PASSWORD=password;SERVER=220.245.xxx.xxx;DATABASE=test2 ;' the above seems to work well ( I had problems using a DSN ) Jus thought it may help some, Regards, Tom
Hey guys, I'm using the following code to connect to my remote mysql database. Of course I changed the server, database name, login/pass info, for my posting on the web... //Connect to my database string connectString="DRIVER={MySQL ODBC 3.51 Driver};SERVER=xxx.xxx.xxx.xx;PORT=3306;DATABASE=dbName-myDb;UID=userName;PASSWORD=xxxxxxxxx;OPTION=3"; OdbcConnection connection = new OdbcConnection(connectString); if (connection.State == ConnectionState.Open) { OdbcCommand sqlCommand = new System.Data.Odbc.OdbcCommand("SELECT * FROM October",connection); OdbcDataReader dataReader = sqlCommand.ExecuteReader(); while(dataReader.Read()) Console.WriteLine(dataReader[0]); } Anyway, it never gets into my if statement. Using a debugger I can see that my connection state is closed. I installed the ODBC driver and added my database connection (which it succesfully connects to) to the "Data Sources (ODBC)" component of the administrative tools. What's the problem?
5.Problem with MySQL connection
Hello, I'm trying to get a CreateUserWizard asp component to connect to a MySql Server. I've installed the latest Mysql connector. THep roblem is taht even after modifying web, config to connect to the MySQL server, the ASP.Net application send MS-SQL requests on port 3610 t03618 instead of a MySQL request to port 3306 (but it sends it to the right IP address). default.aspx: <asp:CreateUserWizard ID="CreateUserWizard1" MembershipProvider="userProvider" runat="server"> [...] web.config: <system.data> <DbProviderFactories> <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data,Version=5.0.7.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/> </DbProviderFactories> </system.data> <connectionStrings> <add name="MySqlServer" connectionString="Server=172.16.197.132;Database=ozone;Uid=xxxxx;Password=xxxx;" providerName="MySql.Data.MySqlClient"/> </connectionStrings> <system.web> <membership defaultProvider="userProvider"> <providers> <add name="userProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="MySqlServer" enablePasswordReset="true" passwordFormat="Hashed" requiresUniqueEmail="true" requiresQuestionAndAnswer="false" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="6" passwordStrengthRegularExpression="" description="Looser requirements to create users."/> </providers> </membership> <roleManager enabled="true"/> <authentication mode="Forms"/> <compilation debug="true"> <assemblies> <add assembly="MySql.Data, Version=5.0.7.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/></assemblies></compilation> </system.web> I've tried to add the Driver and Port attributes to connectionString,but the compilations fails on them. Any idea what I did wrong? Thank you
Users browsing this forum: No registered users and 51 guest