LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-23-2004, 09:22 AM   #1
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Rep: Reputation: 15
MySQL in Mandrake10


Hi,

I installed mysql-max-4.0 RPM in control center, can someone tell me where is mysql installed and where can I view the log file?

Another question, in the descrption it says mysql-max-4.0 support Innodb, but when I create table with "TYPE = InnoDB", it has error:
ERROR 1005: Can't create table './MySQLfast/log.frm' (errno: 150)

Does anyone know how can I get Innodb support?

Thank you in advance!
 
Old 06-23-2004, 05:10 PM   #2
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Original Poster
Rep: Reputation: 15
Anyone knows?
 
Old 06-24-2004, 05:58 AM   #3
MunterMan
Member
 
Registered: Nov 2003
Location: The North of England
Distribution: Suse 10.3
Posts: 172

Rep: Reputation: 30
If you want a log file, you have to turn it on.
Stop the database with
/usr/local/bin/mysqld stop

The start it with
/usr/local/mysql --log[=file] &

This does affect performance and has been deprecated in mysql 5.
Using the binary log is probably your best bet.
This is explained in the documentation.
The manual is downloadable as a single or multiple html, or on line @
http://dev.mysql.com/doc/
 
Old 06-24-2004, 06:00 AM   #4
MunterMan
Member
 
Registered: Nov 2003
Location: The North of England
Distribution: Suse 10.3
Posts: 172

Rep: Reputation: 30
ALSO

You dont need to create innodb tables, they are the default from version 4 onwards.
 
Old 06-24-2004, 06:27 AM   #5
barrys
Member
 
Registered: Sep 2003
Location: London
Distribution: Susi 9.1, Man10 amd64, Man10.1
Posts: 243

Rep: Reputation: 30
Type "which mysql" in a terminal

the answer should be

/usr/bin/mysql
 
Old 06-24-2004, 10:44 AM   #6
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by MunterMan
ALSO

You dont need to create innodb tables, they are the default from version 4 onwards.
Thank you MunterMan.

So far as I know, innodb tables is supported from MySQL 4, but if you want to create a innodb table, you should add "TYPE = InnoDB" explictly.

Do you know where MySQL installed in Mandrake by default, I mean where the data is, not the command in "/usr/bin"?
 
Old 06-24-2004, 01:02 PM   #7
barrys
Member
 
Registered: Sep 2003
Location: London
Distribution: Susi 9.1, Man10 amd64, Man10.1
Posts: 243

Rep: Reputation: 30
The data is in

/var/lib/mysql

create a database and you will see a directory appear here. Empty of course.

Though you need not bother with the location if you are using mysql as you can create load and drop
the databases from the mysql prompt.

It does beg the question if it is in the root and the database outgrows the root drives space should it not be in the larger drive space home?


 
Old 06-24-2004, 06:06 PM   #8
MunterMan
Member
 
Registered: Nov 2003
Location: The North of England
Distribution: Suse 10.3
Posts: 172

Rep: Reputation: 30
This is a quote from the manual

In MySQL-4.0 you are not required to do anything specific to enable InnoDB tables.

so don't do anything.
Perhaps the question should be...
What is it you are trying to do that needs specific innodb support?
 
Old 06-24-2004, 07:14 PM   #9
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by barrys
The data is in

/var/lib/mysql

create a database and you will see a directory appear here. Empty of course.

Though you need not bother with the location if you are using mysql as you can create load and drop
the databases from the mysql prompt.

It does beg the question if it is in the root and the database outgrows the root drives space should it not be in the larger drive space home?


Thank you Barrys, I got it.
I need to import some data from textfile into Database and the file should be where
the database locates.
 
Old 06-24-2004, 07:21 PM   #10
chinaundead
Member
 
Registered: Feb 2004
Location: UK
Distribution: Mandrake 10 Official
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by MunterMan
This is a quote from the manual

In MySQL-4.0 you are not required to do anything specific to enable InnoDB tables.

so don't do anything.
Perhaps the question should be...
What is it you are trying to do that needs specific innodb support?
Yes, MunterMan
"In MySQL-4.0 you are not required to do anything specific to enable InnoDB tables."
because it is SUPPORTED by default.
BUT in order to CREATE a Innodb table(of course, use it later), you MUST specify and ENGINE = InnoDB or TYPE = InnoDB option in the table creation SQL statement.
check the manual here:http://dev.mysql.com/doc/mysql/en/Us...DB_tables.html

I found the problem why I get errors when creating Innodbs, it's about foreign key constraints(this problem
can be happen in MySQL4.0, not 4.1 or later)
check the manual here:http://dev.mysql.com/doc/mysql/en/In...nstraints.html

The reason why I use Innodb, you can find the Innodb's features here:
http://dev.mysql.com/doc/mysql/en/InnoDB_overview.html


Anyway, Thank you for all your help.
Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration