| | 156 | |
| | 157 | {{{ |
| | 158 | [client] |
| | 159 | #password = password |
| | 160 | port = 3306 |
| | 161 | socket = /var/lib/mysql/mysql.sock |
| | 162 | |
| | 163 | [mysqld_safe] |
| | 164 | |
| | 165 | [mysqld] |
| | 166 | user = mysql |
| | 167 | port = 3306 |
| | 168 | socket = /var/lib/mysql/mysql.sock |
| | 169 | pid-file = /var/lib/mysql/mysqld.pid |
| | 170 | log-error = /var/log/mysqld.log |
| | 171 | basedir = /usr |
| | 172 | datadir = /var/lib/mysql |
| | 173 | skip-external-locking |
| | 174 | skip-networking |
| | 175 | ignore-builtin-innodb |
| | 176 | default-storage-engine = myisam |
| | 177 | bind-address = localhost |
| | 178 | |
| | 179 | # |
| | 180 | # include all files from the config directory |
| | 181 | # |
| | 182 | !includedir /etc/my.cnf.d |
| | 183 | }}} |
| | 184 | |
| | 185 | |
| | 186 | Change bind-address from 127.0.0.1 to 0.0.0.0 to allow connections from any IP. |
| | 187 | Insert # symbol in front of skip-networking to comment this out. |
| | 188 | |
| | 189 | Ctrl-X and Y to save file. |
| | 190 | |
| | 191 | Restart MySQL |
| | 192 | |
| | 193 | {{{ |
| | 194 | sudo systemctl restart mysqld |
| | 195 | }}} |
| | 196 | |
| | 197 | Verify that MySQL is listening on port 3306 |
| | 198 | |
| | 199 | |