Kod
"D:\Serwery\MySQL 5.5\bin\mysqld" --defaults-file="D:\Serwery\MySQL 5.5\my.ini" --general_log=1
Przy próbie włączenia usługi dostaję komunikat:
Cytat
$ sc start MySQL
[SC] StartService NIEPOWODZENIE 1053:
Usługa nie odpowiada na sygnał uruchomienia lub sygnał sterujący w oczekiwanym czasie.
[SC] StartService NIEPOWODZENIE 1053:
Usługa nie odpowiada na sygnał uruchomienia lub sygnał sterujący w oczekiwanym czasie.
Zawartość logów która która jest dodawana przy nieudanym uruchomieniu jest następująca
starach-win7.err
Cytat
111005 22:39:54 [Note] Plugin 'FEDERATED' is disabled.
111005 22:39:54 InnoDB: The InnoDB memory heap is disabled
111005 22:39:54 InnoDB: Mutexes and rw_locks use Windows interlocked functions
111005 22:39:54 InnoDB: Compressed tables use zlib 1.2.3
111005 22:39:54 InnoDB: Initializing buffer pool, size = 96.0M
111005 22:39:54 InnoDB: Completed initialization of buffer pool
111005 22:39:54 InnoDB: highest supported file format is Barracuda.
111005 22:39:55 InnoDB: Waiting for the background threads to start
111005 22:39:56 InnoDB: 1.1.6 started; log sequence number 999715416
111005 22:39:56 [Note] Event Scheduler: Loaded 0 events
111005 22:39:56 [Note] D:\Serwery\MySQL 5.5\bin\mysqld: ready for connections.
Version: '5.5.11-log' socket: '' port: 3306 MySQL Community Server (GPL)
111005 22:39:54 InnoDB: The InnoDB memory heap is disabled
111005 22:39:54 InnoDB: Mutexes and rw_locks use Windows interlocked functions
111005 22:39:54 InnoDB: Compressed tables use zlib 1.2.3
111005 22:39:54 InnoDB: Initializing buffer pool, size = 96.0M
111005 22:39:54 InnoDB: Completed initialization of buffer pool
111005 22:39:54 InnoDB: highest supported file format is Barracuda.
111005 22:39:55 InnoDB: Waiting for the background threads to start
111005 22:39:56 InnoDB: 1.1.6 started; log sequence number 999715416
111005 22:39:56 [Note] Event Scheduler: Loaded 0 events
111005 22:39:56 [Note] D:\Serwery\MySQL 5.5\bin\mysqld: ready for connections.
Version: '5.5.11-log' socket: '' port: 3306 MySQL Community Server (GPL)
starach-win7.log
Cytat
D:\Serwery\MySQL 5.5\bin\mysqld, Version: 5.5.11-log (MySQL Community Server (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument
my.cnf
Cytat
[client]
port=3306
[mysql]
default-character-set=utf8
[mysqld]
port=3306
basedir="D:/Serwery/MySQL 5.5/"
datadir="D:/Serwery/MySQL 5.5/dataTables/"
character-set-server=utf8
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=100
query_cache_size=32M
table_cache=256
tmp_table_size=35M
thread_cache_size=8
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=69M
key_buffer_size=50M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=96M
innodb_log_file_size=20M
innodb_thread_concurrency=10
port=3306
[mysql]
default-character-set=utf8
[mysqld]
port=3306
basedir="D:/Serwery/MySQL 5.5/"
datadir="D:/Serwery/MySQL 5.5/dataTables/"
character-set-server=utf8
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=100
query_cache_size=32M
table_cache=256
tmp_table_size=35M
thread_cache_size=8
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=69M
key_buffer_size=50M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=96M
innodb_log_file_size=20M
innodb_thread_concurrency=10
EDIT:
Fakt faktem dodałem do my.cnf dyrektywe general_log=1 w sekcji [mysqld] i poszło, ale przekazywanie jako parametr uruchomieniowy niestety nie działa.