Skip to content
mitochondrion edited this page Jan 12, 2018 · 9 revisions

Install (OSX)

brew update
brew install mysql

Start/stop as launchd-managed daemon (OSX)

brew services start mysql
brew services stop mysql

Start/Stop as process

mysql.service start
mysql.service stop

Change password

SET PASSWORD FOR 'user'@'localhost' = PASSWORD('MyNewPass');

Change port (or other default config)

Create file /etc/my.cnf:

[client]
port = 3307
[mysqld]
port = 3307
bind-address = 127.0.0.1
[mysqld_safe]
[mysqldump]
[mysql]
[isamchk]

Clone this wiki locally