Showing posts with label database. Show all posts
Showing posts with label database. Show all posts
Saturday, June 3, 2017
Django with Python 3 and MySQL database
Django with Python 3 and MySQL database
I read many folks are having problems using MySQL db driver with Python 3, especially when setting up a Django app. The default Django 1.6.5 is only supporting the MySQLdb driver and that only works with Python 2.
I have been using mysql-connector-python package with Python 3 and it has built-in django support as well. I had ran into trouble like this http://bugs.mysql.com/bug.php?id=73232, but it is fixed now with the latest mysql-connector-python 1.2.3 release. The mysql-connector-python also works with Python 2.7 as well, and its a pure python library without native code, which makes the install much easier.
When installing mysql-connector-python, ensure you allow external hosted files like this
pip install --allow-all-external mysql-connector-python
If you are behind a firewall, use the proxy option
pip install --proxy my_proxy_server --allow-all-external mysql-connector-python
With these, now you can set your Django settings.py file with MySQL engine
DATABASES = {
default: {
ENGINE: mysql.connector.django,
NAME: mydb,
USER: myuser,
PASSWORD: mypassword,
}
}
PS: My initial testing with Django 1.7 also works pretty well with mysql-connector-python. How sweet!
UPDATE 07/15/2015:
The django 1.8 documentation now recommends using mysqlclient package if you want to use Python3 with MySQL backend. It should be a drop in replacement for MySQLdb.
Friday, April 14, 2017
Ditch Oracle Database for free with DB2 Express C
Ditch Oracle Database for free with DB2 Express C

Oracle compatibility feature is now part of the free DB2 Express-C edition.
Serge Rielau wrote up a fantastic article on running your Oracle applications on DB2 10. All of it applies to DB2 Express-C.
Next steps
- Download DB2 Express-C 10
- Run your Oracle applications on DB2 10
- Learn DB2 at Big Data University
Thursday, April 13, 2017
Discussion on Online database issues
Discussion on Online database issues
![]() |
From 201110217 Onlinedatabase Discussion |
Discussion on Online database issues
Date : 17 Feb 2011
Location : Discussion Area, JPSTM, Level 2, Tun Abdul Razak Library 1 (PTAR 1), UiTM Shah Alam.
Time: 10.45 am
Firsrt session : CLJ LAW - SyedMA
Time: 3.30 pm
Second session : Westlaw-Thomsonreuters.com-
Ismail Abdullah, Siti Hajar Othman, Lim Phaik Choo,
Kalvinder Kaur
Library represent by Nurul Diana from JPJPD, Ahmad Faizar from JPSTM , Cik Syakirah from PTAR2 and Ezianti from Network PSMB
On-Campus Access : Most online databases are accessible by direct login requiring no authentication or password via ip address authentication
http://library.uitm.edu.my/v1.0/eresources/index.html
Off-Campus Access: Access to most online resources outside the University network is available through one of the following methods: EZaccess.via ezacces using ezproxy
http://ezaccess.library.uitm.edu.my/ Students and staff need to enter EZaccess ID and password.
ENQUIRIES
If you require any assistance in the use or access of the online databases subscribed by UiTM Library, please contact our staff at:
Reference Desk (Tun Abdul Razak Library) Tel : 03-5544 3714 or
Information Service Department Tel : 03-5544 3712 / 3713 or
Faculty Liaison Officers or Send an email
For other questions, please check the Librarys FAQ
Information Service Department Tel : 03-5544 3712 / 3713 or
Faculty Liaison Officers or Send an email
For other questions, please check the Librarys FAQ
Labels:
database,
discussion,
issues,
on,
online
Subscribe to:
Posts (Atom)
