I am setting up some testing with pytest-mysql which required me to install the following
apt-get install libmysqlclient-dev
This works fine on my Ubuntu machine, but the CICD servers at my company use Amazon Linux 2/centos rhel fedora which don't use apt. So I used the following command instead
yum install -y mysql-devel python3-devel unixODBC-devel gcc gcc-devel MySQL-python
The following is a copy of the error snippet I'm currently receiving when I run pytest
24-Sep-2022 10:58:12 if errno_num != 0:
24-Sep-2022 10:58:12 err_msg = os.strerror(errno_num)
24-Sep-2022 10:58:12 if errno_num == errno.ENOENT:
24-Sep-2022 10:58:12 err_msg += ': ' + repr(err_filename)
24-Sep-2022 10:58:12 > raise child_exception_type(errno_num, err_msg, err_filename)
24-Sep-2022 10:58:12 E FileNotFoundError: [Errno 2] No such file or directory: 'mysqld': 'mysqld'
24-Sep-2022 10:58:12
24-Sep-2022 10:58:12 /usr/lib64/python3.7/subprocess.py:1551: FileNotFoundError
I can confirm that on Ubuntu machine a search for mysqldb reveals that this file exists as "/usr/sbin/mysqld", but on the CICD machine, nothing is found.
Was hoping someone knew what I am doing wrong here? Why is mysqld missing? Am I installing the mysqlclient incorrectly?
Thanks in advance