Mac OSX - DB function failed with error number 1

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Mac OSX - DB function failed with error number 1

Postby m32dave » 25. August 2010 08:53

Would really appreciate help for this New User.

If the info below is not enough, could anyone tell me what info I need to give. Thanks in advance.

I'm on a Mac using Safari. I'm getting this error message below when I try to save a new article or hit Article Manager. I installed successfully. I'm following the Visual Guide http://help.joomla.org/files/VisualGuide15.pdf


500 - An error has occurred!

DB function failed with error number 1
Can't create/write to file '/var/folders/Eb/EbQ4oX7CGmKRgFdxXs5GXU+++TI/-Tmp-/#sqlc5_b_0.MYI' (Errcode: 13) SQL=SELECT c.*, g.name AS groupname, cc.title AS name, u.name AS editor, f.content_id AS frontpage, s.title AS section_name, v.name AS author FROM jos_content AS c LEFT JOIN jos_categories AS cc ON cc.id = c.catid LEFT JOIN jos_sections AS s ON s.id = c.sectionid LEFT JOIN jos_groups AS g ON g.id = c.access LEFT JOIN jos_users AS u ON u.id = c.checked_out LEFT JOIN jos_users AS v ON v.id = c.created_by LEFT JOIN jos_content_frontpage AS f ON f.content_id = c.id WHERE c.state != -2 ORDER BY section_name , section_name, cc.title, c.ordering LIMIT 0, 20
m32dave
 
Posts: 3
Joined: 25. August 2010 08:49

Re: Mac OSX - DB function failed with error number 1

Postby glitzi85 » 25. August 2010 10:26

Did you install XAMPP as described in the Documentation? I don't have a Mac, so I really don't knwo where XAMPP for Mac is storing the temporary data, but i assume that it should be somewhere inside /Application/XAMPP.

Here is the explanation from MySQL:
http://dev.mysql.com/doc/refman/5.1/en/ ... reate.html

glitzi
User avatar
glitzi85
 
Posts: 1898
Joined: 05. March 2004 23:26
Location: Dahoim

Re: Mac OSX - DB function failed with error number 1

Postby m32dave » 25. August 2010 12:28

glitzi85 wrote:Did you install XAMPP as described in the Documentation? I don't have a Mac, so I really don't knwo where XAMPP for Mac is storing the temporary data, but i assume that it should be somewhere inside /Application/XAMPP.

Here is the explanation from MySQL:
http://dev.mysql.com/doc/refman/5.1/en/ ... reate.html

glitzi


Thanks. Idid install as described. I reinstalled to try and resolve, but made no difference. Info is stored in the application folder.


This is bugging me.
m32dave
 
Posts: 3
Joined: 25. August 2010 08:49

Re: Mac OSX - DB function failed with error number 1

Postby glitzi85 » 25. August 2010 18:56

Could you please post your MySQL configuration file (called my.cnf or my.ini). I don't know the exact path, but i assume it is in an folder called etc or somewhere inside the mysql folder.

glitzi
User avatar
glitzi85
 
Posts: 1898
Joined: 05. March 2004 23:26
Location: Dahoim

Re: Mac OSX - DB function failed with error number 1

Postby m32dave » 27. August 2010 20:35

Here is the code, located in: /Applications/XAMPP/xamppfiles/etc/my.cnf

# 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
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /Applications/xampp/xamppfiles/var/mysql) 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 = /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port = 3306
socket = /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
tmpdir = /Applications/XAMPP/xamppfiles/temp/

# 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
# (using the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
server-id = 1

# Uncomment the following if you want to log updates
#log-bin=mysql-bin

# Uncomment the following if you are NOT using BDB tables
#skip-bdb

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /Applications/XAMPP/xamppfiles/var/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /Applications/XAMPP/xamppfiles/var/mysql/
#innodb_log_arch_dir = /Applications/XAMPP/xamppfiles/var/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

[isamchk]
key_buffer = 8M
sort_buffer_size = 8M

[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M

[mysqlhotcopy]
interactive-timeout
m32dave
 
Posts: 3
Joined: 25. August 2010 08:49

Re: Mac OSX - DB function failed with error number 1

Postby scranmer » 03. May 2011 13:04

hi found solution to this, you need to start MYSQL as root.

edit /Applications/XAMPP/xamppfiles/xampp
find "$XAMPP_ROOT/bin/mysql.server start > /dev/null &"
change to "$XAMPP_ROOT/bin/mysql.server start --user=root > /dev/null &"

HTH

Si.
scranmer
 
Posts: 25
Joined: 20. May 2004 14:59
Location: UK, Southport

Re: Mac OSX - DB function failed with error number 1

Postby webdesigner506 » 21. January 2013 17:58

Guys, I was able to solve the issue with the steps above. However I found my solution and it might work for someone else:
You have to give 777 permision to the temp directory.
-cd to xamppfiles
- sudo chmod 777 temp
- restart mysql
Hope it helps someone else too.
Cheers,
webdesigner506
 
Posts: 1
Joined: 21. January 2013 17:54
XAMPP Version: 5.6.3
Operating System: OSX


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 4 guests