You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by "hongtu.zang@gmail.com" <ho...@gmail.com> on 2015/02/04 05:33:14 UTC

Re: 回复: Ubuntu上安装的cloudstack但是无法创建数据库

看上去像是MySQL 登陆认证失败
你试试 mysql -uroot -p<password>
看本地能不能访问MySQL



臧宏图
Email:hongtu.zang@gmail.com
 
发件人: 朱益萍
发送时间: 2015-02-04 10:39
收件人: users-cn
主题: 回复: RE: Ubuntu上安装的cloudstack但是无法创建数据库
这个是报错的部分:
We apologize for below error:
***************************************************************
Encountering an error when executing mysql script
----------------------------------------------------------------------
table:
/usr/share/cloudstack-management/setup/create-schema-premium.sql
 
 
Error:
ERROR 1046 (3D000) at line 285: No database selected
 
 
 
 
Sql parameters:
{'passwd': '123456', 'host': 'localhost', 'user': 'root', 'port': 3306}
----------------------------------------------------------------------
 
 
***************************************************************
Please run:
 
 
    cloud-setup-database -h
 
 
for full help
root@manage:~#‍
 
 
 
------------------ 原始邮件 ------------------
发件人: "hongtu.zang@gmail.com";<ho...@gmail.com>;
发送时间: 2015年2月4日(星期三) 上午10:33
收件人: "users-cn"<us...@cloudstack.apache.org>; "yuan-gui@hbis.com.cn"<yu...@hbis.com.cn>; 
 
主题: Re: RE: Ubuntu上安装的cloudstack但是无法创建数据库
 
 
 
邮件组是不支持图片的,还是贴文本吧
 
 
 
hongtu.zang@gmail.com
发件人: YUAN, GUI -HBIS
发送时间: 2015-02-04 10:31
收件人: users-cn@cloudstack.apache.org
主题: RE: Ubuntu上安装的cloudstack但是无法创建数据库
图片看不见,
不知道是被BAN了,还是这个邮件组不支持。
From: 朱益萍 [mailto:874413889@qq.com] 
Sent: Wednesday, February 04, 2015 10:21 AM
To: cloudstack
Subject: Ubuntu上安装的cloudstack但是无法创建数据库
Ubuntu作为管理节点,在管理机上安装mysql使用cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> 创建数据的时候下面这个错误
‍
Disclaimer:
The contents of this e-mail, and its attachments, if any, are confidential and may be protected
by law against any unauthorized use.  If you have received this e-mail by mistake or have
reason to believe that you are not the intended recipient, please notify the sender by reply
e-mail as soon as possible and delete it from your computer system immediately thereafter.
If you are not the intended recipient, you must not copy this e-mail or attachment or disclose
the contents to any other person.  While we have made every effort to keep our network virus free,
we take no responsibility for any computer virus which might be transferred by way of this e-mail

Re: 回复: Ubuntu上安装的cloudstack但是无法创建数据库

Posted by Darren Tang <da...@gmail.com>.
你的数据库版本是多少?
如果是5.5以上 ,CS的数据库数据在初始化时 ,如果是高版本的数据库,会有点问题,具体的你查看:
https://issues.apache.org/jira/browse/CLOUDSTACK-8157
这个bug,  新版本会解决,目前临时解决办法是你使用5.1版本数据库,或者,修改/usr/share/cloudstack-
management/setup/create-schema-premium.sql  这个文件中的的两行数据,具体请看:
https://github.com/apache/cloudstack/pull/67.patch
注意,67.patch文件下面两行  前面有+和- 符号的,添加‘cloud’.即可。

2015-02-04 14:04 GMT+08:00 朱益萍 <87...@qq.com>:

> 本地能正常访问的呢,但是创建的时候就一直是这个错误
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "hongtu.zang@gmail.com";<ho...@gmail.com>;
> 发送时间: 2015年2月4日(星期三) 中午12:33
> 收件人: "users-cn"<us...@cloudstack.apache.org>;
>
> 主题: Re: 回复: Ubuntu上安装的cloudstack但是无法创建数据库
>
>
>
> 看上去像是MySQL 登陆认证失败
> 你试试 mysql -uroot -p<password>
> 看本地能不能访问MySQL
>
>
>
> 臧宏图
> Email:hongtu.zang@gmail.com
>
> 发件人: 朱益萍
> 发送时间: 2015-02-04 10:39
> 收件人: users-cn
> 主题: 回复: RE: Ubuntu上安装的cloudstack但是无法创建数据库
> 这个是报错的部分:
> We apologize for below error:
> ***************************************************************
> Encountering an error when executing mysql script
> ----------------------------------------------------------------------
> table:
> /usr/share/cloudstack-management/setup/create-schema-premium.sql
>
>
> Error:
> ERROR 1046 (3D000) at line 285: No database selected
>
>
>
>
> Sql parameters:
> {'passwd': '123456', 'host': 'localhost', 'user': 'root', 'port': 3306}
> ----------------------------------------------------------------------
>
>
> ***************************************************************
> Please run:
>
>
>     cloud-setup-database -h
>
>
> for full help
> root@manage:~#‍
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "hongtu.zang@gmail.com";<ho...@gmail.com>;
> 发送时间: 2015年2月4日(星期三) 上午10:33
> 收件人: "users-cn"<us...@cloudstack.apache.org>; "yuan-gui@hbis.com.cn"<
> yuan-gui@hbis.com.cn>;
>
> 主题: Re: RE: Ubuntu上安装的cloudstack但是无法创建数据库
>
>
>
> 邮件组是不支持图片的,还是贴文本吧
>
>
>
> hongtu.zang@gmail.com
> 发件人: YUAN, GUI -HBIS
> 发送时间: 2015-02-04 10:31
> 收件人: users-cn@cloudstack.apache.org
> 主题: RE: Ubuntu上安装的cloudstack但是无法创建数据库
> 图片看不见,
> 不知道是被BAN了,还是这个邮件组不支持。
> From: 朱益萍 [mailto:874413889@qq.com]
> Sent: Wednesday, February 04, 2015 10:21 AM
> To: cloudstack
> Subject: Ubuntu上安装的cloudstack但是无法创建数据库
> Ubuntu作为管理节点,在管理机上安装mysql使用cloudstack-setup-databases
> cloud:<dbpassword>@localhost --deploy-as=root:<password> 创建数据的时候下面这个错误
> ‍
> Disclaimer:
> The contents of this e-mail, and its attachments, if any, are confidential
> and may be protected
> by law against any unauthorized use.  If you have received this e-mail by
> mistake or have
> reason to believe that you are not the intended recipient, please notify
> the sender by reply
> e-mail as soon as possible and delete it from your computer system
> immediately thereafter.
> If you are not the intended recipient, you must not copy this e-mail or
> attachment or disclose
> the contents to any other person.  While we have made every effort to keep
> our network virus free,
> we take no responsibility for any computer virus which might be
> transferred by way of this e-mail
>

回复: 回复: Ubuntu上安装的cloudstack但是无法创建数据库

Posted by 朱益萍 <87...@qq.com>.
本地能正常访问的呢,但是创建的时候就一直是这个错误


------------------ 原始邮件 ------------------
发件人: "hongtu.zang@gmail.com";<ho...@gmail.com>;
发送时间: 2015年2月4日(星期三) 中午12:33
收件人: "users-cn"<us...@cloudstack.apache.org>; 

主题: Re: 回复: Ubuntu上安装的cloudstack但是无法创建数据库



看上去像是MySQL 登陆认证失败
你试试 mysql -uroot -p<password>
看本地能不能访问MySQL



臧宏图
Email:hongtu.zang@gmail.com
 
发件人: 朱益萍
发送时间: 2015-02-04 10:39
收件人: users-cn
主题: 回复: RE: Ubuntu上安装的cloudstack但是无法创建数据库
这个是报错的部分:
We apologize for below error:
***************************************************************
Encountering an error when executing mysql script
----------------------------------------------------------------------
table:
/usr/share/cloudstack-management/setup/create-schema-premium.sql
 
 
Error:
ERROR 1046 (3D000) at line 285: No database selected
 
 
 
 
Sql parameters:
{'passwd': '123456', 'host': 'localhost', 'user': 'root', 'port': 3306}
----------------------------------------------------------------------
 
 
***************************************************************
Please run:
 
 
    cloud-setup-database -h
 
 
for full help
root@manage:~#‍
 
 
 
------------------ 原始邮件 ------------------
发件人: "hongtu.zang@gmail.com";<ho...@gmail.com>;
发送时间: 2015年2月4日(星期三) 上午10:33
收件人: "users-cn"<us...@cloudstack.apache.org>; "yuan-gui@hbis.com.cn"<yu...@hbis.com.cn>; 
 
主题: Re: RE: Ubuntu上安装的cloudstack但是无法创建数据库
 
 
 
邮件组是不支持图片的,还是贴文本吧
 
 
 
hongtu.zang@gmail.com
发件人: YUAN, GUI -HBIS
发送时间: 2015-02-04 10:31
收件人: users-cn@cloudstack.apache.org
主题: RE: Ubuntu上安装的cloudstack但是无法创建数据库
图片看不见,
不知道是被BAN了,还是这个邮件组不支持。
From: 朱益萍 [mailto:874413889@qq.com] 
Sent: Wednesday, February 04, 2015 10:21 AM
To: cloudstack
Subject: Ubuntu上安装的cloudstack但是无法创建数据库
Ubuntu作为管理节点,在管理机上安装mysql使用cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> 创建数据的时候下面这个错误
‍
Disclaimer:
The contents of this e-mail, and its attachments, if any, are confidential and may be protected
by law against any unauthorized use.  If you have received this e-mail by mistake or have
reason to believe that you are not the intended recipient, please notify the sender by reply
e-mail as soon as possible and delete it from your computer system immediately thereafter.
If you are not the intended recipient, you must not copy this e-mail or attachment or disclose
the contents to any other person.  While we have made every effort to keep our network virus free,
we take no responsibility for any computer virus which might be transferred by way of this e-mail