Starting mysql daemon hangs applescript studio app

hi,
i am currently writing a small application with applescript studio that starts an apache server and a mysql database.
Starting apache via a 'do shell' command is no problem at all but starting mysql with this command
do shell script "/pathto/mysqldsafe --port=2323 --somemoreoptions &"
hangs my application.
Executing the command in a shell works well.
I guess the problem is that firing the command (in the terminal) causes the terminal to return to the command prompt (username:~ username$ ) pretty immediatley. But after one or two seconds there are some more information echoed to the shell ('Starting mysqld daemon with databases from pathto_datadir').
Maybe this confuses my app and it starts waiting for things that will never end.
My current workaround is to open the terminal and to execute the command there:
tell application "Terminal"
  do script "pathto/mysqldsafe --port=3023 --somemoreoptions &"
  delay 1
  if terminalwasopen is equal to false then
    quit
  else
    close window 1
  end if
end tell
Any ideas how to get rid off this wokaround and how to manage this with a simple 'do shell script'?
Thanks in advance.
i++
PowerBook Pro 15"   Mac OS X (10.4.7)  

This issue is discussed in the do shell script technote.
Specifically, even though you tell the process to background (by appending the &), AppleScript still holds onto the process' stdout and stderr, waiting for the output of the command.
The solution is to suppress or redirect stdout and stderr, e.g.:
do shell script "/pathto/mysqldsafe --port=2323 --somemoreoptions > /dev/null 2>&1 &"
The '> /dev/null' suppresses stdout (which could go to a file if you prefer), and '2>&1' sends stderr to the same place as stdout.
Incidentally, I assume you have some check to ensure apache and/or mysql aren't already active, right? This would cause a problem if mysql is already running.

Similar Messages

  • Starting an applescript studio app

    I have written an applescript. I want to incorporate it into an applescript studio app........mainly to make use of the progress bar indicator. How do I get the script to start without having to click on any buttons. Thanks.

    Hook up your window (or the progress indicator) to the "awake from nib" handler in Interface Builder and insert your existing applescript code into the "on awake from nib theObject" handler that gets created in the AS Studio script.
    Steve

  • Applescript studio app and plist???

    Hi everyone!
    If I have an Applescript studio app and I don't write anything to a plist is it still possible the app will make it's own plist for any reason? Seems to be but I can't tell for sure because seems not to be consistent. Any help would be great!
    Thanks,
    Reg

    On second thought, the plist file might be created if
    you display something. I just did a clean install so
    everything's new. Let me check with one of the apps
    that displays a an open dialog or something.
    Yes there are certain things in AS Studio that will write to a plist file. One example I know of is if you give any of your windows an "Auto Save Name" (in the "Attribute" pane of IB's inspector pane). The "Auto Save Name" will be used as the key to a plist entry that auto-saves the window's size and position on screen. When you re-run your app the window will be opened with the size and location stored in the plist.
    I believe kel may also be correct that if your app displays an open or save dialog then some state information about those dialogs will be saved to your plist.
    You can always use "plutil" to convert the plist file from binary to xml and then display the contents to see what's in there...
    <pre>
    plutil -convert xml1 /path/to/file.plist
    cat /path/to/file.plist
    </pre>
    Steve

  • Applescript Studio app crashes with link error (dyld) image not found

    I've built a small Applescript studio app that works fine on the development machine but when I run it on other machines it crashes with a dyld error, specifically:
    Link (dyld) error:
    Library not loaded: /System/Library/PrivateFrameworks/ZeroLink.framework/Versions/A/ZeroLink
    Referenced from: /Volumes/Discover Your Mac Spotlight movie/Table of Contents Viewer.app/Contents/MacOS/Table of Contents Viewer
    Reason: image not found
    Does any one know why this happens and how I can fix it?
    Thanks very much in advance...
    iMac G5 20   Mac OS X (10.4.2)  

    Rick,
    looks like you built the application in "Development" mode - switch the build style to "Deployment" and most probably things will be fine in the other machine.
    Andreas

  • AppleScript Studio apps not Universal?

    I am using XCode 2.3 on a PowerBook G4 running Mac OS X 10.4.7.
    I have an application I have written in AppleScript Studio in that the only code I have written is all AppleScript code.
    I have set the Architectures in XCode to include BOTH PowerPC and Intel and the Target SDK is Mac OS X 10.4 Universal. I am running the "Deployment" build.
    According to http://developer.apple.com/documentation/MacOSX/Conceptual/universalbinary/universal_binary_compiling/chapter_2_section3.html this should be sufficient to produce a "Universal Binary". However the resulting Binary stubbornly shows itself as Application (PowerPC) in the Finder instead of Application (Universal).
    What am I doing wrong? Or is it that pure AppleScript Studio will always result in PowerPC as the benefit from Intel nativeness is so slight.
    Ah ha! Found the answer, I had to select "Upgrade All Targets in Project to Native" in the Project menu. This was not mentioned in the Apple documentation above.
    Message was edited by: John Lockwood

    Found answer myself. Need to select Upgrade All Targets in Project to Native.

  • Applescript studio app just quits

    hi, i made a cocoa app written in applescript using Xcode. but when i send the app to other computers, the app just opens then quits right away. but it works fine on my computer. any ideas?

    http://discussions.apple.com/thread.jspa?threadID=475738
    …loads OK here, there may be something amuck in the system? The first thing you should try is to Set Active Build Configuration on the Project Menu to 'Release,' then build your app. You should then find a release executable in your project folder that you can send instead of the debug.

  • AppleScript Studio Location?

    I downloaded the Xcode tools volume specifically for the Applescript Studio app. The only problem is, i can't seem to locate that app in particular in the volume . There are a dozen or so packages can anyone tell me which one contains it? I'd rather not install a whole bunch of stuff that i'm probably won't use or just test each one. I have all ready installed the Developer tools.pkg and it wasn't in there. Any help would be greatly appreciated.

    Hey,
    AppleScript Studio is a part of Xcode and not a seperate application. To create an AppleScript Studio project simply launch Xcode and select AppleScript Application as the project type when asked. If you are new to AppleScript Studio you might want to try googling for AppleScript Studio.

  • Create UI elements dynamically in AppleScript Studio?

    I'd like to create an applescript studio app that can create UI elements (radio buttons, checkboxes, etc) dynamically based on certain other criteria. I've been writing applescripts for a while but am somewhat new to applescript studio, so I don't know where to look for this, other than here. Any help would be greatly appreciated.

    that's what I thought. Unfortunately I'd like to have the ability to have no prior knowledge of what UI elements are needed, and call them into being at any time. So I'm gonna infer that that just isn't possible.
    Related question: can I set up a UI element, let's say a checkbox, and dynamically tell the UI element how many checkboxes I need and what their names/values should be? Or once again do I need to have prior knowlege of how many checkboxes I need?

  • MySQL daemon won't start

    After years of working fine, MySQL just stopped working the other day. When I try to start mysqld manually with mysqld_safe, I get this:
    Starting mysqld daemon with databases from /var/mysql
    rm: /var/mysql/mysql.sock: Permission denied
    STOPPING server from pid file /var/mysql/quicksilver.lan.pid
    081129 12:58:11 mysqld ended
    I discovered that trying to manually remove (rm) the mysql.sock file gives the same "Permission denied" error. Even though it seems like the permissions/ownership should allow it:
    srwxrwxrwx 1 mysql admin 0 Nov 26 15:25 mysql.sock
    Using sudo works to delete the file, but then mysqld_safe gives:
    Starting mysqld daemon with databases from /var/mysql
    STOPPING server from pid file /var/mysql/quicksilver.lan.pid
    081129 13:34:04 mysqld ended
    I note the mysql.sock file is 0 bytes: is this wrong?
    I don't know what else to try.

    Here are the permissions for the socket:
    srwxrwxrwx 1 mysql admin 0 Nov 29 23:12 mysql.sock
    I'm logged in as an admin, but I'm not allowed to delete the socket:
    rm /var/mysql/mysql.sock
    rm: /var/mysql/mysql.sock: Permission denied
    (which incidentally is the message mysqld_safe prints when it tries to start)
    I deleted the socket using sudo once before and it didn't change anything.
    Here's the output of ls -al /var/mysql:
    total 41416
    drwxr-xr-x 22 mysql admin 748 Nov 29 23:12 .
    drwxr-xr-x 35 root wheel 1190 Nov 29 23:05 ..
    -rw-rw---- 1 mysql admin 6148 Dec 2 2004 .DS_Store
    drwx------ 27 mysql admin 918 May 30 2008 MailStewardProDB
    drwx------ 14 mysql admin 476 May 24 2007 SharedMedia
    drwx------ 8 mysql admin 272 Aug 12 2006 drs
    drwx------ 165 mysql admin 5610 Nov 8 18:38 flagNtag
    drwx------ 5 mysql admin 170 Sep 13 2004 home_automation
    -rw-rw---- 1 mysql admin 25088 Sep 11 2004 ibarch_log0000000000
    -rw-rw---- 1 mysql admin 5242880 Nov 19 08:23 ib_logfile0
    -rw-rw---- 1 mysql admin 5242880 Sep 11 2004 ib_logfile1
    -rw-rw---- 1 mysql admin 10485760 Nov 19 08:23 ibdata1
    -rw-rw---- 1 mysql admin 338 Dec 3 2006 localhost.err
    drwxrwx--- 51 mysql admin 1734 Jul 18 2006 mysql
    srwxrwxrwx 1 mysql admin 0 Nov 29 23:12 mysql.sock
    drwx------ 27 mysql admin 918 Sep 10 2007 phpmyadmin
    drwx------ 14 mysql admin 476 Dec 27 2007 pim
    -rw-rw---- 1 mysql admin 189926 Nov 30 13:46 quicksilver.lan.err
    drwx------ 14 mysql admin 476 Sep 12 2004 sg_coalition
    drwx------ 6 mysql admin 204 May 9 2007 test
    drwx------ 92 mysql admin 3128 Apr 6 2008 weed_bug
    drwx------ 24 mysql admin 816 Aug 23 2007 x2web
    I don't see any problems here.

  • AppleScript Studio: status bar and panel window

    My problem is that the panel won't open, and so I don't see the progress bar.
    All I am looking for is the panel to come down, show the progress bar turning, then for the panel to go away when iCal is done adding the event. This is the entire script, but I'm not sure I have everything right in Interface builder. The Documentation for display mentioned clicking panel ended, but then further down it looked like you didn't need it.
    I'm confused.
    -- +Event.applescript
    -- +Event
    -- Created by Michael Ewald on 6/26/06.
    -- Copyright 2006 Michael Ewald. All rights reserved.
    load panel "statusPanel" from nib "statusPanel"
    on clicked theObject
    -- Get & Format form items
    set eventTitle to contents of text field "eventTitle" of window "main" as string
    set eventLocation to contents of text field "eventLocation" of window "main" as string
    set EventNotes to contents of text view "eventNotesText" of scroll view "eventNotesScroll" of window "main"
    set allDay to state of button "allDay" of window "main"
    set startDate to current date
    set startDate to content of control "startDate" of window "main"
    set endDate to content of control "endDate" of window "main"
    -- Make Event
    start progress indicator "statusBar" of window "statusPanel"
    try
    start progress indicator "statusBar" of window "statusPanel"
    display "statusPanel" attached to window "main"
    tell application "iCal"
    set theCalName to "AppleScript Test"
    set theCal to calendar theCalName
    if allDay is equal to 1 then
    make new event at end of calendar theCalName with properties {summary:eventTitle, location:eventLocation, allday event:true, description:EventNotes}
    else if allDay is equal to 0 then
    make new event at end of calendar theCalName with properties {summary:eventTitle, location:eventLocation, start date:startDate, end date:endDate, description:EventNotes}
    end if
    end tell
    -- reset form
    set the contents of text field "eventTitle" of window "main" to ""
    set the contents of text field "eventLocation" of window "main" to ""
    set contents of text view "eventNotesText" of scroll view "eventNotesScroll" of window "main" to ""
    set state of button "allDay" of window "main" to 0
    set currentDate to current date
    set currentDatePlus to (current date) + 1 * hours
    -- Update Times
    set content of control "startDate" of window "main" to currentDate
    set content of control "endDate" of window "main" to currentDatePlus
    on error
    display alert "There was a problem!"
    end try
    close panel "statusPanel"
    end clicked
    ----

    Thanks for the response,
    right now the window is in a seperate nib file. I was
    trying to follow the applescript studio example
    "Display Panel"
    Then you need to load it, look at the example, you see panelWIndow is declared as property:
    property panelWIndow : missing value
    then inside on click handler:
    if panelWIndow is equal to missing value then
    load nib "statusPanel" -- if your nib is statusPanel.nib
    set panelWIndow to window "statusPanel" --> that's AppleScript window name
    end if
    then you can use:
    display panel panelWIndow attached to window "main"
    What is the advantage / disadvantage of having more
    than one nib file?
    Not a whole lot in simple app, because you have to load it to use it.
    But in more complex apps, the advantage is that you don't commit run time memory, if the users don't use it.

  • AppleScript Studio Problems...

    I have documented some AppleScript Studio problems that I have encountered, along with some screenshots.
    Hopefully somebody might have a clue what is causing the problems.
    http://www.mac-specialist.com/r/as_studio.html
    I would be grateful for any insights,
    Bill Hernandez
    Plano, Texas

    Steve,
    This is the message I sent earlier with new findings:
    After I deleted "Smart Crash Reports.bundle" in /Library/InputManagers/, I rebooted, went to AS Studio to see if there were any problems, and guess what ?
    The Debugger started working. It's been broken as long as I can remember. Every time I've wanted to learn how to work with AS Studio since it came out, the Debugger has never worked, and I always ended up moving on to something else.
    This is awesome...
    Bill Hernandez
    Plano, Texas
    <hr>
    On Dec 24, 2006, at 5:27 PM, Steve Hayman wrote:
    Hi Bill.
    Make sure you're building a debug version of the project in order for breakpoints to work. In Xcode you set this with Project > Set Active Build Configuration > Debug .
    This was the very first thing I checked the other day when I started trying to learn AS Studio in earnest.
    Also I don't think those messages you are seeing about Smart Crash REports.bundle actually indicate that the app has crashed; it's just reporting that it can't load this bundle for some reason, and then proceeding anyway - I don't see anything that indicates your app has crashed.
    I read a long article at : http://daringfireball.net/2006/01/smartcrashreports
    and came away without a real solution. It was close to 3 am so I was barely awake, but came away confused as to what the solution was. I had used Unsanity's products particularly the menu product, but they caused too many problems with Quickeys and 4th Dimension. After talking to the people that write Quickeys, I disabled all their stuff and everything started working fine with Quickeys and 4D. They are far more important for me, that the Unsanity stuff.
    I agree with the Daring Fireball article, and am annoyed that Unsanity patches the OS without asking for permission. I won't buy their products any more.
    That bundle is something that certain third-party applications install which attempts to email crash reports for their apps back to their authors, rather than to Apple. I don't know what app you might have installed that included this but it would probably be safe to remove the bundle. (Double clicking on it wouldn't do anything; it's not intended to be double clicked; it just sits there and waits to be loaded.)
    After I wrote the original message I realized that it wasn't double clickable, but by then it was too late. I think it was probably Unsanity's APE, or FruitMenu.If you look at /Library/InputManagers/ there's an "info" file, and a "Smart Crash Reports.bundle". I just deleted both of them, if it causes a problem I'll copy them from another machine that doesn't have it. I'm not sure but I believe they patch the original one from Apple. I'm not sure if that is correct?
    <hr>
    On 22-Dec-06, at 8:54 PM, Bill Hernandez wrote:
    Wizards,
    I have documented some AppleScript Studio problems that I have encountered, along with some screenshots.
    Hopefully somebody might have a clue what is causing the problems.
    http://www.mac-specialist.com/r/as_studio.html
    I would be grateful for any insights,
    Bill Hernandez
    Plano, Texas

  • MacBook Pro takes a long time to start up or hangs at gray apple logo after minor fall

    I upgraded to Mavericks a few days ago. Everything was working fine until yesterday, when my MacBook Pro started taking a really long time to start up or restart.
    Before upgrading I had some directory problems which I fixed with DiskWarrior. I then upgraded to Mavericks. There was also a fall that I took, which resulted in the MacBook Pro hitting on one corner and getting a minor dent (It was inside a padded messenger bag when I fell). It worked fine for a whole day, but the next day it started slowing down and getting stuck.
    I run DiskWarrior again and there was more directory problems, which were fixed again. When I start the MacBook Pro from an external HD with Mac OS X 10.8, there is no delay in starting up. When I switch to the internal HD, then I get very long delays (5-10min) or hangs at the gray apple logo screen.
    DiskUtility did not report any problems, neither did SMART report.
    Could it be that the HD got somewhat damaged and gets stuck intermittently? Is it possible to start up OK some times and others to get stuck?
    How can I check the HD? Shouldn't the SMART report indicate a problem?
    Any help would be greatly appreciated as this is my main work computer!
    Chris

    I think that my Mac was shutdown when it fell, but I am not 100% sure.
    I did perform both SMC and PRAM resets. I will also try to run maintenance scripts. Thanks for the suggestion.
    It keeps on taking around 10min to restart now, but it has not frozen yet.
    The other very strange thing that happens  (and this was the first sign I had when it started acting up) is that Mail.app cannot connect to my IMAP servers (a host provider and Google), even though my Mac connects to the internet. I have the MacBook Pro on the same ethernet network as my home iMac, and I get mail without a problem on the iMac! So something is blocking the mail on the MacBook Pro.
    This happened for the first time on Friday and after that I kept having the long delays in startup or freezes I mentioned before.
    Could those two be connected?
    When I use an external HD as as start up I can get mail fine.

  • My "Hanging with Friends" app keeps crashing whenever I try to open it. I have deleted and re-downloaded the app, restarted my iPhone, and even restored my iPhone all together, and nothing is working. How can I get this app to work again?

    My "Hanging with Friends" app keeps crashing whenever I try to open it. I have deleted and re-downloaded the app, restarted my iPhone, and even restored my iPhone all together, and nothing is working. How can I get this app to work again?

    Can you start Firefox in [[Safe mode]] ?
    You can also do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can initially skip the step to create a new profile, that may not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Can't start mysql

    when I type "rc.d start mysqld" it displays busy for a while, then fails. At this point it does not generate an error message. I have changed the permissions of /var/lib/mysql recursively to 777. I have also created the mysqld directory in /var/run and given it 777 permissions. I hope I have included all the relevant files. 
    I have read every suggestion on the internet and gotten nowhere. Please help a noobus out. Thanks in advance.
    /var/lib/mysql/localhost.err
    120115 01:11:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    120115 1:11:48 [Warning] One can only use the --user switch if running as root
    120115 1:11:48 InnoDB: The InnoDB memory heap is disabled
    120115 1:11:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    120115 1:11:48 InnoDB: Compressed tables use zlib 1.2.5
    120115 1:11:48 InnoDB: Initializing buffer pool, size = 128.0M
    120115 1:11:48 InnoDB: Completed initialization of buffer pool
    120115 1:11:48 InnoDB: highest supported file format is Barracuda.
    120115 1:11:50 InnoDB: Waiting for the background threads to start
    120115 1:11:51 InnoDB: 1.1.8 started; log sequence number 1595675
    120115 1:11:51 [ERROR] Can't start server : Bind on unix socket: Permission denied
    120115 1:11:51 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?
    120115 1:11:51 [ERROR] Aborting
    120115 1:11:51 InnoDB: Starting shutdown...
    120115 1:11:51 InnoDB: Shutdown completed; log sequence number 1595675
    120115 1:11:51 [Note] /usr/bin/mysqld: Shutdown complete
    120115 01:11:51 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.pid ended
    /etc/rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK="UTC"
    TIMEZONE="America/New_York"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MODULES=()
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="localhost"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    # interface=eth0
    # address=192.168.0.2
    # netmask=255.255.255.0
    # broadcast=192.168.0.255
    # gateway=192.168.0.1
    # DHCP example
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    interface=eth0
    address=
    netmask=
    broadcast=
    gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    NETWORKS=(menu)
    WIRELESS_INTERFACE="wlan0"
    WIRED_INTERFACE="ethO"
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If something other takes care of your hardware clock (ntpd, dual-boot...)
    # you should disable 'hwclock' here.
    DAEMONS=(hwclock syslog-ng @network crond net-auto-wired dbus acpid)
    /etc/hosts
    # /etc/hosts: static lookup table for host names
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost
    #::1 localhost.localdomain localhost
    # End of file
    /etc/mysql/my.cnf
    # MySQL config file for medium systems.
    # This is for a system with little memory (32M - 64M) where MySQL plays
    # an important part, or systems up to 128M where MySQL is used together with
    # other programs (such as a web server)
    # MySQL programs look for option files in a set of
    # locations which depend on the deployment platform.
    # You can copy this option file to one of those
    # locations. For information about these locations, see:
    # http://dev.mysql.com/doc/mysql/en/option-files.html
    # In this file, you can use all long options that a program supports.
    # If you want to know which options a program supports, run the program
    # with the "--help" option.
    # The following options will be passed to all MySQL clients
    [client]
    #password = your_password
    port = 3306
    socket = /var/run/mysqld/mysqld.sock
    # Here follows entries for some specific programs
    # The MySQL server
    [mysqld]
    port = 3306
    socket = /var/run/mysqld/mysqld.sock
    datadir = /var/lib/mysql
    skip-external-locking
    key_buffer_size = 16M
    max_allowed_packet = 1M
    table_open_cache = 64
    sort_buffer_size = 512K
    net_buffer_length = 8K
    read_buffer_size = 256K
    read_rnd_buffer_size = 512K
    myisam_sort_buffer_size = 8M
    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    # Note that using this option without enabling named pipes on Windows
    # (via the "enable-named-pipe" option) will render mysqld useless!
    skip-networking
    # Replication Master Server (default)
    # binary logging is required for replication
    log-bin=mysql-bin
    # binary logging format - mixed recommended
    binlog_format=mixed
    # required unique id between 1 and 2^32 - 1
    # defaults to 1 if master-host is not set
    # but will not function as a master if omitted
    server-id = 1
    # Replication Slave (comment out master section to use this)
    # To configure this host as a replication slave, you can choose between
    # two methods :
    # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
    # the syntax is:
    # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
    # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
    # where you replace <host>, <user>, <password> by quoted strings and
    # <port> by the master's port number (3306 by default).
    # Example:
    # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
    # MASTER_USER='joe', MASTER_PASSWORD='secret';
    # OR
    # 2) Set the variables below. However, in case you choose this method, then
    # start replication for the first time (even unsuccessfully, for example
    # if you mistyped the password in master-password and the slave fails to
    # connect), the slave will create a master.info file, and any later
    # change in this file to the variables' values below will be ignored and
    # overridden by the content of the master.info file, unless you shutdown
    # the slave server, delete master.info and restart the slaver server.
    # For that reason, you may want to leave the lines below untouched
    # (commented) and instead use CHANGE MASTER TO (see above)
    # required unique id between 2 and 2^32 - 1
    # (and different from the master)
    # defaults to 2 if master-host is set
    # but will not function as a slave if omitted
    #server-id = 2
    # The replication master for this slave - required
    #master-host = <hostname>
    # The username the slave will use for authentication when connecting
    # to the master - required
    #master-user = <username>
    # The password the slave will authenticate with when connecting to
    # the master - required
    #master-password = <password>
    # The port the master is listening on.
    # optional - defaults to 3306
    #master-port = <port>
    # binary logging - not required for slaves, but recommended
    #log-bin=mysql-bin
    # Uncomment the following if you are using InnoDB tables
    #innodb_data_home_dir = /var/lib/mysql
    #innodb_data_file_path = ibdata1:10M:autoextend
    #innodb_log_group_home_dir = /var/lib/mysql
    # You can set .._buffer_pool_size up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    #innodb_buffer_pool_size = 16M
    #innodb_additional_mem_pool_size = 2M
    # Set .._log_file_size to 25 % of buffer pool size
    #innodb_log_file_size = 5M
    #innodb_log_buffer_size = 8M
    #innodb_flush_log_at_trx_commit = 1
    #innodb_lock_wait_timeout = 50
    [mysqldump]
    quick
    max_allowed_packet = 16M
    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates
    [myisamchk]
    key_buffer_size = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M
    [mysqlhotcopy]
    interactive-timeout

    Hi,
    I seem to have had an issue with mysql as well and it appears to be that I don't have a sock file as I have checked /var/run/mysqld for mysqld.sock and it does not exist so would that be what is stopping mysql server from starting and if so how do I create the sock file ??
    Cheers
    Quazza
    Update - Actually I solved my problem to, it was to do with my log files filling up but that also led to the bigger problem of a failing HD oh what fun anyway got there before any major data loss. 
    Last edited by quazza (2012-01-20 08:09:26)

  • AppleScript Studio/Xcode problem - Problem with text entries! Please help!

    Hey, I've been up for hours each night looking for solutions to this but still have had no luck.
    I am creating an app in Xcode/Applescript studio that will ask you to enter how many times you would like system events to repeat a certain keystroke. First of all, the code would look something like this:
    on click theObject
    If the name of theObject is equal to "myApplication" then
    (Right here would be where the variables representing text in an input in the app's window would be, which I have absolutely no clue what to type.)
    tell application "text edit"
    activate
    tell application "system events"
    keystroke x (x representing a variable)
    end tell
    end tell
    end clicked
    and that's about as far as I can get. I want a variable representing the text in the main text entry box, but I have no clue how to access that text, or even know if it's submitted or detected when I hit a button. Hopefully you're following, as I am way to confused to fully explain it, but please try and help me out if you can.

    Hi Kamprath445,
    Though this mentions iTunes, I think it has good examples you can use...
    http://dougscripts.com/itunes/itinfo/keycodes.php
    More in depth...
    http://developer.apple.com/documentation/applescript/conceptual/applescriptlangg uide/conceptual/ASLR_variables.html

Maybe you are looking for

  • My phone takes ages to turn on and then when it does it is unresponsive. What do I do!?

    I have been having trouble with my phone for ages now, I always look after it really well, it has had screen protectors and a case on it since the day I got it. There is no damage to the phone at all, not a single scratch! However, the phone now take

  • Graphics problem in OS X Mavericks

    Hello, Sorry for my english in advance. I have Macbook Air 13" (mid 2012) [CPU: Core i5 with GPU: HD 4000]. I faced problem with the GPU. First after update to OS X Mavericks (10.9.1) I could not boot it. It's hangs on Gray screen with Apple's logo a

  • Question about 4500X VSS management port

    I have two standalone 4500X switches that I'm planning to convert to VSS. If I cable the management port on both switches to a management cloud, which management port should I put the management IP address? Is it the port on the active switch? if the

  • Clarification on these comments on SDN about NUMBER RANGES

    Hi, In a previous discussion here, it was argued that the u201CNumber Range is not generated for every process. Number Range is generated say in case of sales orderu201D I read that the Number range is to basically improve performance by assigning th

  • Change to new mail layout

    Hello, I have been messing around with my new macbook air. I was in preferences settings in mail and I was curious what the old layout looked like so I checked to box to change it. I didn't like it so I unchecked it, but it didnt go back to as it was