image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old February 14th, 2006, 05:37 PM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sock2me is on a distinguished road
help with local testing environment of php pages/mySQL/phpMyAdmin/Dreamweaver

Basically, my goal has been to set up a local instance of php, mysql and phpMyAdmin so that I could test my php pages and the db content locally before I copied them up to the live server.

I've been working on this for days. My ISP does not allow remote connection to the db (hence my attempt to do it locally)

I installed mysql, phpmyadmin and made sure my Apache and php were working. I am now attempting to get into the phpMyAdmin scrren in order to built my table. I am very very new to all of this.

Currently, I cannot connect with the mysql db via phpMyAdmin. I get this error:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

I tried adding a password into the config.inc.php file (didn't help)
I tried adding a password to mysql and all I get are errors (I'm really not sure I'm doing it correctly though) I've been in Terminal and then I downloaded a program: "My Query Browser". Tried to run

SET PASSWORD FOR 'root' = PASSWORD('new_pass');

this did nothing but give me an error

So I read somewhere to try this:

/usr/local/mysql/bin/mysqladmin -u root password buttonbling
(I want my new password to be buttonbling)

And I got this error:

/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

Whats the most basic way for me to check that I have mysql running correctly on my G4? Why might I not be able to connect to the mysql via the phpMyAdmin?

How far back do I need to take this - shall I uninstall everything and start from scratch?

I did install that little app that will reboot mysql if I were to shut my computer off and restart.

Thank you for any help you may be able to provide
Reply With Quote
  #2  
Old February 14th, 2006, 09:30 PM
eric2006's Avatar
iMovie Professional
 
Join Date: Feb 2006
Location: Minnesota
Posts: 3,194
Thanks: 0
Thanked 1 Time in 1 Post
eric2006 is on a distinguished road
You might want to try and re-install mysql. Then you waill have a blank password for root, and phpmyadmin will have no problem logging in. The same thing happened to me, after I changed the password for the root user. Apparently, you need to have the password for the root user in the phpmyadmin files (in some config file, I don't remember which off the top of my head)
__________________
Power to Burn.
At speeds of up to 733MHz,
The most powerful Mac in history
burns CDs, burns DVDs, and
burns Pentiums

- apple website, oct 4, 1999. advertisement for the powermac g4
Reply With Quote
Reply

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
phpmyadmin/mysql autoincrement andehlu Software Programming & Web Scripting 4 August 30th, 2005 12:00 PM
Dreamweaver question... I get blank pages CalSD Design & Media 2 May 13th, 2005 07:18 PM
Dreamweaver -- importing pages greiggy Design & Media 3 September 10th, 2004 05:01 AM
phpMyAdmin, MySQL and security hypocampers Mac OS X System & Mac Software 3 October 20th, 2002 05:12 AM
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) vic Mac OS X System & Mac Software 16 August 9th, 2001 04:56 PM


All times are GMT -5. The time now is 02:48 PM.


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.