So after install OSX Mavericks, i'm trying to start mysql installed by homebrew
the error when i'm trying to do mysql -u root or mysqld
mysql: Can't read dir of '/usr/local/etc/my.cnf.d' (Errcode: 20)
Fatal error in defaults handling. Program aborted
I'm researching for a lot of stacks, but i didn't find any error like my, someone can help?
Related
For work, the development stack we use is nginx + php + apache + mariadb, and using mac (with m1 chip).
I set up the development environment using brew.
The installation of the services was successful and even running the brew doctor command I am not shown any errors.
However, I have a problem with starting mariadb, that is when I launch brew services start mariadb with mariadb latest, that is 10.6, I get the message of service started successfully, but when I do brew services under mariadb it service status is stopped.
I am new to mac os, I have tried to search online but everything I have tried so far has not worked.
Do you have any suggestions or advice?
EDIT:
if i try to start service with mysql.server startcommand, i've this error:
Starting MariaDB
.211209 11:55:38 mysqld_safe Logging to '/opt/homebrew/var/mysql/Mac-mini-di-Ezio.local.err'.
211209 11:55:38 mysqld_safe Starting mariadbd daemon with databases from /opt/homebrew/var/mysql
/opt/homebrew/bin/mysql.server: line 264: kill: (73339) - No such process
ERROR!
I realized I couldn't install mysql workbench on my macosx 10.5.8 and I had no other solution but to use mysql command line on the operating system. Here is how I started to use mysql command line on MAMP if anyone found that useful I'm answering my own question to be helpful.
cd /Applications/MAMP/Library/bin
then issue
./mysql -u root -p
Enter password:
mysql>
I was able to successfully install php54 with fpm and with mysql onto my system. However, when I try to start the server by running php-fpm in terminal I get an error saying...
1.ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2)
2.ERROR: failed to load configuration file '/private/etc/php-fpm.conf'
3.ERROR: FPM initialization failed
However, my php-fpm.conf file is located in this directory: /usr/local/etc/php/5.4/php-fpm.conf. I'm not really sure what to do at this point. I'm going crazy and could use help out there. Can anyone point me in the right direction. I am running the latest version of Mountain Lion and have installed the latest command line tools.
The php-fpm binary expects php-fpm.conf file to read the configuration when it starts up. On Mac OSX by default this file is named as "/private/etc/php-fpm.conf.default" Change/copy it to "php-fpm.conf" from "php-fpm.conf.default"
cp /private/etc/php-fpm.conf.default /private/etc/php-fpm.conf
And then restart the service
you can start by brew if you installed by brew.
be sure closed php-fpm
sudo killall php-fpm
start by brew
brew services start php
I have untared the latest kettle stable version pdi-ce-4.3.0-stable.tar.gz and then tried to start spoon by typing spoon.sh from the command prompt. But it fails with the following exception
**org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]**
**at org.eclipse.swt.SWT.error(Unknown Source)**
I have spent quite a lot of time searching for the solution and all those pointers in vain till now.
I installed the following based on the instructions on several forums:
Xorg, X11
Gtk
Xinit
Xulrunner
Firefox
gnome
ubuntu-desktop
But none of these helped. Thinking that spoon may depend on the X-Windows server, i tried to check if its running and used the command startx on Xinit to start the X server. But unfortunately, it failed with the error as follows
Fatal server error:
no screens found
xinit: giving up
xinit: unable to connect to X server: No such file or directory
xinit: server error
I am clueless now. Can you please guide me?
Seems you are trying to start kettle spoon from a real console. this is not going to work. you need a real X session. Spoon is a GUI, so login under your X environment (usually GDM).
sudo apt-get install gdm
After that, open a gnome console and execute ./spoon.sh . Maybe you are trying to exetute pan.sh or kitchen.sh? those will run fine under console without graphic envionment.
I have the issue described in:
Repairing Postgresql after upgrading to OSX 10.7 Lion
but didn't get it solved.
The Postgres application generating the error is at /usr/bin/psql,
but the correct one is at
/Library/PostgreSQL/9.1/bin/psql.
When I add the later to my path in .bash_profile (or even in /etc/paths), uninstall and install the PG gem, then I still receive the error:
.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:1161:in `initialize': could not connect to server: Permission denied (PG::Error) Is the server running locally and accepting
I tried it several times, also with the option:
-- --with-pg-config=/Library/PostgreSQL/9.1/bin/pg_config
Any idea?
EDIT:
After reading through more posts (like http://www.iainlbc.com/2011/10/osx-lion-postgres-could-not-connect-to-database-postgres-after-homebrew-installation),
I just did the following:
sudo ln -s /private/tmp/.s.PGSQL.5432 /var/pgsql_socket/
And it worked. I don't know at all why. Do I have two installations of Postgres? Where is the app laying behind the /usr/bin/psql file?
After running find / -name .s.PGSQL.5432 -ls, I noticed that the result was:
47366187 0 srwxrwxrwx 1 postgres wheel 0 Dec 3 15:15 /private/tmp/.s.PGSQL.5432
Note that the PGSQL socket file is /private/tmp/.s.PGSQL.5432
Using your suggestion above (but modifying it a bit), I did this:
sudo ln -s /private/tmp /var/pgsql_socket
Restarted terminal and it worked.