Closed hamid-elaosta closed 4 years ago
Upon further investigation, it appears that the tool is creating my user in the database as "opensips@192.168.1.201".
I ran the exact same command as before, after dropping the user and database manually, but the output this time was different, I've just included the pertinent part;
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (2006, "Access denied for user 'opensips'@'172.31.31.1' (using password: YES)")
(Background on this error at: http://sqlalche.me/e/e3q8)
This of course is incorrect, I'm connecting to the database remotely, so I need to be able to specify the 'user@host' which is created for opensips
user otherwise I cannot connect remotely.
hey, @hamid-elaosta ! Thanks for the report, this should now be fixed by c7b3a2f
@liviuchircu Amazing, thanks! :partying_face:
I'm running this inside a Docker container running Ubuntu 18.04 and OpenSIPs 3.0.2-1 from
apt.opensips.org
. opensips-cli is from master.Why is it trying to connect to the local mysqld.sock?
After this error, if I inspect the database I have an
opensips
user and anopensips
database with no tables.My goal is to replace
opensipsdbctl create
which I was running from an automated script, and using the credentials from ENV.