[sqlalchemy] Re: mysql, use password from my.cnf file

2015-08-07 Thread Balaji Pattewar
Hi , Iam trying to use from sqlalchemy.engine.url import URL myDB = URL(drivername='mysql', host='localhost', database='my_database_name', query={ 'read_default_file' : '/path/to/.my.cnf' } ) engine = create_engine(name_or_url= myDB) but it is not working form me. The error I am

[sqlalchemy] Re: mysql, use password from my.cnf file

2014-05-16 Thread Anon Define
excellent; thanks! On Monday, September 29, 2008 4:48:18 PM UTC-5, Tom H wrote: Depending on security preferences, it may be desirable to keep database passwords out of code files. One of the recommendations for MySQL is to keep the password in a .my.cnf file accessible only to the user.