dbTalk Databases Forums  

mysql_install_db error re: /var/lib/mysql

comp.databases.mysql comp.databases.mysql


Discuss mysql_install_db error re: /var/lib/mysql in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sarah
 
Posts: n/a

Default mysql_install_db error re: /var/lib/mysql - 05-12-2008 , 10:47 AM






Hi,

I'm trying to install MySQL 5.0 on a test server where there has been
no previous version of MySQL installed. I'm using the non-rpm version
and want to install to a non-standard location: /opt/mysql.

I have already updated the PATH to include /opt/mysql

When I try to run the mysql_install_db script I get a series of errors
about /var/lib/mysql. The first one is an error saying it can't
create the /var/lib/mysql directory and then there are messages about
not being able to create test files in that location, then there is a
message saying it can't change to that directory location and finally
a message saying:

Installation of system tables failed!

So I had our sys admin create a /var/lib/mysql directory and had him
give the mysql user permissions in that directory. Then the script
ran to completion but now there are the following directories:
/var/lib/mysql/mysql
/var/lib/mysql/test
and files installed under them. I wanted everything under /opt/mysql/
5.0. Can I move those directories? Was there some other way to force
the mysql_install_db script to use /opt/mysql/5.0?

Many thanks for shedding light on this for me!!
Sarah Anderson

Reply With Quote
  #2  
Old   
Luuk
 
Posts: n/a

Default Re: mysql_install_db error re: /var/lib/mysql - 05-12-2008 , 11:23 AM






Sarah schreef:
Quote:
Hi,

I'm trying to install MySQL 5.0 on a test server where there has been
no previous version of MySQL installed. I'm using the non-rpm version
and want to install to a non-standard location: /opt/mysql.

I have already updated the PATH to include /opt/mysql

When I try to run the mysql_install_db script I get a series of errors
about /var/lib/mysql. The first one is an error saying it can't
create the /var/lib/mysql directory and then there are messages about
not being able to create test files in that location, then there is a
message saying it can't change to that directory location and finally
a message saying:

Installation of system tables failed!

So I had our sys admin create a /var/lib/mysql directory and had him
give the mysql user permissions in that directory. Then the script
ran to completion but now there are the following directories:
/var/lib/mysql/mysql
/var/lib/mysql/test
and files installed under them. I wanted everything under /opt/mysql/
5.0. Can I move those directories? Was there some other way to force
the mysql_install_db script to use /opt/mysql/5.0?

Many thanks for shedding light on this for me!!
Sarah Anderson
mysql> show variables like '%dir%';
+----------------------------+----------------------------+
Quote:
Variable_name | Value |
+----------------------------+----------------------------+
basedir | /usr/ |
character_sets_dir | /usr/share/mysql/charsets/ |
datadir | /var/lib/mysql/ |
innodb_data_home_dir | /var/lib/mysql/ |
innodb_log_arch_dir | /var/lib/mysql/ |
innodb_log_group_home_dir | /var/lib/mysql/ |
innodb_max_dirty_pages_pct | 90 |
slave_load_tmpdir | /var/lib/mysql/.tmp/ |
tmpdir | /var/lib/mysql/.tmp/ |
+----------------------------+----------------------------+
9 rows in set (0.00 sec)



or type:
mysqld --verbose --help

before starting to see what variables can be set....


--
Luuk


Reply With Quote
  #3  
Old   
Sarah
 
Posts: n/a

Default Re: mysql_install_db error re: /var/lib/mysql - 05-12-2008 , 12:17 PM



On May 12, 12:23 pm, Luuk <L... (AT) invalid (DOT) lan> wrote:
Quote:
Sarah schreef:



Hi,

I'm trying to install MySQL 5.0 on a test server where there has been
no previous version of MySQL installed. I'm using the non-rpm version
and want to install to a non-standard location: /opt/mysql.

I have already updated the PATH to include /opt/mysql

When I try to run the mysql_install_db script I get a series of errors
about /var/lib/mysql. The first one is an error saying it can't
create the /var/lib/mysql directory and then there are messages about
not being able to create test files in that location, then there is a
message saying it can't change to that directory location and finally
a message saying:

Installation of system tables failed!

So I had our sys admin create a /var/lib/mysql directory and had him
give the mysql user permissions in that directory. Then the script
ran to completion but now there are the following directories:
/var/lib/mysql/mysql
/var/lib/mysql/test
and files installed under them. I wanted everything under /opt/mysql/
5.0. Can I move those directories? Was there some other way to force
the mysql_install_db script to use /opt/mysql/5.0?

Many thanks for shedding light on this for me!!
Sarah Anderson

mysql> show variables like '%dir%';
+----------------------------+----------------------------+
| Variable_name | Value |
+----------------------------+----------------------------+
| basedir | /usr/ |
| character_sets_dir | /usr/share/mysql/charsets/ |
| datadir | /var/lib/mysql/ |
| innodb_data_home_dir | /var/lib/mysql/ |
| innodb_log_arch_dir | /var/lib/mysql/ |
| innodb_log_group_home_dir | /var/lib/mysql/ |
| innodb_max_dirty_pages_pct | 90 |
| slave_load_tmpdir | /var/lib/mysql/.tmp/ |
| tmpdir | /var/lib/mysql/.tmp/ |
+----------------------------+----------------------------+
9 rows in set (0.00 sec)

or type:
mysqld --verbose --help

before starting to see what variables can be set....

--
Luuk
Thanks for the response! However, I can't run mysql, it can't find
things because it's still trying to look in other places for the
things that have been installed under /opt/mysql ... so I can't look
at or change the variables you've listed above. If anyone can tell me
if there is something special I need to do in order to install MySQL
to a non-standard location using the tar.gz installation file I'd be
really grateful.

Sarah Anderson


Reply With Quote
  #4  
Old   
Luuk
 
Posts: n/a

Default Re: mysql_install_db error re: /var/lib/mysql - 05-12-2008 , 12:28 PM



Sarah schreef:
Quote:
On May 12, 12:23 pm, Luuk <L... (AT) invalid (DOT) lan> wrote:
Sarah schreef:



Hi,
I'm trying to install MySQL 5.0 on a test server where there has been
no previous version of MySQL installed. I'm using the non-rpm version
and want to install to a non-standard location: /opt/mysql.
I have already updated the PATH to include /opt/mysql
When I try to run the mysql_install_db script I get a series of errors
about /var/lib/mysql. The first one is an error saying it can't
create the /var/lib/mysql directory and then there are messages about
not being able to create test files in that location, then there is a
message saying it can't change to that directory location and finally
a message saying:
Installation of system tables failed!
So I had our sys admin create a /var/lib/mysql directory and had him
give the mysql user permissions in that directory. Then the script
maybe contact your 'sys admin' ? is a good option?

he/she should know what to do...!

--
Luuk


Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.