mysqld has a ton of really nice startup options to help me debug my app. However I cannot figure out how to shutdown and restart MySQL from the command line and pass these options to mysqld.Snow Leopard and MySQL 5.1.56 MySQL Community Server. Â
Macbook Pro running Lion V 10.7.4Â .After a hard drive failure this weekend, I restored frm my most recent backup.Unfortunately this did not include svn, host file changes and some other fairly easy to correct things.The one that has been giving me trouble for the last 8 hours is mysql. I have gone through and removed mysql (multiple times) and did fresh installs. Each time I was getting the error:Â
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38)Â
Even after changing my /etc/my.cnf file to point to var/lib/mysql/mysql.sock I would get these errors. Â
Are there multiple locations where mysql points to /tmp/mysql.sock? Â
I am at a loss of what to do. I have uninstalled reeinstalled. Tried many different solutions all to reeive the same error.Â
/Users/mac/Sites/bithoist/BitHoist-PPC-MacOS-X  -offset 0x0000 /Users/mac/Sites/bithoist/commandLine/bins/aSunbird.bin  -stdout -hex  -r 0x0000,0x002fÂ
I'd like to move quickly to the last 0 in -offset 0x0000.Â
I know about control + a and I found out about esc + f. I do not find pressing esc then f then esc then f that easy. I'd like to at least be able to hold down the esc key and press f's.Â
Could I redefine a word to only be " " (space) in the terminal? Not sure I like this idea.Â
I just bought a new Macbook Pro 2.4 and starting fixing it with only fresh installs. I installed the OS X 10.5 (x86_64) pak. It was running fine until now.
The start/stop in the pref.pane don't work and if I do a "mysql start" in the terminal I get:
Quote:
MacBookPro:~ matsaki$ mysql start ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I tried to reinstall but it did not help. What's bugging? And what to do?
Trying to installed JAMF software on Mac Mini server. One of the configuration steps required setting up a database from the terminal but it requires the MYSQL service to be running and I'm unable to get this service to start.
Trying to install a .pkg from the command line in single user mode. I'm using the command "installer -pkg Installer.pkg -target / The .pkg is on a mounted USB drive. / is also mounted. When I run the command, the screen scrolls to a new blank line and stays there but nothing happens. The light on my USB indicates no data transfer is happening. I get no output, even if I add -verbose to the command.
I read somewhere that memtest can be used to test the memory of your mac. I tried it and it didn't even know what memtest was. Is there a way to test the memory in the unix shell?
I want to have the value of the batch command find. I've written the following but it don't work. Perhaps I'm missign something. if [ find /Applications/Autonome/test.log = 0 ] ; then echo "file not found !"
im trying to display "Monday | November 15" and I have "date +%A" to display the weekday, "date +%B" to display the month, and "date +%d" to display the date number.. but somethin like "date +%A | date +%B date +%d" doesnt work.. I know I can create 3 shell boxes to do this, but I rather learn for the future so how do I do this all at once?
so i found pmset for managing power management from the commandline, and it's great. my question is, is there a similar command for controlling the screensaver? all i really want to do is turn it off (or on) remotely.
I cloned a clean 10.5 image over to my main hdd with superduper!. After that I get ugly text commands displayed on my screen when rebooting. I haven't done anything to enable this, not that I know of. How can I disable this? Worst case, maybe my MB is broken?
A good friend who has used Macs professionally for years has asked me to send him a big stack of HTML documents and my instinct is to put them into a tarball, b2zip it, and send him that. I asked whether he could handle it and he told me to send each document separately, uncompressed. I use Linux, so I know you folks have an excellent OS that is BSD-based and can handle lots of bash commands I use. Accordingly I want to tell my friend how to do it all in one easy step from the CLI. He has no idea what I'm talking about, does not know how to get to the CLI, and did not even know Macs have them until I mentioned it to him.
So could you kindly provide my friend with a no-assumptions, comprehensive, clear list of beginner's instructions that will tell him exactly what to do to? He needs to: 1. Get into the CLI 2. Locate the tarball he downloaded from Gmail 3. Unzip it and open it 4. Get out of the CLI and back into the GUI.
I would deal with the tarball this way: $ tar xjvf ./texts.tar.bz2. Could he use that command? I don't have any idea how to leave the graphic world on a Mac. My view is that fulfilling his request will be difficult and a lot of work for him as well if I don't use a tarball, and he needs to learn something about the OS he's using. I'll be interested to see how Mac users do it, as well. Yes, I expect the job can be done in the GUI on a Mac, but as I say, I would like to expand his universe (and mine) just a bit. Dragging him out of the GUI won't hurt him, and the learning experience could give him a bit more respect for the power and flexibility of the OS he uses daily.
Is there a way to gather all the information that we can find in the Activity Monitor (cpu, memory, open file-descriptors for each process) via the Terminal? In fact, I am looking for a procfs (/proc) equivalent.
I installed the FLAC Tools for Mac OSX a while back onto my machine, which added a program to the command line of "Terminal.app", and allowed me to convert media from and to the FLAC format using the command line, by simply running the command:
flac
in the Terminal.However, now I no longer need the ecoder installed on my computer; the question is, if it's a command line based program
Info:iMac Intel Core i3, Mac OS X (10.6.8), ATI Radeon HD 4670, 4GB DDR3 Memory
When I tried to type the letter 'o' in Terminal, the application just wouldn't let me and keeps flashing every time I press the 'o' key. I searched the internet but can't find the solution for this issue. Disabling me from typing this certain alphabet has caused me a lot of inconvenience..
My only problem with this setup is that the line numbers are missing. I can pass in the -c flag, or --line-numbers, it doesn't matter: I never get line numbers. And I tried installing enscript on my linux box too and it also leaves out the line numbers. Does anyone have any ideas, or at least know the last working version of enscript?
Info:MacBook Pro (15-inch Mid 2009), Mac OS X (10.7.3), 3GHz, 8Gb RAM, 40GB SSD + 750GB HDD
I've just installed the BRL-CAD application and it need a command line input (/usr/brlcad/bin) to the System - see below. I am not that familiar with the commands although no problem getting into the Terminal. I just don't want to screw this up. I am running a Mac Mini, 2.66 Ghz Intel Core 2 Duo, 4 GB RAM, OS 10.6.5. I need some step-by-step info in getting this embedded and the application up and running.
Setting Up the Path: Once installed, you will need to add /usr/brlcad/bin to your system PATH. For Bourne shell users, you can run the following: PATH=/usr/brlcad/bin:$PATH ; export PATH For C shell users, this should do the same thing: set path=( /usr/brlcad/bin $path ) ; rehash