[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chip Childers resolved CLOUDSTACK-4560.
---------------------------------------

    Resolution: Fixed

I believe that this was addressed.
                
> cloudstack-setup-databases fails for mysql command
> --------------------------------------------------
>
>                 Key: CLOUDSTACK-4560
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4560
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Install and Setup
>    Affects Versions: 4.1.1
>         Environment: RHEL/CentOS 6.4, mysql 5.1
>            Reporter: Zhi-Wei Lu
>              Labels: patch
>             Fix For: 4.1.1
>
>
> cloudstack-setup-databases 'cloud:password1@localhost' 
> --deploy-as=root:password2 -e file  -m 'key1'  -k 'key2' -i 127.0.0.1
> Error:
> /bin/sh: -c: line 0: syntax error near unexpected token `<'
> /bin/sh: -c: line 0: `mysql --user=root --host=localhost --port=3306 
> --password=pass < /root/cloudstackmysql.tmp.sql'
> Patch:
> diff -u cloudstack-setup-databases.orig cloudstack-setup-databases
> --- cloudstack-setup-databases.orig     2013-08-05 12:04:20.000000000 -0700
> +++ cloudstack-setup-databases          2013-08-29 10:02:41.894070548 -0700
> @@ -142,7 +142,7 @@
>          try:
>              mysqlCmds = ['mysql', '--user=%s'%kwargs['user'], 
> '--host=%s'%kwargs['host'], '--port=%s'%kwargs['port']]
>              if kwargs.has_key('passwd'):
> -                mysqlCmds.append('--password=%s'%kwargs['passwd'])
> +                mysqlCmds.append('--password="%s"'%kwargs['passwd'])
>              file(self.tmpMysqlFile, 'w').write(text)
>              mysqlCmds.append('<')
>              mysqlCmds.append(self.tmpMysqlFile)
> @@ -171,7 +171,7 @@
>  ***************************************************************
>  Please run:
> -    cloud-setup-database -h
> +    cloudstack-setup-database -h
>  for full help
>  ''' % msg

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to