image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Closed Thread
 
Thread Tools
  #25  
Old February 19th, 2002, 01:39 PM
Registered User
 
Join Date: Oct 2001
Location: las vegas
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
laron8 is on a distinguished road
me again

This is what I am getting when trying to do mysql
Welcome to Darwin!
[localhost:~] nate% cd /usr/local/mysql
[localhost:/usr/local/mysql] nate% sudo ./scripts/mysql_install_db
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
Installation of grant tables failed!

Examine the logs in ./data for more information.
You can also try to start the mysqld daemon with:
./bin/mysqld --skip-grant &
You can use the command line tool
./bin/mysql to connect to the mysql
database and look at the grant tables:

shell> ./bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in ./data that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the ./bin/mysqlbug script!
[localhost:/usr/local/mysql] nate%
  #26  
Old February 19th, 2002, 10:10 PM
Registered User
 
Join Date: Feb 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
metropol is on a distinguished road
libphp4.so broken?

I followed your instructions and as soon as I enter the "sudo apachectl graceful" command I get the following response in Terminal:

/usr/sbin/apachectl graceful: httpd not running, trying to start
Syntax error on line 240 of /etc/httpd/httpd.conf:
API module structure `php4_module' in file /usr/libexec/httpd/libphp4.so is garbled - perhaps this is not an Apache module DSO?
/usr/sbin/apachectl graceful: httpd could not be started

I've downloaded the module and installed it a few times. Any suggestions?

metropol

Last edited by metropol; February 19th, 2002 at 10:39 PM.
  #27  
Old February 20th, 2002, 09:25 PM
Registered User
 
Join Date: Feb 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
lcwid is on a distinguished road
I ran into a little trouble. I had trouble starting MySQL. I thought it maybe something I screwed up while poking around. So I downloaded it again, installed and took the steps. I also installed the automatic start. However I went to "/usr/local" and found two different versions. I downloaded the newer one, 3.23.49. I tried to delete the 3.23.47 but it would not let me. This is the reply"rmdir: mysql-3.23.47: Directory not empty" I'm new to the command line. What should I do?
  #28  
Old February 22nd, 2002, 08:22 PM
Official Green Dinosaur
 
Join Date: Dec 2001
Location: Longwood, FL
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
yoshi is on a distinguished road
sudo rm -r filename
__________________
12" PowerBook G4: 1.5Ghz, 768MB/RAM, 60GB HDD, Combo Drive, 64MB GeforceFX 2 Go, Airport Extreme + BT

Quicksilver G4: 1.53Ghz G4, 1GB/RAM, 160GB HDD, SuperDrive, Radeon 9800 Pro (128MB), Airport Card, AppleVision 850AV, Applevision 1710AV

PowerMac G3 Server: 400Mhz G3, 512MB/RAM, Dual 40GB RAID 0, Dual 80GB RAID 0, 40GB Boot Drive, DVD/CD Optical Drive, Ultra2 SCSI Card hooked to a DDS-4 Tape Drive, No Monitor

PowerMac 8500: Vintage
  #29  
Old March 6th, 2002, 04:11 PM
Registered User
 
Join Date: Oct 2000
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxchild is on a distinguished road
I got these installations to work without a hitch and "mysql test" worked fine that first time. However, I have restarted my computer and now I get this error message when I try to test or use mysql in any way:
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I don't have a clue what might of happened. Any help would be appreciated.

Thanks!
  #30  
Old March 6th, 2002, 04:22 PM
Official Green Dinosaur
 
Join Date: Dec 2001
Location: Longwood, FL
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
yoshi is on a distinguished road
Fix for your problem

Okay buddy, here is whats up, MySQL by default doesn't startup at startup time so after you restart your MacOSX machine you need to enter a few command in the terminal to startup MySQL. The steps you need to follow are under this paragraph. Do them every time your restart!

Step 1) Start Terminal and type cd /usr/local/mysql

Step 2) type "sudo ./bin/safe_mysqld --user=mysql &

Step 3) Enter your Password

and thats it, you can close the terminal and mysql should be started.

Hope this helps
*Note*
The link for the package no longer works and I am putting up a mirror on my own server for you guys to download it at okay.
*/NOTE*
__________________
12" PowerBook G4: 1.5Ghz, 768MB/RAM, 60GB HDD, Combo Drive, 64MB GeforceFX 2 Go, Airport Extreme + BT

Quicksilver G4: 1.53Ghz G4, 1GB/RAM, 160GB HDD, SuperDrive, Radeon 9800 Pro (128MB), Airport Card, AppleVision 850AV, Applevision 1710AV

PowerMac G3 Server: 400Mhz G3, 512MB/RAM, Dual 40GB RAID 0, Dual 80GB RAID 0, 40GB Boot Drive, DVD/CD Optical Drive, Ultra2 SCSI Card hooked to a DDS-4 Tape Drive, No Monitor

PowerMac 8500: Vintage
  #31  
Old March 6th, 2002, 08:50 PM
Registered User
 
Join Date: Oct 2001
Location: las vegas
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
laron8 is on a distinguished road
Or just download this package and it will load mysql on startup.
http://www2.entropy.ch/download/mysq...tem.pkg.tar.gz
  #32  
Old March 10th, 2002, 01:00 PM
Registered User
 
Join Date: Mar 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
d-mac-d is on a distinguished road
problems downloading the MySQL package.

I cannot seem to download the MySQL package. I get this:


Not Found
The requested URL /download/mysql-3.23.47.pkg.tar.gz was not found on this server.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
------------------------------------------------------------------------
Apache/1.3.22 Server at www.www2.entropy.ch Port 80

Closed Thread

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP / MySQL Nynaeve Mac OS X System & Mac Software 6 December 21st, 2005 04:59 PM
PHP & mySQL revisited: Help needed MacLuv Design & Media 4 December 2nd, 2002 10:41 AM
PHP + MySQL running but not ZLIB lashampoo Mac OS X System & Mac Software 2 October 8th, 2001 05:58 PM


All times are GMT -5. The time now is 11:41 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.