Allow to specify in which port MySQL is running when creating a new rb site
Review Request #3923 — Created Feb. 27, 2013 and submitted
Allow to specify in which port MySQL is running when creating a new rb site. Currently if database hostname is used (instead of socket) the port option is not working correctly. There is a comment in the code mentioning that in that when MySQL is running in a non default port db_hostname can be specified with hostname:port format. That doesn't seem to work. I have added the new --db_port option instead.
Tested with default and not default ports for MySQL. With this option the settings_local.py file is created correctly and the databases are created.
-
Hi Victoria, I'm hoping we can avoid needing to ask the user for another bit of information. Can we instead change what the DB host accepts to take a port? So instead of just "localhost", "locahost:1234" would be allowed?
KA
- Change Summary:
-
Removed new --db-port option. Accept <db_host>:<db_port> format for the database hostname also when --noinput option is used.
- Diff:
-
Revision 2 (+4 -6)