How do I create users in MySQL, and how do I learn to use MySQL
September 30, 2005 8:32 PM
Subscribe
I want to learn PHP and MySQL. I just installed both onto my Mac OS 10.4.2 machine to serve as a sort of testing ground. I also downloaded CocoaMySQL. It's asking for a host, user and password. I assume the host is localhost. However, I can't figure out how to create a user. Can anybody help with that? Also, what would you recommend as the best learning resources for somebody who can get around HTML and CSS, but has very little programming experience?
posted by willnot to computers & internet (8 comments total)
In terms of learning, phpMyAdmin is a good way to get a lot out of mysql but without having to use the command line client interface. I don't know what CocoaMySQL is but it sounds similar (although probably not web-based.)
In terms of learning, the MySQL manual is pretty good, so keep a copy of it handy at all times. I perfer to download the .chm version of it which allows for easy offline viewing / searching etc. I don't know if there is a Mac CHM reader, but you can also download the docs in plain .html format for local reference.
There are tons and tons of MySQL / PHP tutorials floating around on the web, so it's going to be hard to wade through them all. I suggest that for the time being you learn them independently of each other. That is, learn MySQL just by doing queries by hand and observing the result, modifying the query, repeat, etc. Don't try to write PHP code that accesses the database until you're more comfortable with everything (and always try your queries by hand first before you code them, to make sure you get the expected result.)
A good resource is onlamp.com's MySQL tutorial section. Particularly, the introductory series by John Paul Ashenfelter was pretty good. Scroll down to the bottom of that page and read all his articles in the reverse order they are listed, and you should get a decent start.
posted by Rhomboid at 9:33 PM on September 30, 2005