Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 22nd, 2004, 05:59 PM
Registered User
 
Join Date: Jul 2004
Location: Toronto, Ontario, Canada.
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
----------------------------------------------------------------------
Reply With Quote
  #2 (permalink)  
Old July 23rd, 2004, 04:44 AM
Authorized User
 
Join Date: Jul 2004
Location: Las Vegas, NV, USA.
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.
Reply With Quote
  #3 (permalink)  
Old July 23rd, 2004, 05:32 AM
Authorized User
 
Join Date: Jul 2004
Location: Las Vegas, NV, USA.
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.
Reply With Quote
  #4 (permalink)  
Old July 23rd, 2004, 10:28 AM
Registered User
 
Join Date: Jul 2004
Location: Toronto, Ontario, Canada.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot codewizard:),

Now, it's working.

J.
Reply With Quote
  #5 (permalink)  
Old July 23rd, 2004, 04:30 PM
Authorized User
 
Join Date: Jul 2004
Location: Las Vegas, NV, USA.
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.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06:22 PM



All times are GMT -4. The time now is 05:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.