add ALTER DATABASE xcatdb DEFAULT CHARACTER SET latin1; to the Create Database

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5598 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-03-29 17:32:11 +00:00
parent 88e9572c32
commit e2874241c2

View File

@ -175,7 +175,7 @@ if (-e ("/etc/xcat/cfgloc")) # check to see if xcat is using mysql
if ($::INIT)
{
my $message =
"The /etc/xcat/cfgloc file is already configured for MySQL. xcat database initialization will not take place.";
"The /opt/xcat/cfgloc file is already configured for MySQL. xcat database initialization will not take place.";
xCAT::MsgUtils->message("I", "$message");
}
$::xcatrunningmysql = 1;
@ -1027,7 +1027,7 @@ sub setupxcatdb
$mysql_prompt,
sub {
$mysql->send("CREATE DATABASE xcatdb;\r");
$mysql->send("CREATE DATABASE xcatdb;ALTER DATABASE xcatdb DEFAULT CHARACTER SET latin1;\r");
$mysql->clear_accum();
$mysql->send("$createuser");
$mysql->clear_accum();