mysql datadir on vfat harddrive won't start.
Remastered knoppix. But before did this, tested it on my usb flashdrive. All had to do was tell it in my.cnf
where the datadir was. Thought tested it before on the windows drive, but may not have.
1) With datadir /var/lib/msyql
If start up a unremastered Knoppix cd mysql will start fine. If put my remasted knoppix in it will start fine.
2) When put the datadir on the Windows drive (hda1). Mysql will not start, only thing edited was the --datadir.
The weird thing is that had this working several times when tried it at first, complained about something, but was
able to access the database and everything worked.
Code:
root@ttyp1[knoppix]# /etc/init.d/mysql start
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.
Code:
root@ttyp1[knoppix]# mysqld
041229 0:10:31 Warning: Setting lower_case_table_names=2 because file system for /mnt/hda1/mysql/ is case insensitive
041229 0:10:31 bdb: /mnt/hda1/mysql/log.0000000001: Permission denied
041229 0:10:31 bdb: PANIC: Permission denied
041229 0:10:31 Can't init databases
041229 0:10:31 Aborting
041229 0:10:31 mysqld: Shutdown Complete
Tried it with 'mysqld --bdb-no-recover' also, but get same results. Also not sure why it is trying to right the bdb
log to the widows drive.
3) here is what have installed:
Code:
ii mysql-client 4.0.22-2 mysql database client binaries
ii mysql-common 4.0.22-2 mysql database common files (e.g. /etc/mysql/my.cnf)
4) Got a little further. Was able to start it with datadir= /mnt/flash/mysql if changed the usb flashdrive (/mnt/flash) to 777 permissions.
But if change datadir= /mnt/hda1/msyql still won't start. Tried, but can't seem to get the permission to change on /mnt/hda1 to test it.
Well, went back to Gentoo and had trouble with it being on /dev/hda1 also for datadir. So, you can't put MySQL datadir on
a Windows98 system? Hope that isn't the case, cause it was the whole purpose of remastering Knoppix.
Re: mysql datadir on harddrive won't start.
Quote:
Originally Posted by Decibels
[...]
3) here is what have installed:
Code:
ii mysql-client 4.0.22-2 mysql database client binaries
ii mysql-common 4.0.22-2 mysql database common files (e.g. /etc/mysql/my.cnf)
[...]
You seem to be missing mysql-server and mysql-max packages. The latter is necessary for BDB.
Make sure that all the directories that MySQL expects to use are 'rw'. Issue the mount command and post the output, it should look something close to:
Code:
/proc on /proc type proc (rw)
automount(pid1012) on /mnt/auto type autofs (rw,fd=4,pgrp=1012,minproto=2,maxproto=4)
/dev/cdrom on /usr/share/knoppix-remaster/cd_orig type iso9660 (ro)
if the line containing /dev/hda1 in your mount is 'ro', MySQL is going to fail. Keep in mind that besides the datafiles, MySQL needs the 'socket file', logs, etc on rw media. You might need to fine tune your my.cnf file and specify it in the command line to mysqld or mysqld_safe. If you are starting mysql using the /etc/init.d/mysql script it won't work from CD.
Last but not least, for diagnosis purposes start mysql in console mode.
Check http://dev.mysql.com/doc/mysql/en/In...ng_binary.html and http://dev.mysql.com/doc/mysql/en/Un...stallation.html for plenty of clues on what to look for.
--GN