Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a duel boot machine having Windows and Ubuntu 12.10.

I was using MySQL database in my Windows machine and now want to use it form Ubuntu. I installed mysql in Ubuntu and set datadir.

As mentioned in this Post, I changed /etc/apparmor.d/local/usr.sbin.mysqld also.

Still when I run the command

sudo service mysql start, I'm getting the error start: Job failed to start

The command dmesg | grep mysql is showing the output.

> [ 9766.942099] type=1400 audit(1362299426.097:88): apparmor="STATUS"
> operation="profile_replace" name="/usr/sbin/mysqld" pid=6097
> comm="apparmor_parser" [ 9766.953873] init: mysql main process (6101)
> terminated with status 1 [ 9766.953895] init: mysql main process
> ended, respawning [ 9766.957071] init: mysql post-start process (6102)
> terminated with status 1 [ 9766.963364] type=1400
> audit(1362299426.117:89): apparmor="STATUS"
> operation="profile_replace" name="/usr/sbin/mysqld" pid=6117
> comm="apparmor_parser" [ 9766.974864] init: mysql main process (6121)
> terminated with status 1 [ 9766.974883] init: mysql main process
> ended, respawning [ 9767.979418] init: mysql post-start process (6122)
> terminated with status 1 [ 9767.987662] type=1400
> audit(1362299427.145:90): apparmor="STATUS"
> operation="profile_replace" name="/usr/sbin/mysqld" pid=6145
> comm="apparmor_parser" [ 9768.003272] init: mysql main process (6149)
> terminated with status 1 [ 9768.003291] init: mysql respawning too
> fast, stopped

How can I use the existing data file in Ubuntu? Any clues?

share|improve this question
add comment

1 Answer

Use mysqldump for backuping database from windows and install it in ubuntu. For gui you can use export/import option in phpmyadmin

share|improve this answer
    
That means I've to maintain two instances of database? export/import will take care of only new data updates? –  Ravindra Gullapalli Mar 3 '13 at 8:49
    
Do you want to share same instance of db for both os? –  Tachyons Mar 3 '13 at 8:51
    
Yes. I want to use the same database file in both os. In worst case only I would like to prefer the mysqldump option. –  Ravindra Gullapalli Mar 3 '13 at 8:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.