Skip to content

Instantly share code, notes, and snippets.

@anthonyray
Last active September 21, 2017 07:46
Show Gist options
  • Select an option

  • Save anthonyray/dd9895504040a0e54278 to your computer and use it in GitHub Desktop.

Select an option

Save anthonyray/dd9895504040a0e54278 to your computer and use it in GitHub Desktop.

Revisions

  1. anthonyray revised this gist Sep 21, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,4 @@ pip install mysql-connector-repackaged
    To check the installation is working
    ```` python
    import mysql
    ```
    ````
  2. anthonyray revised this gist Jan 28, 2015. No changes.
  3. anthonyray renamed this gist Jan 28, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt → gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,6 @@ pip install mysql-connector-repackaged
    ````
    To check the installation is working
    ````python
    ```` python
    import mysql
    ```
  4. anthonyray created this gist Jan 28, 2015.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    I had a hard time installing a python connector to a MySQL database. I tried to install MySQLdb but had problems during compilation.
    Fortunately, MySQL release a connector written in Python. I wanted to install it in a virtual environnement.

    To do so :

    ```
    venv environnement
    cd environnement
    source bin/activate

    pip install mysql-connector-repackaged
    ````

    To check the installation is working
    ````python
    import mysql
    ```