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)
Similar Messages
-
Deleted mysql binary log files - can't start mysql
Hi all,
I had mysql running and used it for quite a while.
Since my disk ran out of space, I deleted all the mysql-bin.0000* files in the mysql data folder and configured that mysql should not use binary logs anymore.
Quite a mistake I assume; since now I can't start mysql(d) anymore.
I've tried a lot by now:
- re-installed mysql
- deleted everything in the mysql data folder
But I'm a bit stuck - and can't repair it anymore.. (there is not data loss, everything is backed up - that's not the problem).
Can someone please guide me in a good direction?
Running Arch Linux (systemd).
systemctl status mysqld:
Mar 08 13:12:34 arch systemd[1]: mysqld.service: control process exited, code=exited status=203
Mar 08 13:12:34 arch systemd[1]: Failed to start MySQL database server.
Mar 08 13:12:34 arch systemd[1]: Unit mysqld.service entered failed state
Mar 08 13:12:34 arch systemd[1]: mysqld.service holdoff time over, scheduling restart.
Mar 08 13:12:34 arch systemd[1]: Stopping MySQL database server...
Mar 08 13:12:34 arch systemd[1]: Starting MySQL database server...
Mar 08 13:12:34 arch systemd[1]: mysqld.service start request repeated too quickly, refusing to start.
Mar 08 13:12:34 arch systemd[1]: Failed to start MySQL database server.
Mar 08 13:12:34 arch systemd[1]: Unit mysqld.service entered failed state
Mar 08 14:32:24 arch systemd[1]: Stopped mysqld.service.
The data folder /var/lib/mysql is totally empty (which is - I assume - not good...).
Thanks in advance
Disclaimer: I tried for many hours now, but since I'm quite new - I don't have a clue anymore what to do.These are systemd, not mysql errors, and are quite useless as such -- you already know that mysql does not work Look for /var/log/mysqld.log or $datadir/<hostname>.err -- next time, of course, 'cos there's just one thing to do now: restore your mysql data folder, as there should be much more than binary logs Or, should you prefer to start from scratch, try to use mysql_install_db and then start mysql again.
For future reference, you can safely delete old binary logs from inside mysql using PURGE MASTER LOGS command, and/or consider using expire_logs_days config option. -
[SOLVED] Can't Start MySQL after upgrading to 5.1.41-3
I can't start mysqld with 'mysqld start'.Here is my mysqld output:
[ahao@sky ~]$ mysqld start
091125 18:33:48 [Note] Plugin 'FEDERATED' is disabled.
091125 18:33:48 [Note] Plugin 'ndbcluster' is disabled.
091125 18:33:48 InnoDB: Started; log sequence number 0 44233
mysqld: Too many arguments (first extra is 'start').
Use --verbose --help to get a list of available options
091125 18:33:48 [ERROR] Aborting
091125 18:33:48 InnoDB: Starting shutdown...
091125 18:33:49 InnoDB: Shutdown completed; log sequence number 0 44233
091125 18:33:49 [Note] mysqld: Shutdown complete
This is my /var/lib/ complete with permission settings:
[ahao@sky ~]$ cd /var/lib ; ls -al
total 84
drwxr-xr-x 20 root root 4096 2009-11-25 18:08 .
drwxr-xr-x 13 root root 4096 2009-11-25 13:51 ..
drwxrwx--- 2 root policykit 4096 2009-05-10 09:10 PolicyKit
drwxr-xr-x 2 policykit root 4096 2009-05-10 09:10 PolicyKit-public
drwxr-xr-x 3 root root 4096 2009-09-19 12:19 bluetooth
drwxr-xr-x 2 root root 4096 2009-09-16 22:09 dbus
drwxr-xr-x 2 root root 4096 2009-11-23 17:38 dhcpcd
drwxrwxrwt 2 root root 4096 2009-07-19 18:17 ex
drwxr-xr-x 2 root root 4096 2009-09-16 22:38 hwclock
drwxr-x--- 2 root locate 4096 2009-10-22 06:55 locate
-rw-r--r-- 1 root root 462 2009-09-20 00:02 logrotate.status
drwxr-xr-x 2 root root 4096 2009-09-17 09:14 misc
drwxr-x--- 2 root locate 4096 2009-11-25 18:09 mlocate
drwxrwxrwx 4 mysql mysql 4096 2009-11-25 18:33 mysql
drwxr-xr-x 6 root root 4096 2009-09-07 08:54 nfs
drwxr-xr-x 4 root root 4096 2009-11-25 18:08 pacman
drwx------ 3 root root 4096 2009-11-21 03:30 polkit-1
drwxr-xr-x 2 root root 4096 2008-09-06 14:33 rarian
drwxr-xr-x 2 root root 4096 2009-09-17 09:14 syslog-ng
drwxr-xr-x 3 root root 4096 2009-10-19 20:10 wicd
drwxr-xr-x 2 root root 4096 2009-11-21 02:35 xkb
/etc/mysql/my.cnf is out-of-the-box
What seems to be the problem here? Please shed some light...thank you
Last edited by akiglobal (2009-11-26 07:41:00)How silly of me.....first of all...I entered 'mysqld start', I should have just entered 'mysqld', second of all, I didn't change the file permission on /var/run/mysqld. I change /var/run/mysqld file permission into 'chmod 777 /var/run/mysqld -R', after that mysql works!
-
I recently installed mysql server on my mac os 10.6.8, earlier i had installed XAMPP on my machine but i have uninstalled it(deleted it & ran few commands in terminal), but now when i try to start server from preference pane it doesn't start & not from terminal also, it show " Could not startup MySql sever, Reason: error 255 OR Internal error"
It seems that the new mysql server settings clash somewhere with old XAMPP files/preferences. I don't even know if XAMPP is completely uninstalled or not
I'm not a mysql geek, i'm new to this! So, friends please help me with this, i need to get it working on my mac!!I appreciate your help.
I have been offline for a long time since I had a business trip two week ago.
I can not start the apache http server, so it isn't on running status within NT services manager.
In fact, there is someting wrong---fail to create FastCGI when startup. Oracle system message tells me that syntax error exists on line 92 of isqlplus.conf but I don't know how to correct it.
Henry -
Can't start mysql 5.5 on MAC OS X server
attempting to start MySQL on Mac OS X server 10.6 fails with following error:
[ERROR] /usr/local/mysql-5.5.8-osx10.6-x86_64/bin/mysqld: unknown option '--skip-locking'
appreciate any advice or help how to fix this problem.
thank you.I had the same problem when upgrading from MySQL 5.1 to 5.5.
The skip-locking construct was removed in mysql 5.5:
http://dev.mysql.com/doc/refman/5.5/en/mysql-nutshell.html
Search for skip-locking...
I fixed this by editing /etc/my.cnf. Under [mysqld], change "skip-locking" to "skip-external-locking".
It might be worth your while to grab a new my.cnf from /usr/local/mysql/support-files. There are several default configuration options to choose from. I'm still running my customized version from 5.1, but I'm guessing there are changes that I haven't encountered yet.
Good luck. -
Can't start mysql on os x 10.6.6
installed mysql 5.5 and run; "sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &"
all that happens is produces this message and freezes;
"110323 08:48:39 mysqld_safe Logging to '/usr/local/mysql/data/joe-paluhs-macbook.local.err'.
110323 08:48:39 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
110323 08:50:20 mysqld_safe mysqld from pid file /usr/local/mysql/data/joe-paluhs-macbook.local.pid ended
"In the Terminal run
tail -f /usr/local/mysql/data/joe-paluhs-macbook.local.err
Then in another terminal window start MySQL.
Observe any messages which appear subsequently in the first window.
Post them here if the answer isn't obvious... -
Can't start MYSQL in system preferences 10.6 Snow Leopard
Any suggestions? Thanks.
1. There is no error message.
2. Download and servers won't start in MAPP either.If you're running Mac OS X Server 10.6 Snow Leopard Server, then MySQL is included, and is started with the Server Admin tool.
If you're using Mac OS X, then what's going on here depends on which MySQL port you're using. MAPP? Would you mean the MAMP tools here? -
[resolved] Can not install mysql
Oooops, I fixed it. Somehow /tmp had wrong permissions..
Hello,
after an upgrade my mysql dameon did not work anymore so I did what https://bbs.archlinux.org/viewtopic.php?pid=889846 says and removed all configs and removed it.
Now pacman -S mysql gives my this
# pacman -S mysql
resolving dependencies...
looking for inter-conflicts...
Targets (1): mysql-5.5.11-1
Total Download Size: 0.00 MB
Total Installed Size: 62.59 MB
Proceed with installation? [Y/n] y
(1/1) checking package integrity [################################################] 100%
(1/1) checking for file conflicts [################################################] 100%
(1/1) installing mysql [################################################] 100%
Installing MySQL system tables...
ERROR: 1 Can't create/write to file '/tmp/#sql_1d4d_0.MYI' (Errcode: 13)
110503 9:20:58 [ERROR] Aborting
110503 9:20:58 [Note] /usr/bin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/bin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/scripts/mysqlbug script!
Optional dependencies for mysql
perl-dbi
perl-dbd-mysql
The hostname.err contains
110503 09:29:53 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110503 9:29:53 InnoDB: The InnoDB memory heap is disabled
110503 9:29:53 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110503 9:29:53 InnoDB: Compressed tables use zlib 1.2.5
/usr/bin/mysqld: Can't create/write to file '/tmp/ibwoHE0m' (Errcode: 13)
110503 9:29:54 InnoDB: Error: unable to create temporary file; errno: 13
110503 9:29:54 [ERROR] Plugin 'InnoDB' init function returned error.
110503 9:29:54 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
110503 9:29:54 [ERROR] Unknown/unsupported storage engine: InnoDB
110503 9:29:54 [ERROR] Aborting
110503 9:29:54 [Note] /usr/bin/mysqld: Shutdown complete
110503 09:29:54 mysqld_safe mysqld from pid file /var/lib/mysql/icarus.pid ended
And my my.cnl (I didnt touch it)
1 # MySQL config file for medium systems.
2 #
3 # This is for a system with little memory (32M - 64M) where MySQL plays
4 # an important part, or systems up to 128M where MySQL is used together with
5 # other programs (such as a web server)
6 #
7 # MySQL programs look for option files in a set of
8 # locations which depend on the deployment platform.
9 # You can copy this option file to one of those
10 # locations. For information about these locations, see:
11 # http://dev.mysql.com/doc/mysql/en/option-files.html
12 #
13 # In this file, you can use all long options that a program supports.
14 # If you want to know which options a program supports, run the program
15 # with the "--help" option.
16
17 # The following options will be passed to all MySQL clients
18 [client]
19 #password = your_password
20 port = 3306
21 socket = /var/run/mysqld/mysqld.sock
22
23 # Here follows entries for some specific programs
24
25 # The MySQL server
26 [mysqld]
27 port = 3306
28 socket = /var/run/mysqld/mysqld.sock
29 datadir = /var/lib/mysql
30 skip-external-locking
31 key_buffer_size = 16M
32 max_allowed_packet = 1M
33 table_open_cache = 64
34 sort_buffer_size = 512K
35 net_buffer_length = 8K
36 read_buffer_size = 256K
37 read_rnd_buffer_size = 512K
38 myisam_sort_buffer_size = 8M
39
40 # Don't listen on a TCP/IP port at all. This can be a security enhancement,
41 # if all processes that need to connect to mysqld run on the same host.
42 # All interaction with mysqld must be made via Unix sockets or named pipes.
43 # Note that using this option without enabling named pipes on Windows
44 # (via the "enable-named-pipe" option) will render mysqld useless!
45 #
46 skip-networking
47
48 # Replication Master Server (default)
49 # binary logging is required for replication
50 log-bin=mysql-bin
51
52 # binary logging format - mixed recommended
53 binlog_format=mixed
54
55 # required unique id between 1 and 2^32 - 1
56 # defaults to 1 if master-host is not set
57 # but will not function as a master if omitted
58 server-id = 1
59
60 # Replication Slave (comment out master section to use this)
61 #
62 # To configure this host as a replication slave, you can choose between
63 # two methods :
64 #
65 # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
66 # the syntax is:
67 #
68 # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
69 # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
70 #
71 # where you replace <host>, <user>, <password> by quoted strings and
72 # <port> by the master's port number (3306 by default).
73 #
74 # Example:
75 #
76 # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
77 # MASTER_USER='joe', MASTER_PASSWORD='secret';
78 #
79 # OR
80 #
81 # 2) Set the variables below. However, in case you choose this method, then
82 # start replication for the first time (even unsuccessfully, for example
83 # if you mistyped the password in master-password and the slave fails to
84 # connect), the slave will create a master.info file, and any later
85 # change in this file to the variables' values below will be ignored and
86 # overridden by the content of the master.info file, unless you shutdown
87 # the slave server, delete master.info and restart the slaver server.
88 # For that reason, you may want to leave the lines below untouched
89 # (commented) and instead use CHANGE MASTER TO (see above)
90 #
91 # required unique id between 2 and 2^32 - 1
92 # (and different from the master)
93 # defaults to 2 if master-host is set
94 # but will not function as a slave if omitted
95 #server-id = 2
96 #
97 # The replication master for this slave - required
98 #master-host = <hostname>
99 #
100 # The username the slave will use for authentication when connecting
101 # to the master - required
102 #master-user = <username>
103 #
104 # The password the slave will authenticate with when connecting to
105 # the master - required
106 #master-password = <password>
107 #
108 # The port the master is listening on.
109 # optional - defaults to 3306
110 #master-port = <port>
111 #
112 # binary logging - not required for slaves, but recommended
113 #log-bin=mysql-bin
114
115 # Uncomment the following if you are using InnoDB tables
116 #innodb_data_home_dir = /var/lib/mysql
117 #innodb_data_file_path = ibdata1:10M:autoextend
118 #innodb_log_group_home_dir = /var/lib/mysql
119 # You can set .._buffer_pool_size up to 50 - 80 %
120 # of RAM but beware of setting memory usage too high
121 #innodb_buffer_pool_size = 16M
122 #innodb_additional_mem_pool_size = 2M
123 # Set .._log_file_size to 25 % of buffer pool size
124 #innodb_log_file_size = 5M
125 #innodb_log_buffer_size = 8M
126 #innodb_flush_log_at_trx_commit = 1
127 #innodb_lock_wait_timeout = 50
128
129 [mysqldump]
130 quick
131 max_allowed_packet = 16M
132
133 [mysql]
134 no-auto-rehash
135 # Remove the next comment character if you are not familiar with SQL
136 #safe-updates
137
138 [myisamchk]
139 key_buffer_size = 20M
140 sort_buffer_size = 20M
141 read_buffer = 2M
142 write_buffer = 2M
143
144 [mysqlhotcopy]
145 interactive-timeout
I can't start mysql daemon, it says "FAIL"
Last edited by cyberius (2011-05-03 08:35:56)hi DILIPDKJ,
Just to verify, is this the PowerDVD software that you're trying to install?
PowerDVD 10 BD
v10.0.3029.52
IN12STW153WW5.exe
114 MB
Regards
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter! -
Can't get MySQL to start.
Hello all,
I'm trying to rebuild my system after a big crash. Did a total new reinstall of Server but I cannot get mySQL to start. Something is set wrong somewhere.
If I look at the service in Server Admin if I look at MySQL I see:
MySQL Service is: Shutting down / Start Time: Not Available
If I click the Start MySQL nothing happens.
When I run mysql from Terminal I get:
"Can't Connect to local MySQL server through socket '/var/mysql/mysql.sock'"
If I look in that directory, there is no mysql.sock. I've changed php.ini to
pdomysql.defaultsocket=/var/mysql/mysql.sock
mysql.default_socket=/var/mysql/mysql.sock
etc
but nothing seems to work. How can I fix this? Thanks!
-PatrickAhh, I had some incorrect data in the plist pointing to the other install. These are the errors I am getting now.
6/21/10 3:58:34 PM com.apple.launchd[1] (com.mysql.mysqld[28539]) Suspicious setup: User "mysql" maps to user: _mysql
6/21/10 3:58:34 PM com.apple.launchd[1] (com.mysql.mysqld[28539]) Bug: launchdcorelogic.c:4194 (24108):2
6/21/10 3:58:34 PM com.apple.launchd[1] (0x1001091a0.anonymous.nohup[28571]) Bug: launchdcorelogic.c:8297 (24108):0
6/21/10 3:58:34 PM com.apple.launchd[1] (0x1001091a0.anonymous.nohup[28571]) Switching sessions is not allowed in the system Mach bootstrap.
6/21/10 3:58:34 PM com.apple.launchd[1] (0x1001091a0.anonymous.nohup[28571]) vprocmgr_switch_tosession(): kr = 0x44c
6/21/10 3:58:34 PM com.apple.launchd[1] (0x10042a500.anonymous.nohup[28572]) Bug: launchdcorelogic.c:8297 (24108):0
6/21/10 3:58:34 PM com.apple.launchd[1] (0x10042a500.anonymous.nohup[28572]) Switching sessions is not allowed in the system Mach bootstrap.
6/21/10 3:58:34 PM com.apple.launchd[1] (0x10042a500.anonymous.nohup[28572]) vprocmgr_switch_tosession(): kr = 0x44c
6/21/10 3:58:34 PM com.mysql.mysqld[28539] Starting mysqld daemon with databases from /var/mysql
6/21/10 3:58:34 PM com.mysql.mysqld[28539] /usr/bin/mysqld_safe: line 398: /var/mysql/moncai.localhost.err: Permission denied
6/21/10 3:58:34 PM com.mysql.mysqld[28539] /usr/bin/mysqld_safe: line 406: /var/mysql/moncai.localhost.err: Permission denied
6/21/10 3:58:34 PM com.mysql.mysqld[28539] STOPPING server from pid file /var/mysql/moncai.localhost.pid
6/21/10 3:58:34 PM com.mysql.mysqld[28539] tee: /var/mysql/moncai.localhost.err: Permission denied
6/21/10 3:58:34 PM com.mysql.mysqld[28539] 100621 15:58:34 mysqld ended
6/21/10 3:58:34 PM com.mysql.mysqld[28539] tee: /var/mysql/moncai.localhost.err: Permission denied
6/21/10 3:58:34 PM com.apple.launchd[1] (com.mysql.mysqld[28539]) Exited with exit code: 1
6/21/10 3:58:34 PM com.apple.launchd[1] (com.mysql.mysqld) Throttling respawn: Will start in 10 seconds -
I try to start mysql but:
# /etc/rc.d/mysqld start
:: Starting MySQL [FAIL]
What is the problem?
I didn't perform any upgrade or change configuration.What was your problem and how did you solve it?
It may help other users having the same problem. -
[Solved]Can't load mysql after long time of idle
Phpmyadmin:
#2002 Cannot log in to the MySQL server
/etc/rc.d/mysqld restart
:: Stopping MySQL Server [FAIL]
:: Starting MySQL Server [FAIL]
Did everything in archwiki.
Webmin used to write:
SQL select * from tables_priv order by table_name failed : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Where can i find log file? There in no one in /var/log/
cat /var/lib/mysql/myhost.err
110306 18:53:22 mysqld_safe mysqld from pid file /var/lib/mysql/myhost.pid ended
110306 18:53:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/bin/mysqld: Table 'mysql.plugin' doesn't exist
110306 18:53:25 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110306 18:53:25 InnoDB: The InnoDB memory heap is disabled
110306 18:53:25 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110306 18:53:25 InnoDB: Compressed tables use zlib 1.2.5
110306 18:53:25 InnoDB: Initializing buffer pool, size = 128.0M
110306 18:53:25 InnoDB: Completed initialization of buffer pool
110306 18:53:25 InnoDB: highest supported file format is Barracuda.
110306 18:53:25 InnoDB: Waiting for the background threads to start
110306 18:53:26 InnoDB: 1.1.5 started; log sequence number 1589359
110306 18:53:26 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
110306 18:53:26 mysqld_safe mysqld from pid file /var/lib/mysql/myhost.pid ended
110306 18:54:26 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110306 18:54:26 InnoDB: The InnoDB memory heap is disabled
110306 18:54:26 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110306 18:54:26 InnoDB: Compressed tables use zlib 1.2.5
110306 18:54:26 InnoDB: Initializing buffer pool, size = 128.0M
110306 18:54:26 InnoDB: Completed initialization of buffer pool
110306 18:54:26 InnoDB: highest supported file format is Barracuda.
110306 18:54:26 InnoDB: Waiting for the background threads to start
110306 18:54:27 InnoDB: 1.1.5 started; log sequence number 1589359
110306 18:54:27 [Note] Recovering after a crash using mysql-bin
110306 18:54:27 [Note] Starting crash recovery...
110306 18:54:27 [Note] Crash recovery finished.
110306 18:54:27 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
110306 18:54:27 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
110306 18:54:27 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure
110306 18:54:27 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure
110306 18:54:27 [Note] /usr/bin/mysqld: ready for connections.
Version: '5.5.9-log' socket: '/var/run/mysqld/mysqld.sock' port: 0 Source distribution
110306 19:11:24 [Note] /usr/bin/mysqld: Normal shutdown
110306 19:11:26 [Warning] /usr/bin/mysqld: Forcing close of thread 1 user: 'root'
110306 19:11:26 InnoDB: Starting shutdown...
110306 19:11:26 InnoDB: Shutdown completed; log sequence number 1589359
110306 19:11:26 [Note] /usr/bin/mysqld: Shutdown complete
mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock' '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
What can I do now, huh?
Thanks in advance!
P.S. How can I delete (not drop) all datebase in /var/lib/mysql ?
Last edited by SkyTod (2011-03-11 09:32:16)cat /var/lib/mysql/myhost.err
110307 19:12:05 mysqld_safe mysqld from pid file /var/lib/mysql/myhost.pid ended
110308 08:55:24 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110308 8:55:25 InnoDB: The InnoDB memory heap is disabled
110308 8:55:25 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110308 8:55:25 InnoDB: Compressed tables use zlib 1.2.5
110308 8:55:25 InnoDB: Initializing buffer pool, size = 128.0M
110308 8:55:25 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
110308 8:55:25 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
110308 8:55:26 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
110308 8:55:27 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
110308 8:55:29 InnoDB: Waiting for the background threads to start
110308 8:55:30 InnoDB: 1.1.5 started; log sequence number 0
110308 8:55:32 [Note] Event Scheduler: Loaded 0 events
110308 8:55:32 [Note] /usr/bin/mysqld: ready for connections.
Version: '5.5.9-log' socket: '/var/run/mysqld/mysqld.sock' port: 0 Source distribution
110308 23:46:42 [Note] /usr/bin/mysqld: Normal shutdown
110308 23:46:42 [Note] Event Scheduler: Purging the queue. 0 events
110308 23:46:42 InnoDB: Starting shutdown...
110308 23:46:43 InnoDB: Shutdown completed; log sequence number 1595675
110308 23:46:43 [Note] /usr/bin/mysqld: Shutdown complete
110308 23:46:43 mysqld_safe mysqld from pid file /var/lib/mysql/myhost.pid ended
110309 09:52:34 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110309 9:52:35 InnoDB: The InnoDB memory heap is disabled
110309 9:52:35 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110309 9:52:35 InnoDB: Compressed tables use zlib 1.2.5
110309 9:52:35 InnoDB: Initializing buffer pool, size = 128.0M
110309 9:52:35 InnoDB: Completed initialization of buffer pool
110309 9:52:35 InnoDB: highest supported file format is Barracuda.
110309 9:52:36 InnoDB: Waiting for the background threads to start
110309 9:52:37 InnoDB: 1.1.5 started; log sequence number 1595675
110309 9:52:37 [Note] Event Scheduler: Loaded 0 events
110309 9:52:37 [Note] /usr/bin/mysqld: ready for connections.
Version: '5.5.9-log' socket: '/var/run/mysqld/mysqld.sock' port: 0 Source distribution
ls /var/lib/mysql
ibdata1 ib_logfile1 myhost.pid mysql-bin.000001 mysql-bin.000003 mysql-bin.index test
ib_logfile0 myhost.err mysql mysql-bin.000002 mysql-bin.000004 performance_schema -
Can't start httpd/apache on macbook
This is an odd problem which I imported from my Titanium to my Macbook: I can't start personal web sharing. When I do in the control panels, it seems to load endlessly. httpd.conf seems to be ok, as a "httpd -t" returns that syntax is ok.
"httpd -k graceful" returns this:
httpd not running, trying to start
(13)Permission denied: httpd: could not open error log file /Library/Apache2/logs/error_log.
Unable to open logs
an "httpd -E" puts out an error file containing this message:
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
can anybody help?
Thanks: MathiasI'm having the same problem but I think due to a different reason. It was all working fine in Tiger but with Leopard, Apache got upgraded to 2.2 and now it gives me this error.
I tried my old G3 with tiger on it and it works fine with no problems on 1.3 but since I upgraded my G5 and MBP with Leopard first thing it did was to tell me that access is forbiden (Error 403) to http://localhost/~user/
I'm trying to get a CMS ironed out before it goes on our server so I am just trying to do it through the Sites folder. I have also installed PHP 5.25 and MySQL 5 on the G5. First I thought that PHP and MySQL wrecked the Appche, but MBP hasn't been touched and it does the same thing.
Full error:
Last login: Thu Jan 3 11:04:50 on console
a-ms-power-mac-g5:~ am$ apachectl -k restart
httpd not running, trying to start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
I tried to do what previous post said and here is what I got:
a-ms-power-mac-g5:~ am$ sudo /usr/sbin/apachectl start
Password:
org.apache.httpd: Already loaded
I also tried to look for the location to put "logs" folder into and I can't seem to find it.
Help!!! -
XAMPP appears to be working but can't us MYSQL
Is anyone familiar with this stuff that could help me?
I installed XAMPP on my MAC Powerbook G4, running OS X 10.4. It all installed fine and I can see it in the applications menu. In there is also a script "mamppstart", when I click this I get the following message:
Starting XAMPP for MacOS X 0.5...
XAMPP: Starting Apache with SSL (and PHP4)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for MacOS X started.
I'm assuming that's good and means that everything has installed and running, however I try to locate MySQL in the Terminal and get nowhere. Also when I click my MySQL preference pane it says there is an error...
Any ideas?
Thanks in adavnce!
TomReset, hold both home and power buttons for about 10 seconds until the iPhone begins to restart.
-
Problem Starting MySQL After Security Update
I'm having trouble getting Mysql started after applying the latest security update.
I get this message on Terminal when I enter '/usr/local/mysql/bin/mysqld_safe &'
[1] 23684
sh-3.2# 100828 20:51:04 mysqld_safe Logging to '/usr/local/mysql/data/Goldeneye-2.local.err'.
100828 20:51:04 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
100828 20:52:57 mysqld_safe mysqld from pid file /usr/local/mysql/data/Goldeneye-2.local.pid ended
and the error log shows this:
InnoDB: Unable to lock ./ibdata1, error: 35
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
100829 4:42:41 InnoDB: Unable to open the first data file
InnoDB: Error in opening ./ibdata1
100829 4:42:41 InnoDB: Operating system error number 35 in a file operation.
InnoDB: Error number 35 means 'Resource temporarily unavailable'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/operating-system-error-codes.html
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodbdata_filepath in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
100829 4:42:41 [ERROR] Plugin 'InnoDB' init function returned error.
100829 4:42:41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
100829 4:42:47 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
100829 4:42:47 [ERROR] Do you already have another mysqld server running on port: 3306 ?
100829 4:42:47 [ERROR] Aborting
100829 4:42:47 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
100829 04:42:47 mysqld_safe mysqld from pid file /usr/local/mysql/data/Goldeneye-2.local.pid ended
Do I just delete the ibdata file, or is something else involved.
Thanks for any help you can give.Mihalis,
Thanks for the advice. Apparently I did have MySQL running, and when I connected via the terminal I was also able to connect with Safari and use phpMyAdmin to access the database.
My undergraduate major 40+ years ago was Classics (Latin and Greek), and while my Greek is at kindergarten level I do hope to visit there someday.
Thanks again.
Tom Hart -
Can we use MYSQL database with the UI5 application?
Hey,
I want to make an SAPUI5 application and there i have to use database to save the data.
Then, i will retrieve the data from there. Can we use MYSQL as a database to save the data.
If yes, then how we will retrieve the data from there?
Regards
VAIBHAV JAINHi Yury,
There's a lot of new technologies in order to acchieve that. You could create this app components:
1. Persistence layer. Hibernate/JPA connected to Relational ER Model in MySQL.
2. Service layer. Restful Services. With Spring (Getting Started &middot; Building a RESTful Web Service), Jersey (Jersey), etc.
3. View Layer. SAPUI5. Consume your services.
Hope this helps,
Kind regards!
Maybe you are looking for
-
Hello! Here's some information that might be familiar, I don't know: I got my Mac late 2014 Yosemite, 13-inch, Retina 120 GB, 8 GB RAM This would be the second time that I'm 'uninstalling' Spotify. The first time was a few months back, when it wouldn
-
I have manually back up my iphone few days back, and my contact got missing the next day. i restored my back up from iTunes, however, my contact did not get restored. How do i check if the manual back up did actually back up my contact or not? How do
-
How to sync photo albums in between iPhone and ipad on upgrading to ios8?
hi, i upgraded to ios 8 on my iPhone and iPad which both have a common Apple ID. after up gradation only camera roll got synced from iPhone to iPad.Photo albums which were earlier present in iPad got deleted. how do I get them back or is there a way
-
IPad won't detect iPhone with camera connector
So I got the camera connector kit and wanted to use it to transfer photos from my iPhone 4GS to my iPad 1. Unfortunately, the iPad doesn't detect it, it just sits there. How do I fix that?
-
Generate new user in Oracle BPEL Worklist
Hello, how can I put on in the Oracle BPEL Worklist a new user? I have already read the tutorials in addition. Or if one can work only with the preset users like jstein and jcooper. Thank Greeting Cathleen