LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-30-2009, 03:31 PM   #1
r3cursive
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Rep: Reputation: 0
Error install MySql initial database


hallo slackware gurus

a problem come, when i want to install an initial database
i had read instruction on /etc/rc.d/rc.mysqld to run this as root
Code:
mysql_install_db --user=mysql
but after execute this command, i got this
Code:
root@Rachel:~# mysql_install_db --user=mysql
Installing MySQL system tables...
090729  3:47:30 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090729  3:47:30 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
/usr/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
090729  3:47:30 [ERROR] Aborting

090729  3:47:30 [Note] /usr/libexec/mysqld: Shutdown complete

Installation of system tables failed!

Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/libexec/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:

shell> /usr/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
whats wrong with MySql??
Thanks before!
 
Old 03-30-2009, 06:30 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,739

Rep: Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850
Can you please give information about MySQL version and Slackware version?
 
Old 03-30-2009, 08:51 PM   #3
r3cursive
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
^ wah ternyata ada bang willy..makasih bang dah di respone

ok, i used slackware 12.2 and mysql-5.0.67-i486-1
 
Old 03-31-2009, 04:16 AM   #4
r3cursive
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
hope someone can help..i really stuck in here..
 
Old 03-31-2009, 05:22 AM   #5
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Try
Code:
chown -R mysql:mysql /var/lib/mysql
Then see if it will start.
 
Old 03-31-2009, 05:40 AM   #6
r3cursive
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
thanks for your respone mRgOBLIN

itry it and i got this
Code:
Installing MySQL system tables...
090729 18:03:39 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090729 18:03:39 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
090729 18:03:39 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090729 18:03:39 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h Rachel password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
there is no error like before. but, what meaning of warning in here??
 
Old 03-31-2009, 06:53 AM   #7
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Rep: Reputation: 40
Its not an error just run mysql

/etc/rc.d/rc.mysqld start

Keep a note of the commands mine are building up and come in very useful when you reinstall or upgrade.

Sav
 
Old 03-31-2009, 07:56 AM   #8
r3cursive
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
thanks for your respone SavoTU

so, what the meaning of this??
Code:
090729 18:03:39 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090729 18:03:39 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
090729 18:03:39 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090729 18:03:39 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
 
Old 03-31-2009, 08:28 AM   #9
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Rep: Reputation: 40
I don't think that it is anything to worry about looks like its just setting its self up to me?

Sorry i am no expert still consider my self a newbie to Linux something i was going to make my own thread about in a minute .
 
Old 03-31-2009, 08:31 AM   #10
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
This is the default value that is assigned to max_join_size if none is supplied in any of the configuration files.

It defaults to a value that is too large. This is an know bug and is talked about on the MySql forum here.
 
Old 03-31-2009, 09:14 AM   #11
r3cursive
LQ Newbie
 
Registered: Mar 2009
Posts: 18

Original Poster
Rep: Reputation: 0
oh i see..thank for the explanation bgeddy..
 
Old 03-31-2009, 02:59 PM   #12
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Yes just copy one of the /etc/my-{huge,large,medium,small}.cnf files to /etc/my.cnf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 setting up Mysql database cache Roosta21 Linux - Server 0 01-10-2009 03:16 PM
add privilages database mysql error!! chobo Linux - Software 1 12-19-2007 06:01 PM
mysql database error Peter Shepard Ubuntu 1 06-06-2007 11:56 AM
mysql database error Tredo Linux - Security 7 11-26-2004 02:12 PM
Exporting MySQL error when trying to Import to another database. strez4prez Linux - Software 0 05-28-2004 11:43 AM

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

All times are GMT -5. The time now is 05:49 PM.

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