delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/03/22/19:44:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=xb9vvJMY26hkhYofh0KtphgTHqAZDN3F84j7O50OUwy
ukR1WYf2XLMC1mraeyW5bt44GoQd92/GX6ejjhHpEmolxbGr+nn8mhBb/CsfvDnI
racG/LOl522xUZixU5hc1Lpz5q7vLdgzPBEfeVL4sbrOYPS73HikfWSF3QpX7IsY
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=iaRQGBeN33eKQ8IECZgtixYLQGc=; b=rQD/sqc/BCmEwaC3N
3BMPxmkcfEOiUgBtbCFfR2FKKog1LixRrtn+IPYUE3Go1mKMGQ0RFAmsTLoPHgJo
2UdlYkWISPNs6Njv4IMM0V8LOAf0U8SFWdDkflcjQhStY/j+ryw1e2i/12WfOgw6
7QrKga4E9pTEKUgaO/VA198zvg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_MK,TW_QL autolearn=ham version=3.3.1
X-Received: by 10.180.84.162 with SMTP id a2mr5954113wiz.14.1363995855246; Fri, 22 Mar 2013 16:44:15 -0700 (PDT)
Message-ID: <514CECCD.9010905@gmail.com>
Date: Fri, 22 Mar 2013 23:44:13 +0000
From: Anthony Geoghegan <anthony DOT geoghegan AT gmail DOT com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: database related
References: <CAM-A7MC=rsASdvXp5zyvLyY8OSdV9kg9D+i5POPuN3r5vG_x_g AT mail DOT gmail DOT com>
In-Reply-To: <CAM-A7MC=rsASdvXp5zyvLyY8OSdV9kg9D+i5POPuN3r5vG_x_g@mail.gmail.com>

On 20/03/13 06:31, Wynfield Henman wrote:
> The database MariaDB looks good.   It does have a windows version
> available, but I, like others would prefer to learn it on a Posix
> system like cygwin if at all possible.
>
> The only information I could find matching MariaDB and cygwin as at
> least a couple of years old as I recall.   Has anyone built or tried
> MariaDB on cygwin?    I'd appreciate information about it.

I can't imagine MariaDB being much different from MySQL which I 
successfully compiled MySQL on Cygwin over a year ago. It was more a 
proof of concept than a practical project but I thought I'd share the 
notes I made at the time:

User / Group Creation:
-----------------------
Cygwin takes its users and groups from its Windows host.
I found that I couldn't create a new group if a user with the same name 
already exists. This prevented me from creating both a user and group 
called ‘mysql’ so I used the group name, ‘mysqlgroup’.

# create a Windows mysqlgroup group
net localgroup mysqlgroup /add
# create a mysql user
net user mysql /add
# add 'mysql' user to 'mysqlgroup'
net localgroup mysqlgroup mysql /add

# Update Cygwin's user & group files
mkpasswd -l -u mysql >> /etc/passwd
mkgroup -l -g mysqlgroup >> /etc/group


Compilation:
------------
Follow instructions at 
http://dev.mysql.com/doc/refman/5.0/en/installing-source-distribution.html

The default C compiler flag -O3 doesn't work properly under Cygwin with 
gcc 3.4.4

Ensure readline is installed and use:
./configure --without-readline CFLAGS=-O2

chown -vR mysql:mysqlgroup /usr/local/*/*
bin/mysql_install_db --user=mysql   # works fine in Cygwin

This creates the data directory and initialises the mysql and test 
databases.


Hope this helps,
Anthony

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019