[Solved] ubuntu guest mysql problem
Posted: 29. Oct 2009, 23:44
Hi
i have installed ubuntu as a guest on my xp host.
It all works fine, shared folder as well.
However I can't use a mounted shared folder as mysql data folder.
I followed some instructions i found on the net, here is what i have done:
(the mount mounts for user mysql and files have the same permissions as the original /var/lib/mysql files)
However if i try to create a table as I receive this error:
Any idea why a shared folder from windows should make mysql not working properly?
Thans
Paolo
i have installed ubuntu as a guest on my xp host.
It all works fine, shared folder as well.
However I can't use a mounted shared folder as mysql data folder.
I followed some instructions i found on the net, here is what i have done:
Code: Select all
mount -t vboxsf -o uid=113,gid=123,dmode=700,fmode=660 mysql /var/database/mysql
/etc/init.d/mysql stop
/etc/init.d/apparmor stop
vi /etc/mysql/my.cnf
-- changed datadir into /var/database/mysql
vi /etc/apparmor.d/usr.sbin.mysqld
-- added /var/database/mysql/ r,
/var/database/mysql/** rwk,
cp -p -r /var/lib/mysql/* /var/test/mysql/
/etc/init.d/apparmor start
/etc/init.d/mysql startHowever if i try to create a table as
Code: Select all
CREATE TABLE `archiva`.`test` (
`name` TEXT NOT NULL
)
ENGINE = MyISAM;Error executing SQL commands to create table. MySQL Error Nr. 1033 Incorrect information in file: './mytestdb/test.frm'If I do the same things in a directory that is not mounted (eg creating a new one) all works fine, so I know that the procedure is correct.
Any idea why a shared folder from windows should make mysql not working properly?
Thans
Paolo