andybrown28 Posted October 30, 2007 Share Posted October 30, 2007 Hello all, any help would be really appreciated! I'm new to PHP and MySQL but wanting to learn. However I'm having trouble assigning a root password I think. I'm working through a book (Database Driven Websites) and I'm stuck. I've installed PHP and MySQL onto my Mac (OSX 10.4). I'm in the terminal and typing in "mysql -u mysql" as it says but it just says "-bash: mysql: command not found" Not sure what this means or what to do. Any help would be great. Is it anything to do with the bin directory? If so, how can I write this command in the bin directory? I think I want to be getting up the "mysql>" command prompt, but don't know how. Thank you in advance. AndyB Quote Link to comment Share on other sites More sharing options...
fenway Posted October 30, 2007 Share Posted October 30, 2007 Sound like mysql isn't in the path. Quote Link to comment Share on other sites More sharing options...
andybrown28 Posted October 30, 2007 Author Share Posted October 30, 2007 How can I do this then? Any ideas? Quote Link to comment Share on other sites More sharing options...
fenway Posted October 30, 2007 Share Posted October 30, 2007 Either it wasn't installed correctly, or the config file wasn't sourced properly. Quote Link to comment Share on other sites More sharing options...
andybrown28 Posted October 30, 2007 Author Share Posted October 30, 2007 OK, how would I know if its installed properly. Is there a way to test it? Quote Link to comment Share on other sites More sharing options...
fenway Posted October 31, 2007 Share Posted October 31, 2007 OK, how would I know if its installed properly. Is there a way to test it? You'd have to run through the installation docs; basically, you need to see if it was installed somewhere (/var/lib/mysql?) and just the path is incorrect. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.