Archive

Posts Tagged ‘work’

MySQL Connector/Python 1.0.10 available for download

May 14th, 2013 No comments

Last week we released MySQL Connector/Python v1.0.10. Release notes can be found in the MySQL Developver Zone.

A notable fix in Connector/Python v1.0.10 which might interest a few users is adding support for LOAD DATA LOCAL INFILE. It allows you to import CSV using a simple SQL statement.

Please use the MySQL Bugs website to report any problem.

Some useful links:

Enjoy!

MySQL Connector/Python 1.0.9 available for download

February 26th, 2013 7 comments

Today we released MySQL Connector/Python v1.0.9. Release notes can be found in the MySQL Developver Zone.

Connector/Python v1.0.9 contains some important fixes, especially for the Windows platform. It also comes with a new connection argument called force_ipv6, and can be used to force IPv6 when an address resolves to both IPv4 and v6. Also, RPM packages have been made available in addition to the TAR/ZIP and MSI packages.

Please use the MySQL Bugs website to report any problem.

Some useful links:

Enjoy!

Using printf format %P with find in RPM spec file

February 4th, 2013 No comments

While creating a spec file for an RPM, I needed to generate the list of files installed by the RPM. Solution is simple, use the UNIX command find. Right..

My first attempt was the following:

%install
# copy the files
( cd %{buildroot} ; find -type f -print "/%P\n" ) > INSTALLED_FILES

If you do the above, you’ll find that all entries in INSTALLED_FILES are wrong: file name have ‘ATCH’ at the end. Why is this? Because %p is a special macro in RPM spec files.

You can try to escape %P in an RPM spec file. If you manage that, let me know, I couldn’t.

Here is the solution I came up with after lots of hacking: it defines the pattern used in the find command as a macro.

%define findpat %( echo "/%""P" )

%install
# copy the files
( cd %{buildroot} ; find -type f -print "%{findpat}\n" ) > INSTALLED_FILES

I hope you never have to do this though.

Tags: ,

MySQL Connector/Python 1.0.8 available for download

December 25th, 2012 4 comments

Last week we made a maintenance release for MySQL Connector v1.0 available. The announcement can be read in the MySQL forums and the history log is available online.

Connector/Python v1.0.8 does not introduce anything new, it only comes with bug fixes. Some are quite important and it’s probably good to upgrade.

Please use the MySQL Bugs website to report any problem.

Some useful links:

Happy holidays! Hope you don’t get a bad cold like we did at home..

MySQL Connector/Python v1.0.6 beta available

September 8th, 2012 No comments

We released the second beta of MySQL Connector/Python v1.0. You can download v1.0.6 from the MySQL website and the change history can be found in the online manual.

Usually, beta releases do not have big changes, but we had to push some code which did not make the previous one and it really had to go into v1.0. The exceptions raised by Connector/Python are now mapped against the ‘SQLState’ found in the MySQL server errors. This makes it much easier to maintain and clearer which exception can be expected. It is, however, possible to override how errors are raised using the custom_error_exception() function of the errors module.

We are also preparing our connector to support Python v3.3 which has now a release candidate out. Maintaining compatibility between minor Python v2 releases is a chore; keeping up with Python v3.x changes ain’t easy either.

This beta comes with a MSI distribution for Python v2.7. This hopefully makes it easier for Windows users to install Connector/Python since no shell has to be opened.

Some useful links:

Enjoy!

MySQL Connector/Python 1.0.5 beta available through PyPI

August 8th, 2012 3 comments

Yesterday we announced the availability of MySQL Connector/Python v1.0.5 beta. Today I’ve made it available on PyPI so it can be easily installed. Note that I did remove the old development release and when you upgrade or try v1.0.5, you should check the ChangeLog.

shell> pip install mysql-connector-python

For those wondering why the name includes ‘python’: it’s just to align it with other MySQL connectors and to keep the name consistent with other distribution types.

We welcome and appreciate feedback and comments for this first beta release through the forum and the MySQL Bugs database.

My New Job at Oracle: Working on MySQL Connector/Python

October 28th, 2011 13 comments

After more than 6 years doing MySQL Support for MySQL AB, Sun Microsystems, and Oracle, it’s time for a change. Time to get back to development!

As of November 2011 I’ll be working full-time on MySQL Connector/Python and other goodies within the MySQL development team at Oracle. Before, this was more or less a pet project done after working hours. However, with the birth of our son Tomas more than a year ago, I’ve been slacking and family got priority.

The idea is to make MySQL Connector/Python the best choice for connecting to MySQL from within your Python code. We still got a long road ahead of us, but I’m confident that we are on the right track.

Visiting Amsterdam and Leiden

July 20th, 2006 3 comments

Last year I visited Utrecht where we installed some MySQL Cluster. This week I had the chance to attend a training (again MySQL Cluster) in Leiden. Tuesday I had a good excuse to visit Amsterdam and next day Leiden.

Both Amsterdam and Leiden have all these canals which were preserved unlike in Brussels where they actually made the river run under the city (stupid).. I did in both cities a tour on the water but Leiden won. I guess it was more romantic and I had lots of colleagues on the boat too.

One can actually get easy lost in Leiden, or I guess everywhere, but I just lost my colleagues whiles looking at some vinyl shops and old turntables (drool). That was the start of some 3 hours of interesting stuff..

Tomorrow I leave The Netherlands again for Germany after spending some weeks with my family in Belgium. I wonder how cluttered my mailbox is going to be.

(pictures will be posted later for those that care..)

Tags: , ,

Talking at FrOSCon06

May 16th, 2006 2 comments

I’ll be giving a talk about MySQL Cluster at FrOSCon 2006, http://www.froscon.de, on Saturday 24th of June. It’s going to be an Introduction focusing on MySQL 5.0 and new features in 5.1.

MySQL AB has 3 talks there. My colleague Lenz will do the other two about Administrating MySQL and the MySQL Business Model.

Here is the schedule: http://programm.froscon.de/.

Tags: , ,

C++ Annotations

May 16th, 2006 No comments

There are a billion or a bit less websites out there discussing C/C . There are millions or a bit less books out there about C/C . But the one I like a bit more is this:

http://www.icce.rug.nl/documents/cplusplus/

Good to refresh your knowledge a bit if you like me only did it at school, and now you have to start using C .

Tags: ,