osx - How can I move MySQL data directory on Mac OS 10.5? (and related questions) -


I have been able to disturb my MySQL database (Mac OS X 10.5) and need help to fix me !

I tried to add an index to a large table (190 million records) and during this time, I had to walk out of disk space. Afterwards realized that the partition with the data directory is very small and so I need to move it.

In the beginning I thought I would just copy the data directory to another place, then pressing a symlink in place of the original data directory.

But it refused to move!

  Sudo CP-R / USR / Local / ISSLL / Data Cp: ./data: Permission denied  

(I did this move Before attempting the mysqld process has stopped)

Help!

This is not a mysql question, but rather an OS question.

I think that you do not have permission to write in the current directory, or there is already a directory in which the 'data' has been given, which you do not have permission, etc.

In my experience, MySQL does not like to walk out of disk space Make sure the final record is fine after taking your engine back.

Also, do not use symlinks - change mysql config. In Unix, this is /etc/my.cnf. In the setting will be.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -