Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 22nd, 2004, 04:59 PM
Registered User
 
Join Date: Jul 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default my.cnf

Hi everyone,

I recently picked up the book "beginning AMP web development"
to learn Apache and Mysql. I am experiencing some problems when
I try to connect to my database. I found out in one of the
postings that *.cnf files were missing in the last version of
MySQL, so I typed my.cnf as it is in the book on page 25-26, as
it was advised.
But as soon as I added "my.cnf" to my c:\ directory I got the error
message that you will find below. I have also included a copy of my .cnf file.
Please help me....

Thanks,
Jimmy.

------ ERROR --------------------------
C:\>NET START MYSQL
The MySQL service is starting.
The MySQL service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

C:\>
---------------------------------------



----- MY.CNF ---------------------------------------------------------

# Example mysql config file.
# Copy this file tp c:\my.cnf to set global options

# This will be passed to all mysql clients
[client]
#password=my_password
port=3306
#socket=MySQL

# Here are entries for some specific programs
# The following values assume you have at least 32M ram
# The MySQL server
[mysqld]
port=3306
local-i-infile = 1
#socket=MySQL
skip-locking
set-variable = key_buffer=16M
set-variable = max_allowed_packet=1M
set-variable = table_cache=64
set-variable = sort_buffer=512K
set-variable = net_buffer_length=8K
set-variable = myisam_sort_buffer_size=8M
server-id = 1

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

# Uncomment the following rows if you move the MySQL
      distribution to another
# location
#basedir = d:/mysql
#datadir = d:/mysql/data

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

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

# Uncomment the following if you are using Innobase tables
#innodb_data_file_path = ibdata1:400M
#innodb_data_home_dir = c:\ibdata
#innodb_log_group_home_dir = c:\iblogs
#innodb_log_arch_dir = c:\iblogs
#set-variable = innodb_mirrored_log_groups=1
#set-variable = innodb_log_files_in_group=3
#set-variable = innodb_log_file_size=5M
#set-variable = innodb_log_buffer_size=8M
#innodb_flush_log_at_trx_commit=1
#innodb_log_archive=0
#set-variable = innodb_buffer_pool_size=16M
#set-variable = innodb_additional_mem_pool_size=2M
#set-variable = innodb_file_io_threads=4
#set-variable = innodb_lock_wait_timeout=50

[mysqldump]
quick
set-variable = max_allowed_packet=16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are familiar with SQL
#safe-updates

[isamchk]
set-variable = key_buffer=20M
set-variable = sort_buffer=20M
set-variable = read_buffer=2M
set-variable = write_buffer=2M

[myisamchk]
set-variable = key_buffer=20M
set-variable = sort_buffer=20M
set-variable = read_buffer=2M
set-variable = write_buffer=2M

[mysqlhotcopy]
interactive-timeout
----------------------------------------------------------------------
 
Old July 23rd, 2004, 03:44 AM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by lamada


------ ERROR --------------------------
C:\>NET START MYSQL
The MySQL service is starting.
The MySQL service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

C:\>
---------------------------------------
Ok that is not the 'error'. 1067 is a generic 'service failed' error. It means very little.

You need to look at the error log and read the error and it's explanation. It will give you an idea where to look.

Post what it says and maybe we can help.

Thought of this after I posted. Check the permissions on the file. It's a longshot, but might have copied over some file restrictions from the editor.


Ok I copied your code to my system and it blew up. The error file for windows is useless. Checked the MySQL error log, useless.

Also noticed that windows hides the file extension even with 'hide file extension' turned off. This was talked about on MySQL.org. Windows also thinks this is a dialer file, nice!

You can force the OS to show the extension, but I don't believe it to be necessary.
 
Old July 23rd, 2004, 04:32 AM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by lamada


local-i-infile = 1
I looked right past this.

Should be

local-infile = 1

Worked on my system.
 
Old July 23rd, 2004, 09:28 AM
Registered User
 
Join Date: Jul 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot codewizard:),

Now, it's working.

J.
 
Old July 23rd, 2004, 03:30 PM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by lamada
 Thanks a lot codewizard:),

Now, it's working.

J.
My pleasure.






Similar Threads
Thread Thread Starter Forum Replies Last Post
IMPORTANT MySQL my.cnf info ElizabethN BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 11 June 27th, 2005 05:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.