Scroll to the bottom of the page and click “Save” to finishħ. Click “Save” – This will take you back to the previous screen.Ħ. Enter the Mysql root user and password (this was set in the previous mysql setup tutorial)ĥ. The new page will load and click on the “Authentication” TabĤ. Go to the new phpMyAdmin localhost URL in your browser and run the phpMyAdmin setupģ. Change the permissions chmod o+w ~/Sites/phpMyAdmin/config Make the config folder mkdir ~/Sites/phpMyAdmin/configĢ. You may need to create a Sites folder in your users directory.ġ. Unzip the file, rename it to phpMyAdmin, and move it into your Sites folder. Go to phpMyAdmin download page and choose the file in your language. What green means: any lines that you need to replace in this tutorial will be in green.įix socket error: sudo mkdir /var/mysql sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock Part 1 shows you how to setup up Apache on your Mac. Part 2 walks you through installing mysql on your localhost read. In this post we will go over setting up phpMyAdmin on your Mac’s localhost. A sfValidator to convert a date from a given pattern to a SQL friendly pattern (Symfony 1.Welcome to part 3 of the MAMP tutorial.sfValidatorI18nFloat a homemade validator for internationalized input numbers.Limit user's access only to some records of your Model.Pre-fill a form in the backend with symfony.Symfony, MAMP, PhpMyAdmin, password changed.Limit user’s access only to some records of your Model.Pre-fill a form in the backend with symfony. Symfony, MAMP, PhpMyAdmin, password changed….I stil have trouble installing Xdebug but I will tell you as soon as it will be solved ! Hope it helped… Sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/bin/mysql Sudo mv /usr/bin/mysql /usr/bin/mysql-old Sudo ln -s /Applications/MAMP/bin/php5/bin/pear /usr/bin/pear Sudo ln -s /Applications/MAMP/bin/php5/bin/php /usr/bin/php For a reason I still ignore, the symbolic links that you create when installing MAMP for symfony (to replace by default MAC apache and sql servers) were no more existing !! So just recreate them by typing the following lines in the terminal and every thing should work well : sudo mv /usr/bin/php /usr/bin/php-old After several tries, I ended up solving the problem. When doing a « build-all-reload » on symfony, I suddenly had the following error message : « Couldn’t locate driver named mysql ». Now you will be asked to enter by hand your db name and password, and this it, you can acces to PhpMyAdmin !!!!īy the way, I faced another problem and couldn’t find the solution on the net so it might be useful for some one facing the same issue. $cfg = 'cookie' // Authentication method (config, http or cookie based)? Then, you will still be unable to connect to phpMyAdmin, so you have another thing to do, its to change the authentification setting from ‘config’ to cookie.įor this, go to /MAMP/bin/PhpMyAdmin/ on line 84 and change the line to this : //./MAMP/bin/PhpMyAdmin/ Go to /MAMP/bin/MAMP/index.php and change line 15 to this : //./MAMP/bin/MAMP/index.php You just have two things to change.įirst, give MAMP the new password you set up for your database. This is easy to do, you just have to go to « preferences » (when you click on the MAMP icon) then « apache » and upload the root directory.īut then I changed the sql password… and I was unabled to access to PhpMyAdmin any more !! I had a message error of the following type : « sql error, cannot find sql server on localhost » or something like that… So after hours of searches on the net and in my brain, I finally solved this problem. I relocated my web projects in a different directory from the one used by mamp (the htdocs directory). I won’t come back with installation process and symfony compatibility, there are several good posts, the best one being this one (according to me !)īut even if this post, I was unable to set up properly virtual hosts, which is unconvenient but doesn’t prevent you from using MAMP. Even if I am not 100% satisfied, I did not find any other solution and I must admit it is pretty simple to install. I use MAMP to run all the things needed to develop web sites with symfony (php based framework).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |