#29544: mysql5 root password reser ----------------------------------+----------------------------------------- Reporter: IlushinDNS@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: ----------------------------------+----------------------------------------- Comment(by pixilla@…): The mysql_secure_installation script as executed does not have permission to write to .my.cnf. You could try: {{{ $ sudo /opt/local/lib/mysql5/bin/mysql_secure_installation }}} The mysql5-server port should have end with this message: {{{ ****************************************************** * In order to setup the database, you might want to run * sudo -u ${mysqluser} mysql_install_db5 * if this is a new install ****************************************************** }}} Have you installed the mysql db files?[[BR]] [[BR]] Also, if you don't have a /opt/local/etc/mysql5/my.cnf file consider copying one of the examples provided by mysql. [[BR]] Example: {{{ ls /opt/local/etc/mysql5/ ls /opt/local/share/mysql5/mysql/*.cnf head -n15 /opt/local/share/mysql5/mysql/*.cnf sudo cp /opt/local/share/mysql5/mysql/my-medium.cnf /opt/local/etc/mysql5/my.cnf sudo port unload mysql5-server sudo port load mysql5-server }}} This kind of usage question would be better asked on the MacPorts User mailing list or a MySQL forum. -- Ticket URL: <https://trac.macports.org/ticket/29544#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS