| Item | Quantity | Price |
|---|
| Your cart is empty. Check out our collection of 3d models! |
Prices in:
Clear Cart
Home » Forums » Maya Boards » Python » How To Set Up Maya 8.5 And Python Mysqldb Topic 345 of 399
Indeed I have also setup PostgreSQL & MSSql connections from maya. A very sweet python wrapper for sql is http://www.sqlalchemy.org/ Check it out.
Python defiantly makes project management possible inside of maya.
| Item | Quantity | Price |
|---|
| Total | $0.00 (USD) | ||
| Your cart is empty. Check out our collection of 3d models! | |||
Prices in:
Clear Cart
| Name | Downloads |
|---|---|
TrueGlass |
845,788 |
detachSeparate.mel |
837,125 |
The Andy Rig |
617,580 |
Sergio |
467,133 |
LWOImpR4-R5_043 |
431,545 |
Tiny |
339,471 |
Smedge .6 |
208,192 |
Ocean Shader |
183,732 |
silver shader |
179,824 |
At The Sea |
163,197 |
| Name | Contributions | Posts |
|---|---|---|
| humster3d | 2140 | 2 |
| squir | 1295 | 0 |
| Pupuhol | 967 | 0 |
| KanhtArt | 857 | 0 |
| GuamWork | 854 | 0 |
| admin | 778 | 21231 |
| rose studio | 655 | 0 |
| stefano tartarotti | 616 | 0 |
| VKModels | 443 | 1 |
| fileadmin | 424 | 0 |
I saw a post about this previously... I got MySQL connectivity working in Maya 8.5 with python on Win32.
Here's how I did it:
1. found out that Maya 8.5 uses the python 2.4 interpreter
2. downloaded the MySQLdb connector from SourceForge: http://sourceforge.net/project/showfiles.php?group_id=22307
(make sure you grab the Python 2.4 build, "MySQL-python-1.2.2.win32-py2.4.exe")
3. The file you download is a self-extracting archive. I used WinRar to uncompress it to a temporary location
4. Copy the uncompressed files to the "<installPath>\Maya8.5\Python\lib\site-packages" directory
5. Start Maya and run some test code via Python:
dbh = MySQLdb.connect(host = "localhost", user = "root", passwd = "thePassword", db = "someDatabase")
sth = dbh.cursor()
sth.execute ("SELECT NOW()")
row = sth.fetchone()
print "it is ", row[0]
sth.close()
dbh.close()
For Maya on Win64, you'll probably have to find a build of MySQLdb for Win64, or compile it yourself. Use gcc on
Cygwin (for example)
...xelA