Author Topic: MySQL and OZ 3.3.5  (Read 2223 times)

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
MySQL and OZ 3.3.5
« on: September 11, 2004, 04:27:46 pm »
Hi All,

Am trying to install MySQL on OZ 3.3.5, but it's not installing. The output is the following:

Code: [Select]
Dealing with package /mnt/cf/mysql_3.22.32-2_arm.ipk
Installing mysql (3.22.32-2) to root...
Installing mysql (3.22.32-2) to root...
Package mysql wants to install file /usr/lib/libform.so.5
    But that file is already provided by package libncurses5
Package mysql wants to install file /usr/lib/libmenu.so.5
    But that file is already provided by package libncurses5
Package mysql wants to install file /usr/lib/libpanel.so.5
    But that file is already provided by package libncurses5
Package mysql wants to install file /usr/lib/libncurses.so.5
    But that file is already provided by package libncurses5
Cannot find package mysql.
Check the spelling or perhaps run 'ipkg update'
Finished

Not entirely sure what all this means, so if anyone has any ideas, I'd appreciate it!
Zaurus C-1000

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
MySQL and OZ 3.3.5
« Reply #1 on: September 11, 2004, 07:23:40 pm »
It looks like mysql comes with libncurses included (which already exists on your machine). You could use the '--force-overwrite' option which will overwrite the existing files. There may be other options (though I can't remember any off the top of my head), otherwise you'll need to alter the package itself.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
MySQL and OZ 3.3.5
« Reply #2 on: September 12, 2004, 12:53:28 pm »
I did that, thanks for the suggestion. It seemed to install fine, as did the required patch.

However, when I go to run MySQL I get the following...

Code: [Select]
# ./mysqld
./mysqld: Can't create/write to file '/dev/null' (Errcode: 13)
040912  1:23:01  ./mysqld: Can't create/write to file '/var/lib/mysql/mysqld.pid' (Errcode: 13)
040912  1:23:01  ./mysqld: Can't find file: './mysql/host.frm' (errno: 13)    

I'm a little confused as to what all this means.

I'm running OZ 3.3.5 and have used to linux-migration.org notes to transfer some of the directories to the SD card.

Thanks for any help!
Zaurus C-1000

aplanas

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • http://
MySQL and OZ 3.3.5
« Reply #3 on: September 12, 2004, 01:39:26 pm »
Uhmm Are you root?

totaln00b

  • Full Member
  • ***
  • Posts: 104
    • View Profile
MySQL and OZ 3.3.5
« Reply #4 on: September 13, 2004, 05:10:01 am »
By default, I think that mysql on the zaurus runs as "Daemon", so a quick and dirty workaround is to edit /etc/mysql/my.conf to say user=root rather than user=daemon. Then when you start mysql start with user=root too.

Note that this is fine if you use your zaurus for local stuff but a bit of a security risk if you use it as a web server for others to access.
CL 860, cacko  1.23 full, Sandisk 512Mb CF, Kodak 256Mb SD, Symbol Spectrum24 wifi
SL 5500, standard rom, 256Mb SD, CF GPS

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
MySQL and OZ 3.3.5
« Reply #5 on: September 13, 2004, 06:17:51 am »
Seeing as it's only on my handheld and it's just to facilitate the local PHP in Apache (PHP is the only language I can program in), I can cope with the risk.

Thanks for the info, I now have PHP and MySQL happily working on OZ 3.3.5  
Zaurus C-1000