MariaDB config file not found
See original GitHub issueDescribe the bug Working on setting up a production environment on a fresh install of ubuntu 20.04.3. Went thru the steps listed on the readthedocs site (using mysql/MariaDB). When I enter the “pip3 install mysqlclient mariadb” command (in the virtual environment) I get the following …
` (env) inventree@Meta:~$ pip3 install mysqlclient mariadb Collecting mysqlclient Using cached mysqlclient-2.1.0.tar.gz (87 kB) Collecting mariadb Using cached mariadb-1.0.8.zip (85 kB)
ERROR: Command errored out with exit status 1: command: /home/inventree/env/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-xibnrply/mariadb/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-xibnrply/mariadb/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ egg_info --egg-base /tmp/pip-install-xibnrply/mariadb/pip-egg-info cwd: /tmp/pip-install-xibnrply/mariadb/ Complete output (17 lines): /bin/sh: 1: mariadb_config: not found Traceback (most recent call last): File “<string>”, line 1, in <module> File “/tmp/pip-install-xibnrply/mariadb/setup.py”, line 26, in <module> cfg = get_config(options) File “/tmp/pip-install-xibnrply/mariadb/mariadb_posix.py”, line 59, in get_config cc_version = mariadb_config(config_prg, “cc_version”) File “/tmp/pip-install-xibnrply/mariadb/mariadb_posix.py”, line 28, in mariadb_config raise EnvironmentError( OSError: mariadb_config not found.
Please make sure, that MariaDB Connector/C is installed on your system.
Either set the environment variable MARIADB_CONFIG or edit the configuration
file 'site.cfg' and set the 'mariadb_config option, which should point
to the mariadb_config utility.
The MariaDB Download website at <https://downloads.mariadb.com/Connectors/c/>
provides latest stable releease of Connector/C.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ’
I am somewhat new to python env so I’m unsure of where to look for the specified config files or how they relate to the environment variables.
Expected behavior Unsure of expected behavior, When I move on to the next steps (creating database and user within MySQL) the database is created but I get the following when trying to grant permissions…
’ mysql> CREATE USER ‘inventree’@‘%’ IDENTIFIED WITH mysql_native_password BY ‘doors2021!’; Query OK, 0 rows affected (0.12 sec)
mysql> GRANT ALL ON inventree.* TO ‘djangouser’@‘%’; ERROR 1410 (42000): You are not allowed to create a user with GRANT ’
Deployment Method
- Bare Metal - Ubuntu 20.04.3
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Related StackOverflow Question
Did you complete this step?
RELATED: fresh install on debain 10.
Getting this syntax error when i input create user command