$ sudo port install mysql55 mysql55-server
The following command makes MySQL use a "normal" MySQL configuration file because the default is not good at all:
$ sudo cp -av /opt/local/share/mysql55/support-files/my-small.cnf /opt/local/etc/mysql55/my.cnf
$ sudo /opt/local/share/mysql55/support-files/mysql.server start
$ sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
$ sudo /opt/local/lib/mysql55/bin/mysql_secure_installation
And you are done!
The following command makes MySQL use a "normal" MySQL configuration file because the default is not good at all:
$ sudo cp -av /opt/local/share/mysql55/support-files/my-small.cnf /opt/local/etc/mysql55/my.cnf
$ sudo /opt/local/share/mysql55/support-files/mysql.server start
$ sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
$ sudo /opt/local/lib/mysql55/bin/mysql_secure_installation
And you are done!
No comments:
Post a Comment