130 | | Edit the phpMyAdmin configuration file at ''/opt/local/www/phpmyadmin/config.inc.php''. \\ |
131 | | A sample configuration file is installed at /opt/local/www/phpmyadmin/config.sample.inc.php. |
132 | | |
133 | | Consult the documentation on your server at ''"/opt/local/www/phpmyadmin/doc/html/config.html"'' |
134 | | |
135 | | NOTE: This option expects ''"/opt/local/www/phpmyadmin/doc/html"'' to be accessible under "<Document Root>." This can be accomplished by |
136 | | {{{ |
137 | | $ cd <Document Root> |
138 | | $ ln -s /opt/local/www/phpmyadmin/doc/html/ phpmyadmin-doc |
139 | | }}} |
140 | | and then accessing ''http://<servername>/phpmyadmin-doc/'' |
141 | | |
142 | | Finally, you need to set up the `phpMyAdmin` configuration to access MySQL. |
| 130 | As the final step let's configure and test `phpMyAdmin` to access MySQL. |
150 | | This will create a file `config.inc.php` in the `phpMyAdmin` directory. \\ |
| 138 | Assuming that you have /Users/username/Sites as DocumentRoot for Apache, copy and paste `phpMyAdmin` in it : |
| 139 | {{{ |
| 140 | $ sudo cp -R /opt/local/www/phpmyadmin/ /Users/username/Sites/phpmyadmin |
| 141 | }}} |
| 142 | |
| 143 | In your browser open `localhost/phpmyadmin`, and you will see phpMyAdmin's inlog page. Try to login as root with the MySQL password for root.\\ |
| 144 | There is a fair chance you can't login and will see two pink colored squares with cryptic error codes in it. The reason for it is that mySQL uses strong encryption,\\ |
| 145 | that phpMyAdmin can't handle. So let's change the encryption for the user root in mySQL to a lower level: |
| 146 | |
| 147 | {{{ |
| 148 | $ mysql -u root -p |
| 149 | mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'here your password for root'; |
| 150 | mysql> exit |
| 151 | }}} |
| 152 | |
| 153 | |