I'm following Head first PHP & MySQL and proceeded through the first chapter on PHP with ease. I hit a snag on the next chapter where it started to utilize MySQL.
First, I should say that I followed these steps to install/enable Apache, PHP, and MySQL on Snow Leopard.
When I typed /usr/local/mysql/bin/mysql into Terminal, I get the "Welcome to the MySQL monitor" message that shows the version, copyright info, etc.
From here, I tried the following:
mysql> CREATE DATABASE testdatabase;
but was given the following message:
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'testdatabase'
I'm very new to it all so any help would be greatly appreciated. I also can't seem to find any folders for MySQL just by doing a Finder search, but I have a feeling the files are hidden. Would this be an issue? If I create a database, where would the files be stored?
Thank you for any help!
First, I should say that I followed these steps to install/enable Apache, PHP, and MySQL on Snow Leopard.
When I typed /usr/local/mysql/bin/mysql into Terminal, I get the "Welcome to the MySQL monitor" message that shows the version, copyright info, etc.
From here, I tried the following:
mysql> CREATE DATABASE testdatabase;
but was given the following message:
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'testdatabase'
I'm very new to it all so any help would be greatly appreciated. I also can't seem to find any folders for MySQL just by doing a Finder search, but I have a feeling the files are hidden. Would this be an issue? If I create a database, where would the files be stored?
Thank you for any help!