[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-8818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15072699#comment-15072699
 ] 

ASF GitHub Bot commented on CLOUDSTACK-8818:
--------------------------------------------

GitHub user wido reopened a pull request:

    https://github.com/apache/cloudstack/pull/1054

    CLOUDSTACK-8818: Use MySQL native connector with Python

    MySQLdb has been deprecated and is also not supported in Python 3.
    
    mysql.connector is a connector written in Python which talks the
    native MySQL protocol without any external code.
    
    https://dev.mysql.com/doc/connector-python/en/

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wido/cloudstack CLOUDSTACK-8818

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1054.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1054
    
----
commit 4a90b2e1124778c624a71e43bd0c3bc74733d096
Author: Wido den Hollander <w...@widodh.nl>
Date:   2015-11-10T08:04:48Z

    CLOUDSTACK-8818: Use MySQL native connector with Python
    
    MySQLdb has been deprecated and is also not supported in Python 3.
    
    mysql.connector is a connector written in Python which talks the
    native MySQL protocol without any external code.
    
    https://dev.mysql.com/doc/connector-python/en/

----


> Python scripts should depend on mysql.connector instead of MySQLdb
> ------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8818
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8818
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Wido den Hollander
>              Labels: mysql, python, python3
>
> Our current Python scripts depend on MySQLdb for MySQL connections.
> The best way to go is the native mysql.connector which implements the MySQL 
> protocol in native Python instead of depending on external libraries.
> It would be best if we drop MySQLdb and use mysql.connector since that also 
> supports Python 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to