Hello
I wanted to install MySql on my Macbook & I think it works now.. But I've followed some steps from the macrumors guides to set up a password..
But now this password is annoying me because I can't connect correctly to m y local MySQL Database (localhost, root) because of this password..
this is the guide's steps:
I've got no idea how to connect correctly with my DB.. Now I'm using:
I prefere to undo the steps of the guide I've followed, but if there is another solution, I'll be glad to hear it
Someone who can help me?
Thx in advance
I wanted to install MySql on my Macbook & I think it works now.. But I've followed some steps from the macrumors guides to set up a password..
But now this password is annoying me because I can't connect correctly to m y local MySQL Database (localhost, root) because of this password..
this is the guide's steps:
MySQL
1. Go to the MySQL downloads page in the Mac OS X section. You will want to download the appropriate package for your platform.
2. Once the DMG is downloaded, install both packages as well as the Preference Pane.
3. Add the MySQL binary path to your $PATH in Terminal.app (as of 5.0.27 this is /usr/local/mysql/bin).
touch ~/.profile
echo "export PATH=$PATH:/usr/local/mysql/bin" >> ~/.profile
source ~/.profile
4. Now that the MySQL tools are in your $PATH, set your MySQL root password.
sudo mysqladmin password 'INSERTPASSHERE'
At this point, MySQL is installed and ready to be used.
I've got no idea how to connect correctly with my DB.. Now I'm using:
=> I can't acces my DB's @ the localhost which I configured in phpMyAdmin.. Because phpMyAdmin's configuration is:$dbh=mysql_connect('localhost', 'root', 'pass from the tutorial') or die ("Could not connect: " .mysql_error());
But that doesn't work for me, cause of my own made password..$dbh=mysql_connect('localhost', 'root', 'root') or die ("Could not connect: " .mysql_error());
I prefere to undo the steps of the guide I've followed, but if there is another solution, I'll be glad to hear it
Someone who can help me?
Thx in advance