How to change value for innodb_buffer_pool_size in MySQL on Mac OS?

前端 未结 5 731
情话喂你
情话喂你 2020-12-13 17:38

I am trying to increase the size of the innodb_buffer_pool_size in MySQL 5.1 as I keep running into the following error indicating I have run out of space for the table lock

5条回答
  •  时光说笑
    2020-12-13 17:56

    For standard OS X installations of MySQL you will find my.cnf located in the /etc/ folder.

    Steps to update this variable:

    1. Load Terminal.
    2. Type cd /etc/.
    3. sudo vi my.cnf.
    4. This file should already exist (if not please use sudo find / -name 'my.cnf' 2>1 - this will hide the errors and only report the successfile file location).
    5. Using vi(m) find the line innodb_buffer_pool_size, press i to start making changes.
    6. When finished, press esc, shift+colon and type wq.
    7. Profit (done).

提交回复
热议问题