<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>DIYMacServer &#187; Tag: MySQL - Recent Topics</title>
<link>http://diymacserver.com/forum/</link>
<description>DIYMacServer &#187; Tag: MySQL - Recent Topics</description>
<language>en</language>
<pubDate>Wed, 08 Feb 2012 06:32:30 +0000</pubDate>

<item>
<title>Lindhardsen on "Problem with SQLGrey and MySQL"</title>
<link>http://diymacserver.com/forum/topic/problem-with-sqlgrey-and-mysql#post-937</link>
<pubDate>Mon, 04 Apr 2011 10:35:47 +0000</pubDate>
<dc:creator>Lindhardsen</dc:creator>
<guid isPermaLink="false">937@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;I have a problem that has been keeping me puzzled since I installed my OSX &#34;Server&#34; in October:&#60;/p&#62;
&#60;p&#62;When I restart my server, postfix cannot connect to Dovecot. This it turns out, is related to that postgrey cannot ponnect to the database.&#60;br /&#62;
For some reason, sqlgrey is trying to connect to the socket (I assume) /tmp/mysql.sock!&#60;/p&#62;
&#60;p&#62;The workaround for this is simple, just create a link from the socket file /private/var/mysql/mysql.sock to /tmp/mysql.sock using:&#60;br /&#62;
&#34;ln /private/var/mysql/mysql.sock /tmp/mysql.sock&#34;.&#60;br /&#62;
The disadvantage of this, is that /tmp is emptied on every restart of the server, so I have to manually run this command after each restart.&#60;/p&#62;
&#60;p&#62;But WHY is this happening? Looking in my sqlgrey.conf, I have the following connection settings:&#60;br /&#62;
db_type = mysql&#60;br /&#62;
db_name = sqlgrey&#60;br /&#62;
# Note: the following are not used with SQLite&#60;br /&#62;
db_host = localhost&#60;br /&#62;
db_port = default&#60;/p&#62;
&#60;p&#62;Which is the same as any other component that uses MySQL on the system, and all other works fine!&#60;br /&#62;
I have tried to change the location of the mysql.sock file, but that basically causes all other components to fail :-(&#60;/p&#62;
&#60;p&#62;Is there a hidden setting in perl (which sqlgrey is built upon), which points to an alternative mysql location?&#60;/p&#62;
&#60;p&#62;Alternatively how can I prevent OSX from deleting the /tmp/mysql.sock link on shutdown?&#60;/p&#62;
&#60;p&#62;What I see in my system.log file is this:&#60;br /&#62;
Apr  4 10:38:52 Minin com.diymacserver.sqlgrey[357]: dbaccess: can't connect to DB: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)&#60;br /&#62;
Apr  4 10:38:52 Minin com.diymacserver.sqlgrey[357]: dbaccess: error: couldn't get now() from DB: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)&#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
Jan
&#60;/p&#62;</description>
</item>
<item>
<title>robcd on "10.6.5 -&#62; 10.6.7 breaks postfix setup (with fix)"</title>
<link>http://diymacserver.com/forum/topic/1065-1067-breaks-postfix-setup-with-fix#post-935</link>
<pubDate>Tue, 22 Mar 2011 17:07:32 +0000</pubDate>
<dc:creator>robcd</dc:creator>
<guid isPermaLink="false">935@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Dear Postfix forum,&#60;/p&#62;
&#60;p&#62;After upgrading my Mac OS X client, I got the following error message:&#60;/p&#62;
&#60;p&#62;... postfix/smtpd[526]: fatal: unsupported dictionary type: mysql&#60;/p&#62;
&#60;p&#62;I noticed that the /usr/libexec/postfix/smtpd executable had been changed, together with who knows what else in that directory. So I restored the old one, only to get a similar error message from the trivial-rewrite executable (in the same directory). So I restored that as well, followed by the cleanup one, and then all is well again.&#60;/p&#62;
&#60;p&#62;So a couple of questions:&#60;/p&#62;
&#60;p&#62;* What should I do to fix things properly?&#60;/p&#62;
&#60;p&#62;* How can I avoid having to do this next time I upgrade the OS?&#60;/p&#62;
&#60;p&#62;Thanks and best regards,&#60;/p&#62;
&#60;p&#62;Rob&#60;/p&#62;
&#60;p&#62;PS Setup has otherwise worked great - many thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>Fred Turner on "Postfix &#34;Can&#039;t connect to MySQL server&#34;"</title>
<link>http://diymacserver.com/forum/topic/postfix-cant-connect-to-mysql-server#post-816</link>
<pubDate>Tue, 11 May 2010 17:40:55 +0000</pubDate>
<dc:creator>Fred Turner</dc:creator>
<guid isPermaLink="false">816@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Had everything pretty close to running, aside from the &#34;createmaildir&#34; script not working, but after a reboot of the server, I get this over and over in the logs:&#60;/p&#62;
&#60;p&#62;postfix/trivial-rewrite[809]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (61)&#60;br /&#62;
postfix/trivial-rewrite[809]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock&#124;fold_fix): table lookup problem&#60;br /&#62;
postfix/smtpd[479]: warning: problem talking to service rewrite: Unknown error: 0&#60;br /&#62;
postfix/master[31]: warning: process /usr/libexec/postfix/trivial-rewrite pid 809 exit status 1&#60;br /&#62;
postfix/master[31]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling&#60;/p&#62;
&#60;p&#62;Any idea why it can't connect? I'm assuming that the &#34;table lookup problem&#34; is simply the first mysql lookup that postfix does, and since it is unable to connect, that fails w/ the &#34;lookup problem&#34;...right? I manually ran mysql and connected as user &#34;postfix&#34; w/o issue.&#60;/p&#62;
&#60;p&#62;Thx,&#60;br /&#62;
Fred
&#60;/p&#62;</description>
</item>
<item>
<title>zerustech on "Compile Apache+MySQL+php on Snow Leopard"</title>
<link>http://diymacserver.com/forum/topic/compile-apachemysqlphp-on-snow-leopard#post-716</link>
<pubDate>Sun, 27 Sep 2009 06:40:01 +0000</pubDate>
<dc:creator>zerustech</dc:creator>
<guid isPermaLink="false">716@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Hi Guys,&#60;/p&#62;
&#60;p&#62;I was trying to compile Apache+MySQL+PHP on Snow Leopard according to the instructions on this website, but unfortunately none of them worked. &#60;/p&#62;
&#60;p&#62;I tried different solutions and finally succeeded. So I'm just posting the instructions here and hopefully it will be helpful to you.&#60;/p&#62;
&#60;p&#62;1. First of all, you should download apache 2.2.13 (the apxs in its previous releases does not work)&#60;/p&#62;
&#60;p&#62;2. Install xcode from Snow Leopard installation DVD (I guess you have already installed)&#60;/p&#62;
&#60;p&#62;3. Install MacPorts and the following port libs:&#60;br /&#62;
- zlib&#60;br /&#62;
- curl&#60;br /&#62;
- xsl&#60;br /&#62;
- gd&#60;br /&#62;
- openjpeg&#60;br /&#62;
- libpng&#60;br /&#62;
- freetype&#60;br /&#62;
- xpm&#60;br /&#62;
- exif&#60;br /&#62;
- libiconv&#60;/p&#62;
&#60;p&#62;4. Compile MySQL (5.1.39) as follows:&#60;/p&#62;
&#60;p&#62;#!/bin/sh&#60;br /&#62;
MYSQLVERSION=&#34;5.1.39&#34;&#60;br /&#62;
MYSQLDIR=&#34;/opt/mysql/$MYSQLVERSION&#34;&#60;br /&#62;
make distclean&#60;br /&#62;
./configure \&#60;br /&#62;
--prefix=$MYSQLDIR \&#60;br /&#62;
--with-server-suffix=--standard \&#60;br /&#62;
--enable-thread-safe-client \&#60;br /&#62;
--enable-local-infile \&#60;br /&#62;
--enable-shared \&#60;br /&#62;
--with-zlib-dir=bundled \&#60;br /&#62;
--with-big-tables \&#60;br /&#62;
--with-readline \&#60;br /&#62;
--with-plugins=all \&#60;br /&#62;
--with-mysqld-user=mysql \&#60;br /&#62;
--with-extra-charsets=all \&#60;br /&#62;
--with-unix-socket-path=$MYSQLDIR/var/mysql.sock \&#60;br /&#62;
--without-docs&#60;br /&#62;
make&#60;br /&#62;
make install&#60;/p&#62;
&#60;p&#62;5. Compile Apache (2.2.13) as follows:&#60;br /&#62;
#!/bin/sh&#60;br /&#62;
APACHEVERSION=&#34;2.2.13&#34;&#60;br /&#62;
APACHEDIR=&#34;/opt/apache/$APACHEVERSION&#34;&#60;br /&#62;
make distclean&#60;br /&#62;
./configure -prefix=$APACHEDIR \&#60;br /&#62;
 -enable-mods-shared=all \&#60;br /&#62;
 -with-ssl \&#60;br /&#62;
 -with-mpm=prefork \&#60;br /&#62;
 -disable-unique-id \&#60;br /&#62;
 -enable-ssl \&#60;br /&#62;
 -enable-dav \&#60;br /&#62;
 -enable-cache \&#60;br /&#62;
 -enable-proxy \&#60;br /&#62;
 -enable-logio \&#60;br /&#62;
 -enable-deflate \&#60;br /&#62;
 -with-included-apr \&#60;br /&#62;
 -enable-cgi \&#60;br /&#62;
 -enable-cgid \&#60;br /&#62;
 -enable-suexec&#60;/p&#62;
&#60;p&#62;6. Compile PHP (4.4.9 or 5.3.0) as follows:&#60;br /&#62;
#!/bin/sh&#60;br /&#62;
PHPVERSION=4.4.9&#60;br /&#62;
MYSQLVERSION=5.1.39&#60;br /&#62;
APACHEVERSION=2.2.13&#60;br /&#62;
BUILDTAG=$PHPVERSION.mysql.$MYSQLVERSION&#60;br /&#62;
PHPDIR=/opt/php/$BUILDTAG&#60;br /&#62;
MYSQLDIR=/opt/mysql/$MYSQLVERSION&#60;br /&#62;
make distclean&#60;br /&#62;
./configure \&#60;br /&#62;
--prefix=$PHPDIR \&#60;br /&#62;
--with-apxs2=/opt/apache/$APACHEVERSION/bin/apxs \&#60;br /&#62;
--with-config-file-path=$PHPDIR/etc \&#60;br /&#62;
--with-mysql=$MYSQLDIR \&#60;br /&#62;
--with-mysqli=$MYSQLDIR/bin/mysql_config \&#60;br /&#62;
--with-pdo-mysql=$MYSQLDIR \&#60;br /&#62;
--with-zlib=/opt/local \&#60;br /&#62;
--with-curl=/opt/local \&#60;br /&#62;
--with-mcrypt=/opt/local \&#60;br /&#62;
--with-xsl=/opt/local \&#60;br /&#62;
--with-gd=/opt/local \&#60;br /&#62;
--with-jpeg-dir=/opt/local \&#60;br /&#62;
--with-png-dir=/opt/local \&#60;br /&#62;
--with-zlib-dir=/opt/local \&#60;br /&#62;
--with-xpm-dir=/opt/local \&#60;br /&#62;
--with-freetype-dir=/opt/local \&#60;br /&#62;
--with-iconv=/opt/local \&#60;br /&#62;
--enable-mbstring \&#60;br /&#62;
--enable-exif \&#60;br /&#62;
--enable-cli \&#60;br /&#62;
--enable-pcntl \&#60;br /&#62;
--enable-sockets \&#60;br /&#62;
--enable-ftp \&#60;br /&#62;
--enable-soap&#60;br /&#62;
export EXTRA_CFLAGS=&#34;-lresolv&#34;&#60;br /&#62;
make&#60;br /&#62;
make install
&#60;/p&#62;</description>
</item>
<item>
<title>papa lozarou on "Optimising a server"</title>
<link>http://diymacserver.com/forum/topic/optimising-a-server#post-560</link>
<pubDate>Mon, 22 Sep 2008 14:18:08 +0000</pubDate>
<dc:creator>papa lozarou</dc:creator>
<guid isPermaLink="false">560@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I'm running a mac mini, which Richard kindly helped me get a mail server on. The only think other than that I run is a web forum for football supporters. I'm having real problems with the mysql/apache load.&#60;/p&#62;
&#60;p&#62;Basically the server slows to a crawl on lunchtimes. I've got about 1.5k users, which can balloon up to 2.5k if something big hits the news. Average hits per day is somewhere between 50k and 90k (again if there's some big story). &#60;/p&#62;
&#60;p&#62;Does anyone have any ideas? When I look at top I'm seeing MySQL sometimes at 150% plus of CPU processes, and the CPU itself maxed out between User and System with no idle. Also the average CPU load seems to be 2.5 plus. All these things aren't supposed to be I'm pretty sure, but I am unsure if it's a software issue or a hardware one. The forum software I run is phpbb3.&#60;/p&#62;
&#60;p&#62;Any ideas?
&#60;/p&#62;</description>
</item>
<item>
<title>jstubbs on "Still need to recompile MySQL"</title>
<link>http://diymacserver.com/forum/topic/still-need-to-recompile-mysql#post-554</link>
<pubDate>Mon, 08 Sep 2008 18:25:23 +0000</pubDate>
<dc:creator>jstubbs</dc:creator>
<guid isPermaLink="false">554@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Richard,&#60;/p&#62;
&#60;p&#62;My old G3 finally gave the ghost. Got my hands on a G4, installed 10.5, downloaded the 5.0.67 ppc package (32 bit) of mysql. I unpacked it and was poking around. I noticed that there are shared libraries inside of lib. Still need to recompile the source code?&#60;/p&#62;
&#60;p&#62;Jeff
&#60;/p&#62;</description>
</item>
<item>
<title>eulipion2 on "MySQL recompile problems"</title>
<link>http://diymacserver.com/forum/topic/mysql-recompile-problems#post-319</link>
<pubDate>Tue, 20 Feb 2007 23:37:32 +0000</pubDate>
<dc:creator>eulipion2</dc:creator>
<guid isPermaLink="false">319@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Hello all,&#60;br /&#62;
Bit of a newbie here.  I've installed MySQL via the .dmg for my Powerbook G4 (OS 10.4.8, most recent system updates, Developer Tools 2.4, not 2.4.1), but when I try to recompile with shared libraries I keep getting a lot of make errors.&#60;br /&#62;
1.) is there a log of the make procedure so I can find and post the errors?&#60;br /&#62;
2.) are the directions on the &#34;Compiling MySQL&#34; page accurate?  I'm following the ppc directions exactly.&#60;br /&#62;
3.) does it matter that the .dmg file is version 5.0.27 while the source is 5.0.33?  Is there anything I need to do differently because of this?
&#60;/p&#62;</description>
</item>
<item>
<title>taylor1111 on "Database Error : Connection Failed"</title>
<link>http://diymacserver.com/forum/topic/database-error-connection-failed#post-486</link>
<pubDate>Wed, 04 Jun 2008 04:12:16 +0000</pubDate>
<dc:creator>taylor1111</dc:creator>
<guid isPermaLink="false">486@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;I followed your documentation word for word, but did not want to upgrade MySQL from 4.1.22&#60;/p&#62;
&#60;p&#62;I have even tried hosting the MySQL database on a different server using version 5.0 and it still prompted me with the same error.&#60;/p&#62;
&#60;p&#62;Are there any suggestions, I would love to see RoundCube in action, but I am on my last nerves trying to get the install running properly.&#60;/p&#62;
&#60;p&#62;Thanks or all the help.
&#60;/p&#62;</description>
</item>
<item>
<title>Rimas on "Can&#039;t connect to MySQL server on &#039;127.0.0.1&#039; (61)"</title>
<link>http://diymacserver.com/forum/topic/cant-connect-to-mysql-server-on-127001-61#post-446</link>
<pubDate>Wed, 12 Mar 2008 21:51:41 +0000</pubDate>
<dc:creator>Rimas</dc:creator>
<guid isPermaLink="false">446@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;What an excellent source of information this web site is...!!!  I got MySQL, Apache and PHP all successfully working. However, I am struggling to get even a basic mail server up and running.  After building, installing, configuring and starting all of the required pieces, I find that I am unable to send or receive e-mail.  Looking in /var/log/mail.log I see the same pattern of messages repreated every 60 seconds or so:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
Mar 12 16:00:10 MacMiniServer postfix/trivial-rewrite[584]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (61)&#60;br /&#62;
Mar 12 16:00:10 MacMiniServer postfix/trivial-rewrite[584]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock&#124;fold_fix): table lookup problem&#60;br /&#62;
Mar 12 16:00:11 MacMiniServer postfix/smtpd[488]: warning: problem talking to service rewrite: Unknown error: 0&#60;br /&#62;
Mar 12 16:00:11 MacMiniServer postfix/smtpd[347]: warning: problem talking to service rewrite: Unknown error: 0&#60;br /&#62;
Mar 12 16:00:11 MacMiniServer postfix/master[286]: warning: process /usr/libexec/postfix/trivial-rewrite pid 584 exit status 1&#60;br /&#62;
Mar 12 16:00:11 MacMiniServer postfix/master[286]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I am able to connect to MySQL from a cmd line:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
MacMiniServer:~ Rimas$ mysql --user=Rimas --password=********&#60;br /&#62;
Welcome to the MySQL monitor.  Commands end with ; or \g.&#60;br /&#62;
Your MySQL connection id is 67&#60;br /&#62;
Server version: 5.0.51a-standard-log Source distribution&#60;/p&#62;
&#60;p&#62;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&#60;/p&#62;
&#60;p&#62;mysql&#38;gt; use mysql&#60;br /&#62;
Database changed&#60;br /&#62;
mysql&#38;gt; select host, user, password, select_priv from user;&#60;br /&#62;
+---------------------+-----------+-------------------------------------------+-------------+&#60;br /&#62;
&#124; host                &#124; user      &#124; password                                  &#124; select_priv &#124;&#60;br /&#62;
+---------------------+-----------+-------------------------------------------+-------------+&#60;br /&#62;
&#124; localhost           &#124; Rimas     &#124; *972D8E7C521419D7E52E96B357E80789D622948D &#124; Y           &#124;&#60;br /&#62;
&#124; MacMiniServer.local &#124; Rimas     &#124; *972D8E7C521419D7E52E96B357E80789D622948D &#124; Y           &#124;&#60;br /&#62;
&#124; 127.0.0.1           &#124; Rimas     &#124; *972D8E7C521419D7E52E96B357E80789D622948D &#124; Y           &#124;&#60;br /&#62;
&#124; localhost           &#124; mailsrvr  &#124; *972D8E7C521419D7E52E96B357E80789D622948D &#124; N           &#124;&#60;br /&#62;
&#124; localhost           &#124; mailadmin &#124; *972D8E7C521419D7E52E96B357E80789D622948D &#124; N           &#124;&#60;br /&#62;
+---------------------+-----------+-------------------------------------------+-------------+&#60;br /&#62;
5 rows in set (0.00 sec)&#60;/p&#62;
&#60;p&#62;mysql&#38;gt; select host, db, user, select_priv from db;&#60;br /&#62;
+-----------+---------+-----------+-------------+&#60;br /&#62;
&#124; host      &#124; db      &#124; user      &#124; select_priv &#124;&#60;br /&#62;
+-----------+---------+-----------+-------------+&#60;br /&#62;
&#124; localhost &#124; postfix &#124; mailsrvr  &#124; Y           &#124;&#60;br /&#62;
&#124; localhost &#124; postfix &#124; mailadmin &#124; Y           &#124;&#60;br /&#62;
+-----------+---------+-----------+-------------+&#60;br /&#62;
2 rows in set (0.00 sec)&#60;/p&#62;
&#60;p&#62;mysql&#38;gt; exit&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Just to make sure it was a problem connecting to MySQL, I edited /etc/postfix/main.cf and changed&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
virtual_alias_maps = ********.org&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and after restarting Postfix the can't connect to MySQL error moved to the next item (i.e. mysql_virtual_domains_maps.cf).&#60;/p&#62;
&#60;p&#62;If it helps, my mysql_virtual_domains_maps.cf looks like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
MacMiniServer:~ Rimas$ cat /etc/postfix/mysql_virtual_alias_maps.cf&#60;br /&#62;
user = mailsrvr&#60;br /&#62;
password = ********&#60;br /&#62;
hosts = 127.0.0.1&#60;br /&#62;
dbname = postfix&#60;br /&#62;
query = SELECT goto FROM alias WHERE address='%s' AND active = 1&#60;br /&#62;
MacMiniServer:~ Rimas$&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I have tried changing user = mailsrvr to user = Rimas, and also hosts = 127.0.0.1 to hosts = localhost but to no avail.  At this point I feel like I am kinda stuck and am hoping that I am just missing something really obvious.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Rimas
&#60;/p&#62;</description>
</item>
<item>
<title>nerdcoder on "courier-authlib-0.60.2: error in mail.log: Symbol not found: _auth_mysql"</title>
<link>http://diymacserver.com/forum/topic/courier-authlib-0602-error-in-maillog-symbol-not-found-_auth_mysql#post-424</link>
<pubDate>Thu, 29 Nov 2007 02:45:57 +0000</pubDate>
<dc:creator>nerdcoder</dc:creator>
<guid isPermaLink="false">424@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;After compiling everything succesfully on Mac OS X Leopard (10.5) I&#60;br /&#62;
get this error in the mail.log when starting authdaemond:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Nov 29 03:23:05 XXX authdaemond[88436]: dlopen(/XXX/lib/courier-
authlib/libauthmysql.0.so, 9): Symbol not found: _auth_mysql&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Everything seems to compile nicely.&#60;/p&#62;
&#60;p&#62;It even knows where to find the compiled mysql - I tried to move it and I got another error.&#60;br /&#62;
I have now tried with mysql's own precompiled Mac tarball.&#60;br /&#62;
Besides that I have tried a variety of configurations and compile&#60;br /&#62;
methods.&#60;/p&#62;
&#60;p&#62;This is one of them (I have tried compiling with servers to and&#60;br /&#62;
without any special CFLAGS or other stuff:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;CC=gcc CFLAGS=\&#38;quot;-O3 -fno-omit-frame-pointer\&#38;quot; CXX=gcc CXXFLAGS=\&#38;quot;-O3 -fno-
omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti\&#38;quot; ./
configure --prefix=/XXX --with-extra-charsets=complex --enable-thread-
safe-client --enable-shared --without-server
make
sudo make install&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This seems to work for courier-authlib:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;CC=\&#38;quot;\&#38;quot; CXX=\&#38;quot;\&#38;quot; CXXFLAGS=\&#38;quot;\&#38;quot;
CFLAGS=\&#38;quot;-arch i386\&#38;quot; ./configure --with-authmysql --without-authpam --
with-mysql-libs=/XXX/lib/mysql --with-mysql-includes=/XXX/include/
mysql --with-mailuser=_postfix --with-mailgroup=_postfix --prefix=/XXX
make
sudo make install&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have set up the authdaemonrc and authmysqlrc just as they are on a&#60;br /&#62;
working server I have + the new setup connects to the already running&#60;br /&#62;
and working mysql db.&#60;/p&#62;
&#60;p&#62;Any idea what is going on?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
Dan Larsen&#60;/p&#62;
&#60;p&#62;P.S: I even tested 0.60.1 and 0.60.0
&#60;/p&#62;</description>
</item>
<item>
<title>Keeya on "/usr/local/virtual empty &#38; mysql connect"</title>
<link>http://diymacserver.com/forum/topic/usrlocalvirtual-empty-038-mysql-connect#post-384</link>
<pubDate>Fri, 01 Jun 2007 05:34:28 +0000</pubDate>
<dc:creator>Keeya</dc:creator>
<guid isPermaLink="false">384@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Following up on earlier emails...&#60;br /&#62;
Tried going through and resetting everything-- deleted the user rows from mysql and redid the config files/usernames/passwords. Still not working-- not seeing anything added to /usr/local/virtual/, though domains and mailboxes appear as records in mysql. mail.log errors look like:&#60;/p&#62;
&#60;p&#62;...&#60;br /&#62;
postfix/trivial-rewrite[17976]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (61)&#60;br /&#62;
postfix/trivial-rewrite[17976]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock&#124;fold_fix): table lookup problem&#60;br /&#62;
postfix/smtpd[17955]: warning: problem talking to service rewrite: Unknown error: 0&#60;br /&#62;
postfix/master[17934]: warning: process /usr/libexec/postfix/trivial-rewrite pid 17976 exit status 1&#60;br /&#62;
postfix/cleanup[17964]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (61)&#60;br /&#62;
postfix/cleanup[17964]: warning: D24877562A: virtual_alias_maps map lookup problem for &#60;a href=&#34;mailto:test@email.com&#34;&#62;test@email.com&#60;/a&#62;&#60;br /&#62;
postfix/trivial-rewrite[17977]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (61)&#60;br /&#62;
postfix/trivial-rewrite[17977]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock&#124;fold_fix): table lookup problem&#60;br /&#62;
postfix/pickup[17942]: 1EFF875630: uid=501 from=&#38;lt;my_username&#38;gt;&#60;br /&#62;
postfix/smtpd[17955]: warning: problem talking to service rewrite: Unknown error: 0&#60;br /&#62;
...&#60;/p&#62;
&#60;p&#62;I tried sending an email to the box I created as suggested (see the pickup line in the). Anything else you'd advise? &#60;/p&#62;
&#60;p&#62;Thanks again, &#60;/p&#62;
&#60;p&#62;--Keeya
&#60;/p&#62;</description>
</item>
<item>
<title>PeterZwarich on "configure:error mysql-5.0.37"</title>
<link>http://diymacserver.com/forum/topic/configureerror-mysql-5037#post-345</link>
<pubDate>Mon, 02 Apr 2007 19:33:31 +0000</pubDate>
<dc:creator>PeterZwarich</dc:creator>
<guid isPermaLink="false">345@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Hi - I am working on the compilation instructions for MySQL.&#60;br /&#62;
after entering:&#60;br /&#62;
without-bench&#60;br /&#62;
I get this message:&#60;br /&#62;
configure: error: invalid variable name: with-server-suffix&#60;/p&#62;
&#60;p&#62;I downloaded mysql-5.0.37.&#60;/p&#62;
&#60;p&#62;peter
&#60;/p&#62;</description>
</item>
<item>
<title>Priz on "mysql plugin couldnt connect to any host"</title>
<link>http://diymacserver.com/forum/topic/mysql-plugin-couldnt-connect-to-any-host#post-328</link>
<pubDate>Mon, 26 Feb 2007 00:19:24 +0000</pubDate>
<dc:creator>Priz</dc:creator>
<guid isPermaLink="false">328@http://diymacserver.com/forum/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;&#60;code&#62;Feb 25 20:01:15 MiniMac postfix/smtpd[433]: mysql plugin couldnt connect to any host\n&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I had this message in system.log when smtpd process received an email and... I don't understand why : the email is nevertheless send.
&#60;/p&#62;</description>
</item>
<item>
<title>Richard on "How do I know if this is working?"</title>
<link>http://diymacserver.com/forum/topic/how-do-i-know-if-this-is-working#post-205</link>
<pubDate>Tue, 14 Nov 2006 06:33:56 +0000</pubDate>
<dc:creator>Richard</dc:creator>
<guid isPermaLink="false">205@http://diymacserver.com/forum/</guid>
<description>Keep us posted on the results...</description>
</item>
<item>
<title>Ryan on "Issues compiling 5.0.24a"</title>
<link>http://diymacserver.com/forum/topic/issues-compiling-5024a#post-120</link>
<pubDate>Tue, 03 Oct 2006 20:26:56 +0000</pubDate>
<dc:creator>Ryan</dc:creator>
<guid isPermaLink="false">120@http://diymacserver.com/forum/</guid>
<description>Thanks Richard, got the dev tools installed and had no problems with mysql.</description>
</item>

</channel>
</rss>

