MySQL Failing to launch [Solved]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

MySQL Failing to launch [Solved]

Postby BrandonT98 » 17. February 2012 22:25

Hi, I recently installed xampp and am having issues getting mysql to start.

I'm running windows XP SP3, Xampp version 1.7.7. I've opened up port 80, 81, 443 and 3306. Apache starts and stops fine with no issue and I am able to view the Xampp home page locally (I'll only be running it for local use). When I start MySQL it says it's starting then dies with no error message. This is what I'm receiving in the error file:
Code: Select all
120216 20:11:06 [Note] Plugin 'FEDERATED' is disabled.
120216 20:11:06 InnoDB: The InnoDB memory heap is disabled
120216 20:11:06 InnoDB: Mutexes and rw_locks use Windows interlocked functions
120216 20:11:06 InnoDB: Compressed tables use zlib 1.2.3
120216 20:11:06 InnoDB: Initializing buffer pool, size = 16.0M
120216 20:11:06 InnoDB: Completed initialization of buffer pool
120216 20:11:06 InnoDB: highest supported file format is Barracuda.
120216 20:11:07  InnoDB: Waiting for the background threads to start
120216 20:11:08 InnoDB: 1.1.8 started; log sequence number 1595675
120216 20:11:08 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
120216 20:11:08 [ERROR] Do you already have another mysqld server running on port: 3306 ?
120216 20:11:08 [ERROR] Aborting

120216 20:11:08  InnoDB: Starting shutdown...
120216 20:11:08  InnoDB: Shutdown completed; log sequence number 1595675
120216 20:11:08 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete


I do not have any previous versions of mysql running on my machine, just the one installed with xampp. I am unable to find any "xamppfiles" directory as mentioned here: http://community.apachefriends.org/f/viewtopic.php?p=153428

Any help is greatly appreciated,
Brandon
BrandonT98
 
Posts: 5
Joined: 17. February 2012 22:14
Operating System: Windows XP

Re: MySQL Failing to launch

Postby JonB » 17. February 2012 22:49

I am unable to find any "xamppfiles" directory as mentioned here: viewtopic.php?p=153428


at least that part I can right now provide an answer - You aren't on a Mac... :lol:

As for the other part, I will give it a look on the next break I take, if Altrea or hackattack don't solve it first.

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: MySQL Failing to launch

Postby JonB » 17. February 2012 22:56

Try using the XAMPP Beta Control Panel included in the XAMPP root, and use the 'net-stat' option to see if anything is running on 3306.

Also look in the Windows Service Control Manager to see if there's a MYSQL service still running for some reason.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: MySQL Failing to launch

Postby BrandonT98 » 17. February 2012 23:06

Hi Jon,
Nothing is running on port 3306, mysql is listed in my services but it is not running (if I try to run it from here I get "Could not start the mysql service on Local Computer. Error 1067: The process terminated unexpectedly").
When I go to start it from the Beta I get the following messages
Code: Select all
9:05:26 PM  [mysql]    Starting mysql service...
9:05:32 PM  [mysql]    Status change detected: running
9:05:38 PM  [mysql]    Status change detected: stopped


thanks for the fast reply,
Brandon
BrandonT98
 
Posts: 5
Joined: 17. February 2012 22:14
Operating System: Windows XP

Re: MySQL Failing to launch

Postby JonB » 17. February 2012 23:28

A - Should I presume you mean the Beta Control Panel???

Computer. Error 1067: The process terminated unexpectedly").
When I go to start it from the Beta I get the following messages

B. You should probably remove the MySQL service in Service Control Manager, restart everything and see what happens

Good Luck
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: MySQL Failing to launch

Postby BrandonT98 » 17. February 2012 23:48

The 1067 error I got was if i tried to start it from the Service Control Manager.

I've removed the mysql from my services.
When I open the Xampp control panel (non beta) mysql is unchecked, I click start (while it's still unchecked). It says "MySQL started [port 3306]" and goes green only to turn off. The error log has the same error as my first post. If I check off mysql and hit yes to install nothing happens and nothing new is placed into the error log for mysql.

I removed the service again and tried to start it in the beta control panel and receive the following message in the panel:
Code: Select all
9:42:33 PM  [mysql]    Starting mysql app...
9:42:33 PM  [mysql]    Status change detected: running
9:42:37 PM  [mysql]    Status change detected: stopped

from the control box when I check Mysql on the left to install i get the following message
Code: Select all
9:43:06 PM  [mysql]    Installing service...
9:43:15 PM  [mysql]    Service was NOT (un)installed!
9:43:15 PM  [mysql]    One possible reason for failure: On windows security box you !!!MUST UNCHECK!!! that "Protect my computer and data from unauthorized program activity" checkbox!!!

Even if I uncheck this I still get the same message.
BrandonT98
 
Posts: 5
Joined: 17. February 2012 22:14
Operating System: Windows XP

Re: MySQL Failing to launch

Postby BrandonT98 » 18. February 2012 18:12

Is it possible I'm missing a file or there is a problem with "my.cnf"?
Code: Select all
# Example MySQL config file for small systems.
#
# This is for a system with little memory (<= 64M) where MySQL is only used
# from time to time and it's important that the mysqld daemon
# doesn't use much resources.
#
# You can copy this file to
# C:/xampp/mysql/bin/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is C:/xampp/mysql/data) or
# ~/.my.cnf to set user-specific options.
#
# 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          = "C:/xampp/mysql/mysql.sock"

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port= 3306
socket= "C:/xampp/mysql/mysql.sock"
basedir="C:/xampp/mysql"
tmpdir="C:/xampp/tmp"
datadir="C:/xampp/mysql/data"
pid_file="mysql.pid"
skip-external-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
log_error="mysql_error.log"
#bind-address="127.0.0.1"


# 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!
#
# commented in by lampp security
#skip-networking
skip-federated

# Replication Master Server (default)
# binary logging is required for replication
# log-bin deactivated by default since XAMPP 1.4.11
#log-bin=mysql-bin

# 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


# Point the following paths to different dedicated disks
#tmpdir = "C:/xampp/tmp"
#log-update = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000

# Comment the following if you are using InnoDB tables
#skip-innodb
innodb_data_home_dir = "C:/xampp/mysql/data"
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = "C:/xampp/mysql/data"
#innodb_log_arch_dir = "C:/xampp/mysql/data"
## 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

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
BrandonT98
 
Posts: 5
Joined: 17. February 2012 22:14
Operating System: Windows XP

Re: MySQL Failing to launch

Postby hackattack142 » 18. February 2012 22:33

It is possible. How did you install XAMPP (the installer or the zip file)? The installer has been known to cause problems because it does not always extract everything.
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: MySQL Failing to launch

Postby BrandonT98 » 19. February 2012 20:28

Initially I used the installer. I've unzipped the file as you suggested and it appears to be working!

Thanks for the help guys,
Brandon
BrandonT98
 
Posts: 5
Joined: 17. February 2012 22:14
Operating System: Windows XP


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 122 guests