Re: rb-site and mysql socket
If you have used 'localhost' as DB host, then, default socket will be /var/lib/mysql/mysql.sock If the real host name is used instead, things should be fine. On Tuesday, 10 August 2010 01:32:56 UTC+5:30, freetonik wrote: Hello! rb-site script tries to use '/var/lib/mysql/mysql.sock' socket by default. I cannot figure out how to tell it to use another file? (I don't have root access, so I cannot create symlink from '/var/lib/ mysql/mysql.sock') Mysql's my.cnf file is configured, but python-mysql still doesn't care. -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups reviewboard group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: rb-site and mysql socket
Hi, We go through Django for all the database connectivity, so we don't actually have much control over this. What socket should it be using? Can you show me the exact output when running rb-site? Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Mon, Aug 9, 2010 at 1:02 PM, freetonik freeto...@gmail.com wrote: Hello! rb-site script tries to use '/var/lib/mysql/mysql.sock' socket by default. I cannot figure out how to tell it to use another file? (I don't have root access, so I cannot create symlink from '/var/lib/ mysql/mysql.sock') Mysql's my.cnf file is configured, but python-mysql still doesn't care. -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: rb-site and mysql socket
* Installing the site... Building site directories ... OK Building site configuration files ... OK Creating database ... Traceback (most recent call last): File /project/radio_ott/Python/bin/rb-site, line 7, in ? sys.exit( File /project/radio_ott/Python/lib/python2.4/site-packages/ ReviewBoard-1.5rc1-py2.4.egg/reviewboard/cmdline/rbsite.py, line 1604, in main command.run() File /project/radio_ott/Python/lib/python2.4/site-packages/ ReviewBoard-1.5rc1-py2.4.egg/reviewboard/cmdline/rbsite.py, line 1170, in run self.show_install_status() File /project/radio_ott/Python/lib/python2.4/site-packages/ ReviewBoard-1.5rc1-py2.4.egg/reviewboard/cmdline/rbsite.py, line 1429, in show_install_status site.sync_database) File /project/radio_ott/Python/lib/python2.4/site-packages/ ReviewBoard-1.5rc1-py2.4.egg/reviewboard/cmdline/rbsite.py, line 696, in step func() File /project/radio_ott/Python/lib/python2.4/site-packages/ ReviewBoard-1.5rc1-py2.4.egg/reviewboard/cmdline/rbsite.py, line 332, in sync_database self.run_manage_command(syncdb, params) File /project/radio_ott/Python/lib/python2.4/site-packages/ ReviewBoard-1.5rc1-py2.4.egg/reviewboard/cmdline/rbsite.py, line 390, in run_manage_command execute_manager(reviewboard.settings, [__file__, cmd] + params) File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/core/management/__init__.py, line 438, in execute_manager utility.execute() File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/core/management/__init__.py, line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/core/management/base.py, line 191, in run_from_argv self.execute(*args, **options.__dict__) File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/core/management/base.py, line 217, in execute self.validate() File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/core/management/base.py, line 245, in validate num_errors = get_validation_errors(s, app) File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/core/management/validation.py, line 86, in get_validation_errors connection.validation.validate_field(e, opts, f) File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/db/backends/mysql/validation.py, line 14, in validate_field db_version = self.connection.get_server_version() File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/db/backends/mysql/base.py, line 313, in get_server_version self.cursor() File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/db/backends/__init__.py, line 75, in cursor cursor = self._cursor() File /project/radio_ott/Python/lib/python2.4/site-packages/ Django-1.2.1-py2.4.egg/django/db/backends/mysql/base.py, line 297, in _cursor self.connection = Database.connect(**kwargs) File /project/radio_ott/Python/lib/python2.4/site-packages/PIL/ __init__.py, line 81, in Connect File /project/radio_ott/Python/lib/python2.4/site-packages/ MySQL_python-1.2.3-py2.4-linux-i686.egg/MySQLdb/connections.py, line 187, in __init__ _mysql_exceptions.OperationalError: (2002, Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)) -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
Re: rb-site and mysql socket
and I want it to use the socket for mysql I've installed in custom folder: /project/blah-blah/mysql.sock On Aug 10, 4:11 am, Christian Hammond chip...@chipx86.com wrote: Hi, We go through Django for all the database connectivity, so we don't actually have much control over this. What socket should it be using? Can you show me the exact output when running rb-site? Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Mon, Aug 9, 2010 at 1:02 PM, freetonik freeto...@gmail.com wrote: Hello! rb-site script tries to use '/var/lib/mysql/mysql.sock' socket by default. I cannot figure out how to tell it to use another file? (I don't have root access, so I cannot create symlink from '/var/lib/ mysql/mysql.sock') Mysql's my.cnf file is configured, but python-mysql still doesn't care. -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know athttp://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~--~~~~--~~--~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en