sqlalchemy - How to change OpenStack Ceilometer MySQL reporting password -


have asked question on ask openstack, few views , no responses.

i'm trying use sqlalchemy (basically mysql) driver , have found password driver attempts use set ''. password driver used reporting api, not collection.

i assume default set somewhere, can't find it. have looked through config , setup files, , tried find cfg object created, , traced through debugger.

the reason know it's password problem because when mysql password set other '', driver encounters mysql authentication error. when set database password (in mysql root user) empty, driver can authenticate.

my localrc has mysql_password set 'password', driver can't authenticate when mysql uses password.

anyone know set password driver?

i found it, file ceilometer/storage/__init__.py contains struct called storage_opts. adding similar entry array cause use db of choice:

cfg.stropt('database_connection',            default='mysql://root:password@localhost:3306',            help='database connection string',            ), 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -