From e2874241c2c5bb6e519fb3d36129656beed9ae47 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 29 Mar 2010 17:32:11 +0000 Subject: [PATCH] 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 --- xCAT-server/sbin/mysqlsetup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/mysqlsetup b/xCAT-server/sbin/mysqlsetup index 5e409785b..8a7c3cf1c 100755 --- a/xCAT-server/sbin/mysqlsetup +++ b/xCAT-server/sbin/mysqlsetup @@ -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();