-
Notifications
You must be signed in to change notification settings - Fork 0
MySQL
alex [dot] kramer [at] g_m_a_i_l [dot] com edited this page Oct 9, 2018
·
9 revisions
brew update
brew install mysqlbrew services start mysql
brew services stop mysql
brew services restart mysqlmysql.service start
mysql.service stopmysqladmin -u root -p statusOr if you are managing services with Homebrew:
brew services listSHOW FULL PROCESSLIST;
SHOW ENGINE INNODB STATUS[\G];To enable full status logging to file (innodb_status.<PID> in MySQL data dir), update /etc/my.cnf with this line:
innodb-status-file=1
SET PASSWORD FOR 'user'@'localhost' = PASSWORD('MyNewPass');
Create file /etc/my.cnf:
[client]
port = 3307
[mysqld]
port = 3307
bind-address = 127.0.0.1
[mysqld_safe]
[mysqldump]
[mysql]
[isamchk]