Menu

call mysql python from a different machine

Help
Lisca75
2005-12-05
2012-09-19
  • Lisca75

    Lisca75 - 2005-12-05

    Hi,
    I've this problem, that at the moment, I am not able to solve:
    I've two pc, one is just for computation and the other is just for storage. MySql is installed on the second, but all the software will be installed on the first machine. So in the first machine I will have my software which uses MySqlPython.
    Where must I install MySqlPython? What must I do to connect my sw to MySqlPython and then to MySql??

    thanks a lot

    Marco

     
    • Andy Dustman

      Andy Dustman - 2005-12-05

      MySQL-python needs to be on the MySQL client side; it does not need to be on the MySQL server side.

       
    • Lisca75

      Lisca75 - 2005-12-06

      Hi,
      I try to install Mysql-python on the client side, but when I run python setup.py build I obtain a list of warnings and errors.
      I change the enviroment variable mysqlclient using all the possible value, but it's the same.
      I attach some errors:

      _mysql.c: In function _mysql_NewException': _mysql.c:2629: error:PyObject' undeclared (first use in this function)
      _mysql.c:2629: error: e' undeclared (first use in this function) _mysql.c:2631: error:edict' undeclared (first use in this function)
      _mysql.c:2631: error: name' undeclared (first use in this function) _mysql.c:2633: error:dict' undeclared (first use in this function)
      _mysql.c: At top level:
      _mysql.c:2652: error: syntax error before "init_mysql"
      _mysql.c: In function init_mysql': _mysql.c:2654: error:PyObject' undeclared (first use in this function)
      _mysql.c:2654: error: dict' undeclared (first use in this function) _mysql.c:2654: error:module' undeclared (first use in this function)
      _mysql.c:2654: error: emod' undeclared (first use in this function) _mysql.c:2654: error:edict' undeclared (first use in this function)
      _mysql.c:2656: error: syntax error before ')' token
      _mysql.c:2658: error: request for member ob_type' in something not a structure or union _mysql.c:2658: error:PyType_Type' undeclared (first use in this function)
      _mysql.c:2659: error: request for member ob_type' in something not a structure or union _mysql.c:2671: error:Py_eval_input' undeclared (first use in this function)
      _mysql.c:2678: error: syntax error before ')' token
      _mysql.c:2682: error: syntax error before ')' token

      thank a lot
      Marco

       
      • Andy Dustman

        Andy Dustman - 2005-12-06

        Wherever you compile MySQL-python, you must have the MySQL development package installed, and you evidently do not in this case.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.