MAMP 패키지에 포함 된 SQL 서버로 일부 작업을하고 있습니다. 부팅 할 때마다 SQL 서버가 자동으로 시작되도록 컴퓨터를 설정하고 싶습니다. 누구든지 이것이 일어날 수있는 가장 간단한 방법을 알고 있습니까?시스템 시작시 MAMP sql 서버를 자동으로 시작하는 방법
많은, 많은 감사,
D.
UPDATE
내가 Macmade가 제시 한 LaunchDaemon 파일을 사용하려고, 아래, 나는 다음과 같은 오류를 얻을 :
110906 19:52:05 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql
110906 19:52:05 [Warning] Setting lower_case_table_names=2 because file system for /Applications/MAMP/db/mysql/ is case in$
110906 19:52:05 [Note] Plugin 'FEDERATED' is disabled.
^G/Applications/MAMP/Library/bin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
110906 19:52:05 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110906 19:52:05 InnoDB: The InnoDB memory heap is disabled
110906 19:52:05 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110906 19:52:05 InnoDB: Compressed tables use zlib 1.2.3
110906 19:52:05 InnoDB: Initializing buffer pool, size = 128.0M
110906 19:52:05 InnoDB: Completed initialization of buffer pool
110906 19:52:05 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
110906 19:52:05 mysqld_safe mysqld from pid file /Applications/MAMP/db/mysql/Doyuen-Kos-Mac-Pro.local.pid ended
을 이것이 작동하지 않으면 MAMP 디렉토리 중 일부를보고 startMysql.sh라는 스크립트를 발견했습니다. 명령 줄에서이 명령을 실행하면 SQL Server가 시작됩니다. 완전한. 작동하지 않을 가능성이있는 경우 LaunchDaemon 파일에도이 파일을 던져 보았습니다.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>mysql</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/MAMP/bin/start.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
이것은 작동하지 않았습니다. 또한, 이상하게도 콘솔 앱에 어떤 종류의 메시지도 생성하지 않는 것 같습니다.
나는 여전히 붙어 있습니다. 누구든지 아이디어가 있습니까?
Macmade, thanks * very * much for the answer. 불행하게도 이것은 효과가 없습니다 (위의 편집 참조). 다른 아이디어? –