create a database on pythonanywhere for excample: Database host adress : mysql.server Username : yourusername Database Name : db1 Password : yourpassword
then go to your database modell db.py and change the default from: db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all']) to: db = DAL('mysql://yourusername:yourpassword@mysql.server/yourusername$yourpassword',pool_size=1,check_reserved=['all']) this should work Am Freitag, 22. August 2014 12:29:07 UTC+2 schrieb Nitin Shrivastav: > I want to host my web2py application on python anywhere with MySQL > database on my domain.how to import MySQL database ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.