Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
SQL
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Dec 2012 at 20:51 UTC
Updated:
11 Sep 2013 at 11:57 UTC
This function works on 5.0.75 on Ubuntu, but not on 5.1.44 on OSX (Lion):
mysql --database=sps --host=localhost --user=root --password=somepass -e "SELECT 1;"
The expected output is this:
+---+
| 1 |
+---+
| 1 |
+---+
On OSX, though, it just dumps me to a mysql prompt awaiting a command, without ever executing the command specified by the -e switch.
Any idea why it doesn't execute and exit back to the command line as it should? The net affect of this is that I am unable to use site-install on my local machine.
Comments
Comment #1
greg.1.anderson commentedI don't think anyone is going to support mysql issues here; I'll leave this open for a bit in case, but you'd probably do better in a different forum. (I don't use a Mac myself, but as several other maintainers do, it is my understanding that Drush works well on MacOS.)
Comment #2
seanrI totally get that, but meant it as a suggestion that maybe we should have an alternate way of detecting the existence of the specified database (should have said that in my initial post). If the current method doesn't work in at least one common setup, maybe there's a better way. Regardless, I also posted the underlying issue to StackExchange, though I haven't gotten any answers yet.
Comment #3
seanrBTW, the rest of Drush works well, only site-install flops.
Comment #4
greg.1.anderson commentedDo sql-query and sql-sync work?
Comment #5
seanrsql-query works, but I don't currently have a usable test case for sql-sync (I'd need to set up multiple DBs, aliases, etc.). I'll try to do that later.
Comment #6
greg.1.anderson commentedsql-query looks just like #0, except that it reads the SQL from a temp file rather than using the -e option. Perhaps you could try altering site-install to use some of the functions from sql.command.inc, so that it behaves the same way. Patches welcome.
Comment #7
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If you still need help, please ask your question again on Drupal Answers and then post a link here to the new question. Please also change the status of this issue to
closed (duplicate).Use our Github project for contributing code, or reporting bugs, or requesting features.