Skip to content

Commit

Permalink
Changing Debian Python package from python3-mysqldb to python3-pymysql.
Browse files Browse the repository at this point in the history
This fixes the deprecation warning given when running the `Remove MySQL
test database` task.

Resolves #558
  • Loading branch information
tolecnal committed Dec 16, 2024
1 parent 9f580ee commit d6d1e03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ mysql_enablerepo: ""
(RedHat/CentOS only) If you have enabled any additional repositories (might I suggest geerlingguy.repo-epel or geerlingguy.repo-remi), those repositories can be listed under this variable (e.g. `remi,epel`). This can be handy, as an example, if you want to install later versions of MySQL.

```yaml
mysql_python_package_debian: python3-mysqldb
mysql_python_package_debian: python3-pymysql
```

(Ubuntu/Debian only) If you need to explicitly override the MySQL Python package, you can set it here. Set this to `python-mysqldb` if using older distributions running Python 2.
Expand Down Expand Up @@ -183,7 +183,7 @@ If you want to install MySQL from the official repository instead of installing
name: http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
state: present
when: ansible_os_family == "RedHat"
- name: Override variables for MySQL (RedHat).
set_fact:
mysql_daemon: mysqld
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mysql_enablerepo: ""
# - mysql-server
# - MySQL-python

mysql_python_package_debian: python3-mysqldb
mysql_python_package_debian: python3-pymysql

# MySQL connection settings.
mysql_port: "3306"
Expand Down

0 comments on commit d6d1e03

Please sign in to comment.