openSUSE Forums > Archives > SF Archives > ARCHIVES - Install/Boot » Updating Mysql Privilege Database Failed

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Install/Boot
Forums FAQ Members List Search Today's Posts Mark Forums Read

ARCHIVES - Install/Boot Questions about installation or problems booting SUSE Linux

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 17-Apr-2008, 11:07
Txchaser
Guest
 
Posts: n/a
Default

This is now the 3rd time I have done a clean install of 10.3 following the how-to posted by falkon here:http://www.howtoforge.com/perfect_se...pensuse10.3_p4 everything goes fine untill it comes to the mysql. here is what has happened so far every time.

svr1:~ # yast2 -i mysql mysql-client mysql-shared perl-DBD-mysql perl-DBI perl-Data-ShowTable libmysqlclient-devel
svr1:~ # chkconfig --add mysql
mysql 0ff 1ff 2n 3n 4ff 5n 6ff
svr1:~ # /etc/init.d/mysql start
Creating MySQL privilege database...
Installing MySQL system tables...
OK
Filling help tables...
OK
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 svr1.mydomain.com 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 athttp://www.mysql.com
Support MySQL by buying support/licenses athttp://shop.mysql.com
Updating MySQL privilege database...
failed


Any help in geting this resolved so I can continue my installation would be greatly appreciated.
  #2 (permalink)  
Old 17-Apr-2008, 11:53
ken_yap
Guest
 
Posts: n/a
Default

Sounds like you have an existing MySQL DB already and perhaps the permissions or ownerships on it are wrong. It would be in /var/lib/mysql. If you don't care about the contents, move it out of the way and let mysql recreate it.

mv /var/lib/mysql /var/lib/mysql.old

then

/etc/init.d/mysql start
  #3 (permalink)  
Old 17-Apr-2008, 12:41
Txchaser
Guest
 
Posts: n/a
Default

this is what I get when doing as you said

svr1:~ # /etc/init.d/mysql start
mkdir: cannot create directory `/var/lib/mysql/.tmp': No such file or directory
chown: cannot access `/var/lib/mysql/.tmp': No such file or directory
chmod: cannot access `/var/lib/mysql/.tmp': No such file or directory
Starting service MySQL done

As far as an exsisting DB im not too sure on that although I doubt it, this is still a fresh install unless suse adds a DB in somewhere along the install that is not showing during the install. I had no problems with earlier version of suse and installing. Now this is driving me crazy and has been 4 days and now 5 fresh installs, the same thing happening each time. :blink:
  #4 (permalink)  
Old 17-Apr-2008, 20:08
ken_yap
Guest
 
Posts: n/a
Default

Perhaps you need to create that directory first:

mkdir /var/lib/mysql
chown mysql:mysql /var/lib/mysql
/etc/init.d/mysql start

Something else you could try. The mysql update script is run out of /etc/init.d/mysql here:

# Run mysql_upgrade on every package install/upgrade. Not allways
# necessary, but doesn't do any harm.
if test -f $datadir/.run-mysql_upgrade ; then

Since this is a new install, it shouldn't have to, so remove /var/lib/mysql/.run-mysql_update before starting mysql.
 


Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2